CVE-2025-30356: Heap Buffer Overflow via Incomplete Length Check in `Crypto_TC_ApplySecurity`
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 1.3.3 and earlier, a heap buffer overflow vulnerability persists in the CryptoTCApplySecurity function due to an incomplete validation check on the fl (frame length) field. Although CVE-2025-29912 addressed an underflow issue involving fl, the patch fails to fully prevent unsafe calculations. As a result, an attacker can still craft malicious frames that cause a negative tfpayloadlen, which is then interpreted as a large unsigned value, leading to a heap buffer overflow in a memcpy call.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-30356?
CVE-2025-30356 is classified as a high severity vulnerability due to the potential for heap buffer overflow.
How do I fix CVE-2025-30356?
To fix CVE-2025-30356, upgrade CryptoLib to version 1.3.4 or later, which addresses the heap buffer overflow issue.
What are the potential impacts of CVE-2025-30356?
The potential impacts of CVE-2025-30356 include remote code execution, data corruption, and denial of service.
Which versions of CryptoLib are affected by CVE-2025-30356?
CryptoLib versions 1.3.3 and earlier are affected by CVE-2025-30356, making them vulnerable to exploitation.
What is the function of CryptoLib concerning CVE-2025-30356?
CryptoLib is designed to secure communications between aircraft and ground stations, and CVE-2025-30356 compromises this security.