Skip to contentSkip to conversation

CVE-2026-90049: net: skbuff: don't skb_tx_error() the source skb in skb_zerocopy()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

lore
Share & tools
lore
#0 lore raw

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

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

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

net: skbuff: don't skb_tx_error() the source skb in skb_zerocopy()

skb_zerocopy() copies frags from @from into @to. On an skb_orphan_frags() failure it calls skb_tx_error(@from), a destructive operation on the source skb the copy helper does not own. That completes @from's zerocopy uarg and clears SKBFL_ALL_ZEROCOPY, including the SKBFL_SHARED_FRAG page-ownership marker.

Both callers already report the failure on their own drop path. nfnetlink_queue does it at nla_put_failure, and Open vSwitch does it in the flow-miss drop arm of ovs_dp_process_packet(), so nothing is lost by dropping it here.

On Open vSwitch's OVS_ACTION_ATTR_USERSPACE path the skb is not freed on this error: do_execute_actions() ignores output_userspace()'s return value and, unless the upcall was the last action, keeps forwarding the same skb through the flow's remaining actions. The uarg is completed while that skb is still in flight, telling the producer its buffers are free, and SKBFL_SHARED_FRAG is cleared on an skb the rest of the stack still handles. That flag is what makes esp_input() call skb_cow_data() instead of decrypting in place, so a later local ESP delivery can decrypt over frags the skb does not own privately.

Leave error reporting to the callers.

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

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

	Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 5.10.270 with commit 849bdb83123760a865bcb2970127f4c0b9423ba3
	Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 5.15.221 with commit fb10e0e9b220a2eed08931a60dbaad9a2370c908
	Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 6.1.188 with commit 767ec2a65cc022d303b0c9c12811e7db22057341
	Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 6.6.157 with commit 8069643ae64dfdf634b6c78c7f622e5323031436
	Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 6.12.110 with commit 04dd250a78e268af3e7124beb1dc10ec1dd88d60
	Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 6.18.51 with commit a13b1e80e5015cd732440b475c0ef443dc4a2157
	Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 7.2.5 with commit bab5a851e44a3601d31f2aa8043f385bb50ac5d9
	Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 7.3-rc1 with commit 8ece906150128d5ec2462aabcc978c568433eca4
	Issue introduced in 3.10.51 with commit c5f0c0e7525443add533495e93ba8de6feab2396
	Issue introduced in 3.12.40 with commit 1674b4bf3eea3cac51b70778e89f8025f7cfe695

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-90049

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/core/skbuff.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/849bdb83123760a865bcb2970127f4c0b9423ba3
	https://git.kernel.org/stable/c/fb10e0e9b220a2eed08931a60dbaad9a2370c908
	https://git.kernel.org/stable/c/767ec2a65cc022d303b0c9c12811e7db22057341
	https://git.kernel.org/stable/c/8069643ae64dfdf634b6c78c7f622e5323031436
	https://git.kernel.org/stable/c/04dd250a78e268af3e7124beb1dc10ec1dd88d60
	https://git.kernel.org/stable/c/a13b1e80e5015cd732440b475c0ef443dc4a2157
	https://git.kernel.org/stable/c/bab5a851e44a3601d31f2aa8043f385bb50ac5d9
	https://git.kernel.org/stable/c/8ece906150128d5ec2462aabcc978c568433eca4