CVE-2025-39946

MediumCVSS 5.5/10Last modified Oct 19, 2026

Description

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.

Metrics

CVSS 3.1 5.5/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected software

VendorProductVersions
LinuxLinux>= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < b36462146d86b1f22e594fe4dae611dffacfb203; >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < 4cefe5be73886f383639fe0850bb72d5b568a7b9; >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < 208640e6225cc929a05adbf79d1df558add3e231; >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < 61ca2da5fb8f433ce8bbd1657c84a86272133e6b; >= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, < 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d
LinuxLinux6.0

References

Timeline

Published
Oct 4, 2025
Last modified
Oct 19, 2026
NVD status
Analyzed

Related CVEs from 2025

CVE-2025-399475.5In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Harden uplink netdev access against device unbind The functCVE-2025-399485.5In the Linux kernel, the following vulnerability has been resolved: ice: fix Rx page leak on multi-buffer frames The ice_put_rx_mbuf() funCVE-2025-399495.5In the Linux kernel, the following vulnerability has been resolved: qed: Don't collect too many protection override GRC elements In the prCVE-2025-39953.4A vulnerability was found in TOTOLINK N150RT 3.4.0-B20190525. It has been declared as problematic. Affected by this vulnerability is an unknCVE-2025-399505.5In the Linux kernel, the following vulnerability has been resolved: net/tcp: Fix a NULL pointer dereference when using TCP-AO with TCP_REPACVE-2025-399517.8In the Linux kernel, the following vulnerability has been resolved: um: virtio_uml: Fix use-after-free after put_device in probe When regiCVE-2025-399527.8In the Linux kernel, the following vulnerability has been resolved: wifi: wilc1000: avoid buffer overflow in WID string configuration Fix CVE-2025-399535.5In the Linux kernel, the following vulnerability has been resolved: cgroup: split cgroup_destroy_wq into 3 workqueues A hung task can occuCVE-2025-399545.5In the Linux kernel, the following vulnerability has been resolved: clk: sunxi-ng: mp: Fix dual-divider clock rate readback When dual-diviCVE-2025-399557.8In the Linux kernel, the following vulnerability has been resolved: tcp: Clear tcp_sk(sk)->fastopen_rsk in tcp_disconnect(). syzbot reportCVE-2025-399565.5In the Linux kernel, the following vulnerability has been resolved: igc: don't fail igc_probe() on LED setup error When igc_led_setup() faCVE-2025-399577.8In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: increase scan_ies_len for S1G Currently the S1G capabi
CVE-2025-39946: Medium severity, CVSS 5.5 | Vulnix