CVE-2026-143287: nvmet-tcp: ask for the TLS record type on every receive
In the Linux kernel, the following vulnerability has been resolved:
nvmet-tcp: ask for the TLS record type on every receive
nvmettcpalloccmd() points recvmsg.msgcontrol at recvcbuf once. The first receive that stores a record type there advances msgcontrol and leaves msgcontrollen at 0 for the lifetime of the command. From then on nvmettcptryrecvdata() sees the record type of that first receive: if it was an alert, all later data is dropped as alerts and the queue stalls, if it was data, a later alert can't be reported and tlsswrecvmsg() fails with -EIO.
Set up the control buffer before each receive, like the other receive paths do.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In nvmet-tcp, set up the control buffer before each receive and request the TLS record type on every receive.
Event History
Frequently Asked Questions
What conditions are required to trigger the issue?
The affected nvmet-tcp receive path must process TLS records for a command. The impact depends on the first received record type: an alert causes subsequent data to be treated as alerts and can stall the queue, while an initial data record prevents a later alert from being reported and results in -EIO.
How can administrators recognize that they may be affected?
Observable symptoms include an nvmet-tcp queue that stalls after a TLS alert, or tls_sw_recvmsg() failing with -EIO when a TLS alert arrives after data. These symptoms occur because the receive control buffer retains the record type from the first receive.
What mitigation is described if the fix cannot be applied immediately?
No operational workaround is provided in the available information. The described correction is to initialize the receive control buffer before every receive, as other receive paths do.