liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. A control-flow timing lean has been identified in the reference implementation of the Kyber key encapsulation mechanism when it is compiled with Clang 15-18 for -Os, -O1, and other compilation options. A proof-of-concept local attack on the reference implementation leaks the entire ML-KEM 512 secret key in ~10 minutes using end-to-end decapsulation timing measurements. The issue has been fixed in version 0.10.1. As a possible workaround, some compiler options may produce vectorized code that does not leak secret information, however relying on these compiler options as a workaround may not be reliable.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-208",
"CWE-385"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36405.json"
}[
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-36405-16c196d2",
"target": {
"file": "ref/verify.h"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"129159944488822175469922892442807990041"
]
},
"signature_version": "v1",
"source": "https://github.com/pq-crystals/kyber/commit/9b8d30698a3e7449aeb34e62339d4176f11e3c6c"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2024-36405-230f7be1",
"target": {
"file": "ref/poly.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"234689300167707083092684360083613531595",
"146167400202682821831380952758195444065",
"236930179887150445801603796343847781378",
"132795227996355397657871530656993888564",
"98085589001609537616281371573502341052",
"220137936012977417917610474229036188693",
"230950984777136591460947291073851511222",
"152441685494613281378637909075275929112",
"94291155035070951370862928007735827934",
"301827595347717556978065680018854490571",
"234954458262773481690591469489954392452",
"117445256152861512856057429889126623864",
"140998155976398254487220450403221579936"
]
},
"signature_version": "v1",
"source": "https://github.com/pq-crystals/kyber/commit/9b8d30698a3e7449aeb34e62339d4176f11e3c6c"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2024-36405-c935abed",
"target": {
"file": "ref/poly.c",
"function": "poly_frommsg"
},
"digest": {
"length": 444.0,
"function_hash": "318988264785853182587844791599630315127"
},
"signature_version": "v1",
"source": "https://github.com/pq-crystals/kyber/commit/9b8d30698a3e7449aeb34e62339d4176f11e3c6c"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36405.json"