AZL-118298: CVE-2026-143188 affecting package kernel 6.6.161.1-1
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.
- Compensating control
In the TLS receive path, consume empty records in recvmsg() instead of queuing them on rx_list, decrypt them synchronously, and break the connection after a reader decrypts more than 128 consecutive empty data records. Reset the count on each read and whenever the reader waits for the next record.
Event History
Frequently Asked Questions
What must an attacker be able to do to trigger the issue?
The attacker must control a TLS peer that can send a sustained stream of zero-length application_data records faster than the receiving kernel TLS reader can decrypt and process them.
Which receive paths are most concerning?
The issue affects kernel TLS software receive handling. Consumers using read_sock, including nvme-tcp, are specifically called out because they can retain the socket lock and not regain control while empty records continue arriving.
Are occasional zero-length TLS records themselves treated as malicious?
No. The described fix targets more than 128 consecutive empty data records processed without sleeping or returning to the caller; the count resets when a read returns or waits for another record.