CVE-2026-143188: tls: Break the connection after a burst of empty data records
In the Linux kernel, the following vulnerability has been resolved:
tls: Break the connection after a burst of empty data records
TLS permits zero-length applicationdata records, and RFC 8446 suggests them for generating cover traffic. Nothing bounds how many of them a reader processes back to back, though. They advance neither loop bound in tlsswrecvmsg() and tlsswreadsock(), so a peer streaming them faster than the reader decrypts them keeps it in the kernel for as long as they arrive. recvmsg() does not check for signals while records are ready, and its peek and async paths queue every empty record on rxlist. readsock consumers like nvme-tcp hold the socket lock throughout and never get control back.
Break the connection once a reader decrypts more than 128 consecutive empty data records without sleeping or returning to its caller in between, treating the burst as a protocol violation like a malformed record header. A stream of empty records which the reader keeps up with costs no more than any other traffic, so the count starts over on every read and whenever the reader waits for the next record. The strparser is stopped before it parses the next record, so the reader gets the error from tlsrxrecwait() and no later record is delivered. Returning to the caller and keeping the connection alive would need a way to wake readsock consumers which installed their own skdataready after the handshake, a lot of code for a peer that is either broken or malicious.
Consume empty records in recvmsg() rather than queuing them on rxlist, so that repeated MSGPEEK cannot pile them up past the per-read count. Decrypt them synchronously, too. Once a recvmsg() call has decrypted a record asynchronously, recvend replaces the error with the result of processrxlist(), so a call that saw only empty records returns 0, a false EOF, instead of the error or -EAGAIN.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
Break the connection when a reader decrypts more than 128 consecutive empty data records.
- Compensating control
Consume empty records in recvmsg() instead of queuing them on rx_list, and decrypt them synchronously.
Event History
Frequently Asked Questions
Which workloads are most exposed to this issue?
Kernel TLS receive paths using tls_sw_recvmsg() or tls_sw_read_sock() are affected. The description specifically identifies recvmsg() peek and asynchronous paths, as well as read_sock consumers such as nvme-tcp.
What must an attacker do to trigger the condition?
A connected peer must stream zero-length TLS application_data records faster than the receiving side can decrypt them. The vulnerable reader can remain in the kernel as long as those records continue arriving.
What is the operational impact of a sustained empty-record stream?
recvmsg() may not check for signals while records are ready, and its peek and asynchronous paths can queue empty records on rx_list. read_sock consumers can hold the socket lock and fail to return control to their caller while processing the stream.
Will normal use of zero-length TLS records necessarily disconnect the connection after the fix?
No. The connection is broken only after more than 128 consecutive empty data records are decrypted without the reader sleeping or returning to its caller; the count resets on every read and whenever the reader waits for the next record.