Vulnerability record
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 tls_sw_splice_read()
A zero-length application_data record decrypts to full_len == 0, so tls_sw_splice_read() 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 tls_sw_read_sock() does. The cap on consecutive empty records bounds the loop.
When an empty record precedes a close_notify, splice(2) now returns -EINVAL from the control-record test instead of a…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources