CVE-2026-143444: SUNRPC: reject a client-side TLS alert record that is not two octets
In the Linux kernel, the following vulnerability has been resolved:
SUNRPC: reject a client-side TLS alert record that is not two octets
tlsalertrecv() reads two octets from the kvec it is handed and does not check the length (net/handshake/alert.c). xssockprocesscmsg() calls it for any alert record, and the alert[] buffer that xssockrecvcmsg() supplies carries no initializer. A one-octet alert body leaves the description read from uninitialized stack and reported through tracetlsalertrecv().
The peer controls that length. Neither tlsrxmsgsize() nor tlsrxonerecord() enforces the two-octet Alert payload. A TLS 1.3 record carrying only the inner content-type octet decrypts to a zero-length payload. RFC 8446 Section 5.1 requires a record with an Alert type to carry exactly one message, so any other length is malformed. RFC 9289 Section 5 bars RPC-with-TLS from negotiating a version below TLS 1.3, so no other alert framing applies.
Require exactly two octets before parsing and return -EACCES otherwise. xsstreamdatareceive() already treats -EACCES as a fatal alert and reports it to the pending tasks. Gate the path on a control message rather than a positive count so that a zero-length record reaches the check.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
On the client-side TLS alert path, require the alert payload to be exactly two octets before parsing; reject any other length with -EACCES.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Linux kernel systems using the SUNRPC client-side TLS receive path are exposed when they communicate with a peer that can send TLS alert records. RPC-with-TLS negotiates TLS 1.3, so the affected alert framing is the TLS 1.3 format.
What does an attacker need to do to trigger the flaw?
The peer must send a malformed TLS alert record whose decrypted alert payload is not exactly two octets. A one-octet body can cause the alert description to be read from uninitialized stack memory and reported through trace_tls_alert_recv().
What happens after the fix when a malformed alert is received?
Alert payloads that are not exactly two octets are rejected with -EACCES before parsing. The stream receive path treats -EACCES as a fatal alert and reports it to pending tasks.