CVE-2026-143187: tls: Consume empty data records in tls_sw_splice_read()
In the Linux kernel, the following vulnerability has been resolved:
tls: Consume empty data records in tlsswspliceread()
A zero-length applicationdata record decrypts to fulllen == 0, so tlsswspliceread() splices zero bytes and returns zero. A zero return from a splice read means EOF, and the caller tears down a connection that is still live.
Consume the record and fetch the next one, as tlsswreadsock() does. The cap on consecutive empty records bounds the loop.
When an empty record precedes a closenotify, splice(2) now returns -EINVAL from the control-record test instead of a false EOF. A splice that reaches an alert record already reports -EINVAL.