{"id":"CVE-2025-29912","published":"2025-03-17T22:48:40Z","modified":"2025-03-18T13:31:28Z","title":"CryptoLib Has Heap Buffer Overflow Due to Unsigned Integer Underflow in Crypto_TC_ProcessSecurity","vendor":"nasa","product":"CryptoLib","tier":"tail","description":{"text":"CryptoLib provides a software-only solution using the CCSDS Space Data Link Security Protocol - Extended Procedures (SDLS-EP) to secure communications between a spacecraft running the core Flight System (cFS) and a ground station. In versions 1.3.3 and prior, an unsigned integer underflow in the `Crypto_TC_ProcessSecurity` function of CryptoLib leads to a heap buffer overflow. The vulnerability is triggered when the `fl` (frame length) field in a Telecommand (TC) packet is set to 0. This underflow causes the frame length to be interpreted as 65535, resulting in out-of-bounds memory access. This critical vulnerability can be exploited to cause a denial of service (DoS) or potentially achieve remote code execution. Users of CryptoLib are advised to apply the recommended patch or avoid processing untrusted TC packets until a fix is available.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.9,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01641,"percentile":0.76776,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-191","name":"Integer Underflow (Wrap or Wraparound)"}],"references":[{"url":"https://github.com/nasa/CryptoLib/security/advisories/GHSA-3f5x-r59x-p8cf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nasa/CryptoLib/commit/ca39cb96f21e76102aefb956d2c8c0ba0bd143ca","tags":["x_refsource_MISC"]}],"priority":{"score":21.6,"factors":[{"name":"EPSS percentile","points":15.36},{"name":"CVSS severity","points":6.23}]},"vendorSlug":"nasa","affectedVersions":[{"vendor":"nasa","product":"CryptoLib","versions":["<= 1.3.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-03-18T13:28:30.838322Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-6609","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nasa-cryptolib-cve-2025-29909","parents":[{"from":"CVE-2025-29909","to":"CVE-2025-29912","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/core/crypto_tc.c"],"commits":["https://github.com/nasa/CryptoLib/commit/c7e8a8745ff4b5e9bd7e500e91358e86d5abedcc","https://github.com/nasa/CryptoLib/commit/ca39cb96f21e76102aefb956d2c8c0ba0bd143ca"],"basis":"shared function","functions":["Crypto_TC_ProcessSecurity_Cam"]}]}],"children":[{"from":"CVE-2025-29912","to":"CVE-2025-30216","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/core/crypto_tc.c"],"commits":["https://github.com/nasa/CryptoLib/commit/ca39cb96f21e76102aefb956d2c8c0ba0bd143ca","https://github.com/nasa/CryptoLib/commit/810fd66d592c883125272fef123c3240db2f170f"],"basis":"shared function","functions":["Crypto_TC_ProcessSecurity_Cam"]}]},{"from":"CVE-2025-29912","to":"CVE-2025-30356","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/core/crypto_tc.c"],"commits":["https://github.com/nasa/CryptoLib/commit/ca39cb96f21e76102aefb956d2c8c0ba0bd143ca","https://github.com/nasa/CryptoLib/commit/59d1bce7608c94c6131ef4877535075b0649799c"],"basis":"shared function","functions":["Crypto_TC_ProcessSecurity_Cam"]}]}]}}