Linux kernel TLS encryption use-after-free on async error
CVE-2026-31533Critical
The Linux kernel's TLS implementation has a use-after-free vulnerability in the tls_do_encryption() function when handling asynchronous encryption requests that return -EBUSY. When an encryption request is queued to the cryptd backlog, the async callback performs cleanup of the scatterlist and decrements a counter. If the wait for that callback then returns an error, the synchronous error path performs the same cleanup again, corrupting the counter and causing subsequent operations to free memory whilst a callback is still pending. An attacker with the ability to send network traffic through a TLS connection could trigger this condition to cause a use-after-free.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Detail
Affected versions
- linux linux kernel: from 5.15.160, before 5.15.203
- linux linux kernel: from 6.1.84, before 6.1.169
- linux linux kernel: from 6.6.18, before 6.6.135
- linux linux kernel: from 6.7.6, before 6.8
- linux linux kernel: from 6.8.1, before 6.12.82
- linux linux kernel: from 6.13, before 6.18.23
- linux linux kernel: from 6.19, before 6.19.13
- linux linux kernel: 7.0
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)