CVE-2025-39946: tls: make sure to abort the stream if headers are bogus

Published Oct 4, 2025
·
Updated

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 tlsrxmsgsize() aborts strp, if we reach an invalid record there's really no way to recover.

Affected Software

13 affected componentsFixes available
Linux Kernel
Microsoft azl3 kernel 6.6.96.2-2
Microsoft azl3 kernel 6.6.104.2-4
Linux Linux kernel>=6.0<6.1.154
Linux Linux kernel>=6.2<6.6.108
Linux Linux kernel>=6.7<6.12.49
Linux Linux kernel>=6.13<6.16.9
Linux Linux kernel=6.17-rc1
Linux Linux kernel=6.17-rc2
Linux Linux kernel=6.17-rc3
Linux Linux kernel=6.17-rc4
Linux Linux kernel=6.17-rc5
Linux Linux kernel=6.17-rc6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Patch tls: make sure to abort the stream if headers are bogus
  2. Compensating control

    Abort the TLS stream/connection when TLS record headers are bogus (so the connection is aborted when the issue is discovered late, preventing parsing after potential skb overflow/invalid record retry).

Event History

Oct 4, 2025
CVE Published
via MITRE·07:31 AM
Data Sourced
via MITRE·07:31 AM
DescriptionSeverity
Data Sourced
via Red Hat·08:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityAffected Software
Oct 5, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·01:02 AM
Affected Software
Updated
via Microsoft·01:02 AM
DescriptionSeverity
Updated
via Microsoft·01:02 AM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-39946?

CVE-2025-39946 has a medium severity rating due to its impact on secure transport protocols.

2

How do I fix CVE-2025-39946?

To fix CVE-2025-39946, update to the latest version of the Linux kernel that includes the necessary patches.

3

Which versions of the Linux kernel are affected by CVE-2025-39946?

CVE-2025-39946 affects multiple versions of the Linux kernel, particularly those prior to the patch release.

4

What is the impact of CVE-2025-39946 on network security?

CVE-2025-39946 can potentially allow an attacker to exploit the TLS stream, affecting data integrity and security.

5

Is CVE-2025-39946 being actively exploited in the wild?

As of the latest information, there are no confirmed reports of CVE-2025-39946 being actively exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203