CVE-2024-26800
tls: fix use-after-free on failed backlog decryption
In the Linux kernel, the following vulnerability has been resolved:tls: fix use-after-free on failed backlog decryptionWhen the decrypt request goes to the backlog and crypto_aead_decryptreturns -EBUSY, tls_do_decryption will wait until all asyncdecryptions have completed. If one of them fails, tls_do_decryptionwill return -EBADMSG and tls_decrypt_sg jumps to the error path,releasing all the pages. But the pages have been passed to the asynccallback, and have already been released by tls_decrypt_done.The only true async case is when crypto_aead_decrypt returns -EINPROGRESS. With -EBUSY, we already waited so we can telltls_sw_recvmsg that the data is available for immediate copy, but weneed to notify tls_decrypt_sg (via the new ->async_done flag) that thememory has already been released.
- Affected
- Linux
- CVSS v3.1 NVD
- 7.8 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS v3.1 CNA
- 9.8 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - EPSS
- 0.74% chance of exploitation in the next 30 days, 54th percentile
- Published
- 2024-04-04
- Updated
- 2026-08-05
Exploit collections (1)
- linux/kernelctf/CVE-2024-26800_cosgoogle/security-research
Security advisories
- https://git.kernel.org/stable/c/13114dc5543069f7b97991e3b79937b6da05f5b0
- https://git.kernel.org/stable/c/1ac9fb84bc7ecd4bc6428118301d9d864d2a58d1
- https://git.kernel.org/stable/c/81be85353b0f5a7b660635634b655329b429eefe
- https://git.kernel.org/stable/c/f2b85a4cc763841843de693bbd7308fe9a2c4c89