{"id":"CVE-2026-47738","state":"PUBLISHED","title":"liboqs: Uninitialized function-pointer dereference in OQS_KEM_encaps_derand for NTRU KEMs","description":"liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. Prior to 0.16.0, OQS_KEM_encaps_derand can dereference an uninitialized encaps_derand function pointer when called on NTRU-HPS-2048-509, NTRU-HPS-2048-677, NTRU-HPS-4096-821, NTRU-HPS-4096-1229, NTRU-HRSS-701, or NTRU-HRSS-1373. The affected NTRU constructors omit the OQS_KEM.encaps_derand member because those schemes do not support derandomized encapsulation, OQS_KEM objects are allocated without zero initialization, and the wrapper in src/kem/kem.c checks only that the OQS_KEM pointer is non-null before calling through the residual heap value. An application is affected only if it instantiates one of those six NTRU KEMs and invokes OQS_KEM_encaps_derand on it. The supported impact is a calling-process crash and denial of service. This issue is fixed in version 0.16.0.","publishedAt":"2026-11-06T21:23:45.399Z","updatedAt":"2026-11-09T22:42:40.707Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["open-quantum-safe liboqs"],"affected":[{"vendor":"open-quantum-safe","product":"liboqs","versions":[{"version":"< 0.16.0","status":"affected"}]}],"references":["https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-jr5q-r9qx-v738","https://github.com/open-quantum-safe/liboqs/pull/2460","https://github.com/open-quantum-safe/liboqs/commit/80ceff0207658eba98bae8eb22ca3aa2a364f40b","https://github.com/open-quantum-safe/liboqs/releases/tag/0.16.0"],"weaknesses":["CWE-824"],"ingestedAt":"2026-11-09T22:50:06.747Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/47xxx/CVE-2026-47738.json","commit":"e63c48941a872d7c829333851c2753b723655a97","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-47738","state":"PUBLISHED","datePublished":"2026-11-06T21:23:45.399Z","dateUpdated":"2026-11-09T22:42:40.707Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-19T22:16:39.503Z"},"containers":{"cna":{"title":"liboqs: Uninitialized function-pointer dereference in OQS_KEM_encaps_derand for NTRU KEMs","descriptions":[{"lang":"en","value":"liboqs is a C-language cryptographic library that provides implementations of post-quantum cryptography algorithms. Prior to 0.16.0, OQS_KEM_encaps_derand can dereference an uninitialized encaps_derand function pointer when called on NTRU-HPS-2048-509, NTRU-HPS-2048-677, NTRU-HPS-4096-821, NTRU-HPS-4096-1229, NTRU-HRSS-701, or NTRU-HRSS-1373. The affected NTRU constructors omit the OQS_KEM.encaps_derand member because those schemes do not support derandomized encapsulation, OQS_KEM objects are allocated without zero initialization, and the wrapper in src/kem/kem.c checks only that the OQS_KEM pointer is non-null before calling through the residual heap value. An application is affected only if it instantiates one of those six NTRU KEMs and invokes OQS_KEM_encaps_derand on it. The supported impact is a calling-process crash and denial of service. This issue is fixed in version 0.16.0."}],"affected":[{"vendor":"open-quantum-safe","product":"liboqs","versions":[{"version":"< 0.16.0","status":"affected"}]}],"references":[{"url":"https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-jr5q-r9qx-v738","name":"https://github.com/open-quantum-safe/liboqs/security/advisories/GHSA-jr5q-r9qx-v738","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/open-quantum-safe/liboqs/pull/2460","name":"https://github.com/open-quantum-safe/liboqs/pull/2460","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-quantum-safe/liboqs/commit/80ceff0207658eba98bae8eb22ca3aa2a364f40b","name":"https://github.com/open-quantum-safe/liboqs/commit/80ceff0207658eba98bae8eb22ca3aa2a364f40b","tags":["x_refsource_MISC"]},{"url":"https://github.com/open-quantum-safe/liboqs/releases/tag/0.16.0","name":"https://github.com/open-quantum-safe/liboqs/releases/tag/0.16.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-824","lang":"en","description":"CWE-824: Access of Uninitialized Pointer","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-06T21:23:45.399Z"},"source":{"advisory":"GHSA-jr5q-r9qx-v738","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-09T22:36:51.048997Z","id":"CVE-2026-47738","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-09T22:42:40.707Z"}}]}}}