Skip to contentSkip to conversation

CVE-2024-58240: tls: separate no-async decryption request handling from async

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

tls: separate no-async decryption request handling from async

If we're not doing async, the handling is much simpler. There's no reference counting, we just need to wait for the completion to wake us up and return its result.

We should preferably also use a separate crypto_wait. I'm not seeing a UAF as I did in the past, I think aec7961916f3 ("tls: fix race between async notify and socket close") took care of it.

This will make the next fix easier.

The Linux kernel CVE team has assigned CVE-2024-58240 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.6.21 with commit dec5b6e7b211e405d3bcb504562ab21aa7e5a64d
	Fixed in 6.7.9 with commit 999115298017a675d8ddf61414fc7a85c89f1186
	Fixed in 6.8 with commit 41532b785e9d79636b3815a64ddf6a096647d011

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2024-58240

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/tls/tls_sw.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/dec5b6e7b211e405d3bcb504562ab21aa7e5a64d
	https://git.kernel.org/stable/c/999115298017a675d8ddf61414fc7a85c89f1186
	https://git.kernel.org/stable/c/41532b785e9d79636b3815a64ddf6a096647d011