PT-2026-163251
CVE-2026-139210
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
tcp: reject devmem tx with fastopen and repair
tcp sendmsg locked() enforces that devmem TX can only proceed if the
zero-copy path is active and a valid dmabuf binding exists. However,
subsequent branches in tcp sendmsg locked() can still intercept the
message before it reaches the devmem zero-copy loop:
-
TCP Fast Open (MSG FASTOPEN or DEFER CONNECT): If TCP FASTOPEN CONNECT is set, the socket may have a valid dst with NETIF F SG (so zc == MSG ZEROCOPY and binding is present), but tcp sendmsg fastopen() -> tcp send syn data() will use copy page from iter() to byte-copy from the iterator. Since iov base represents dma-buf offsets rather than user virtual addresses, this misinterprets offsets as user pointers and copies the caller's memory at those addresses into the SYN packet.
-
TCP repair mode: If tp->repair is enabled with TCP RECV QUEUE, tcp send rcvq() similarly calls skb copy datagram from iter(), byte-copying from the iterator.
Neither path supports or makes sense for devmem transmission. Reject
devmem sends inside the Fast Open and TCP repair branches when a devmem
binding is present. Checking inside the tp->repair branch also covers
the case where repair mode is enabled while sk stream wait connect()
drops the socket lock.
Additionally, drop the !sockc err gate from the devmem validation check
and return sockc err if set. Otherwise, if a valid SCM DEVMEM DMABUF is
followed by a failing cmsg, sockc.dmabuf id remains set while binding is
not acquired, allowing the Fast Open and TCP RECV QUEUE repair paths to
proceed and return before sockc err is checked.
This pre-existing issue was identified by Sashiko AI review on commit
125755776bc6 ("tcp: reject non zerocopy devmem tx") and has not been
hit in production.
Found an issue in the description? Have something to add? Feel free to write us 👾