CVE-2026-80904: net/tls: Fail tls_sw_splice_read() after a failed async decrypt
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net/tls: Fail tls_sw_splice_read() after a failed async decrypt
When an async decrypt fails, tls_decrypt_done() records the error in ctx->async_wait.err and calls tls_err_abort(), which stores it in sk_err. tls_sw_recvmsg() and tls_sw_read_sock() each read async_wait.err once they hold the reader lock and fail the call: a record that did not authenticate breaks the connection.
tls_sw_splice_read() has no such check, and sk_err does not stand in for one. tls_rx_rec_wait() tests sk_err only inside the loop it skips whenever a record is already parsed, and the first reader to reach sock_error() clears it, while async_wait.err persists. A splice therefore keeps delivering records on a connection that recvmsg() and read_sock() refuse to read.
Read async_wait.err in tls_sw_splice_read() as the other two readers do.
The Linux kernel CVE team has assigned CVE-2026-80904 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit f314bfee81b1bf8e01168177b2f65f24eb8da63a and fixed in 6.1.184 with commit a808aadff634c7a408b2ab84d5919e9a741fdb5b Issue introduced in 5.19 with commit f314bfee81b1bf8e01168177b2f65f24eb8da63a and fixed in 6.6.153 with commit 06c2a53604fa1dc4820063828d7dadb3675b7af8 Issue introduced in 5.19 with commit f314bfee81b1bf8e01168177b2f65f24eb8da63a and fixed in 6.12.105 with commit 18ae1e95f20867106a28820c208a9cec99dda861 Issue introduced in 5.19 with commit f314bfee81b1bf8e01168177b2f65f24eb8da63a and fixed in 6.18.46 with commit 82d9269f01ebfd835b6256aa17016a974cbbc647 Issue introduced in 5.19 with commit f314bfee81b1bf8e01168177b2f65f24eb8da63a and fixed in 7.1.10 with commit 4b177911eb9f799e9841c2f87c75b08cb112757a Issue introduced in 5.19 with commit f314bfee81b1bf8e01168177b2f65f24eb8da63a and fixed in 7.2 with commit 976df67f463db1fddaf2a32fb04f57ad2891a23d
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-2026-80904
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/a808aadff634c7a408b2ab84d5919e9a741fdb5b https://git.kernel.org/stable/c/06c2a53604fa1dc4820063828d7dadb3675b7af8 https://git.kernel.org/stable/c/18ae1e95f20867106a28820c208a9cec99dda861 https://git.kernel.org/stable/c/82d9269f01ebfd835b6256aa17016a974cbbc647 https://git.kernel.org/stable/c/4b177911eb9f799e9841c2f87c75b08cb112757a https://git.kernel.org/stable/c/976df67f463db1fddaf2a32fb04f57ad2891a23d