Linux kernel TLS use-after-free in get_netdev_for_sock()
CVE-2025-40149High
The Linux kernel's TLS implementation could access freed memory when retrieving network device information during socket option setting. An attacker with local access could trigger this by calling setsockopt() on a TLS socket, potentially causing a denial of service or information disclosure. The vulnerability occurs because the code did not properly protect against the device pointer being freed whilst it was being accessed.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Detail
Affected versions
- linux linux kernel: from 4.18, before 5.15.199
- linux linux kernel: from 5.16, before 6.1.161
- linux linux kernel: from 6.2, before 6.6.121
- linux linux kernel: from 6.7, before 6.12.66
- linux linux kernel: from 6.13, before 6.17.3
Reports naming this CVE1 in total
· All CISA Advisories
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP (opens in a new tab)