Skip to contentSkip to conversation

CVE-2026-72330: net/tls: Consume empty data records in tls_sw_read_sock()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

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

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

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

net/tls: Consume empty data records in tls_sw_read_sock()

A peer may send a zero-length TLS application_data record; TLS 1.3 explicitly permits these as a traffic-analysis countermeasure (RFC 8446, Section 5.1). After decryption such a record has full_len ==
0. tls_sw_read_sock() hands it to the read_actor, which has no payload to consume and returns zero. The loop treats a zero return as backpressure (used <= 0), requeues the skb at the head of rx_list, and stops. rx_list is serviced head-first on the next call, so the empty record is dequeued, fails the same way, and is requeued again; every later record on the connection is blocked behind it.

tls_sw_recvmsg() does not stall on this: a zero-length data record copies nothing and falls through to consume_skb(). Mirror that in the read_sock() path by recognizing an empty data record before the actor runs, consuming it, and continuing.

The Linux kernel CVE team has assigned CVE-2026-72330 to this issue.

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

	Issue introduced in 6.6 with commit 662fbcec32f4af6bdcf5b4006b792ebe9543d945 and fixed in 6.6.145 with commit 0867b0f2513ebc1c475af9898c97f4772a68d964
	Issue introduced in 6.6 with commit 662fbcec32f4af6bdcf5b4006b792ebe9543d945 and fixed in 6.12.97 with commit c6b440cf766a557b08d25f1b571b3d57d039686e
	Issue introduced in 6.6 with commit 662fbcec32f4af6bdcf5b4006b792ebe9543d945 and fixed in 6.18.40 with commit e8a4c9fc437b16aef38f86ce3275677e36924259
	Issue introduced in 6.6 with commit 662fbcec32f4af6bdcf5b4006b792ebe9543d945 and fixed in 7.1.5 with commit ebc295ce343600c2d60c1e1e0c5d192080217457
	Issue introduced in 6.6 with commit 662fbcec32f4af6bdcf5b4006b792ebe9543d945 and fixed in 7.2-rc3 with commit 3be28e2c9cd0230cb51fd4967df095273afd3848

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-72330

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/0867b0f2513ebc1c475af9898c97f4772a68d964
	https://git.kernel.org/stable/c/c6b440cf766a557b08d25f1b571b3d57d039686e
	https://git.kernel.org/stable/c/e8a4c9fc437b16aef38f86ce3275677e36924259
	https://git.kernel.org/stable/c/ebc295ce343600c2d60c1e1e0c5d192080217457
	https://git.kernel.org/stable/c/3be28e2c9cd0230cb51fd4967df095273afd3848