Skip to contentSkip to conversation

CVE-2026-90051: tcp: reject non zerocopy devmem tx

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

tcp: reject non zerocopy devmem tx

Devmem tcp tx doesn't work without zero-copy, however it's not currently enforced if NETIF_F_SG isn't present. In this case, tcp_sendmsg_locked() will try the copy path and try to copy data from an iovec which consists of offsets into the dma-buf and would normally fail. Moreover, d9c56501c72fd ("net: tcp: block mixing readable and unreadable frags") relies on that and assumes that the devmem binding is present IFF we're using the zero-copy path, which can be used to mix net-iov and pages in a single skb, and break invariants. Let's reject devmem tx without zero-copy.

Note, the parameter check the patch is modifying is too loose, we can create an io_uring request with dmabuf_id and all ZC flags, but which won't have the binding. We replace it with stricter validation.

The Linux kernel CVE team has assigned CVE-2026-90051 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.16 with commit bd61848900bff597764238f3a8ec67c815cd316e and fixed in 6.18.52 with commit 2151b2bcf6fcec52665f606eed20da068447f0b7
	Issue introduced in 6.16 with commit bd61848900bff597764238f3a8ec67c815cd316e and fixed in 7.2.6 with commit b04326c7927af7048fd4e730f5770cca350d0a60
	Issue introduced in 6.16 with commit bd61848900bff597764238f3a8ec67c815cd316e and fixed in 7.3-rc3 with commit 125755776bc6d4dd53eaf551c87e3d460625d638

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-90051

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	net/ipv4/tcp.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/2151b2bcf6fcec52665f606eed20da068447f0b7
	https://git.kernel.org/stable/c/b04326c7927af7048fd4e730f5770cca350d0a60
	https://git.kernel.org/stable/c/125755776bc6d4dd53eaf551c87e3d460625d638