CVE Catalog

CVE-2025-39946

CriticalCVSS 9.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Very high risk
9.57%

95th percentile - higher than 95% of all known CVEs

Summary

In the Linux kernel, TLS handling reads data early when the socket buffer is tiny, and an invalid record header does not abort the stream. Repeated parsing and copying of additional data can overflow the allocated skb space.

Risk Assessment

This can lead to kernel memory corruption or system crashes, posing a stability and security risk for servers using kernel TLS.

Recommendation

Update the Linux kernel to a version containing the fix that aborts strp in tls_rx_msg_size() when an invalid record is encountered.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: tls: make sure to abort the stream if headers are bogus Normally we wait for the socket to buffer up the whole record before we service it. If the socket has a tiny buffer, however, we read out the data sooner, to prevent connection stalls. Make sure that we abort the connection when we find out late that the record is actually invalid. Retrying the parsing is fine in itself but since we copy some more data each time before we parse we can overflow the allocated skb space. Constructing a scenario in which we're under pressure without enough data in the socket to parse the length upfront is quite hard. syzbot figured out a way to do this by serving us the header in small OOB sends, and then filling in the recvbuf with a large normal send. Make sure that tls_rx_msg_size() aborts strp, if we reach an invalid record there's really no way to recover.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS