CVE-2026-89487: openvswitch: only skb_tx_error() a packet we are about to drop
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
openvswitch: only skb_tx_error() a packet we are about to drop
queue_userspace_packet() borrows the packet skb -- it only copies it into a private netlink message (user_skb) and does not own it; on return do_execute_actions() keeps forwarding it through the flow's remaining actions. Its error path nevertheless calls skb_tx_error(skb), which via skb_zcopy_clear() does skb_shinfo(skb)->flags &= ~SKBFL_ALL_ZEROCOPY, stripping SKBFL_SHARED_FRAG from that live skb (skb_tx_error()'s kerneldoc says "skb must be freed afterwards").
For a MSG_ZEROCOPY skb carrying page-cache frags, SKBFL_SHARED_FRAG is what makes esp_input() skb_cow_data() before in-place AEAD; once it is stripped a later local ESP-in-UDP delivery decrypts in place over pages the sender does not own -- an unprivileged page-cache write (the "Fragnesia" primitive).do_execute_actions() ignores output_userspace()'s return value, so any action after a failed USERSPACE upcall inherits the stripped skb.
Move the skb_tx_error() to the flow-miss drop path - the "default" branch of ovs_dp_process_packet()'s switch(error), before kfree_skb().
The call has been here since commit 36d5fe6a0007 ("core, nfqueue,
openvswitch: Orphan frags in skb_zerocopy and handle errors") but was harmless until esp_input() began relying on SKBFL_SHARED_FRAG to gate in-place decrypt; only then did stripping it on a still-forwarded skb become a page-cache write primitive.
The Linux kernel CVE team has assigned CVE-2026-89487 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 6.12.109 with commit 6767d70cf46f65807a6a4c4406a518e6c12e36ae Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 6.18.50 with commit e41a59fc056f63a7a1f42788913c53cc48d744aa Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 7.2.4 with commit 5d85eef222cfd28e73deed7402c100229e8b9e6e Issue introduced in 3.14 with commit 36d5fe6a000790f56039afe26834265db0a3ad4c and fixed in 7.3-rc1 with commit 0dbc2398fca3bb33eda963849f865ddb1b3aa05e 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-89487
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/openvswitch/datapath.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/6767d70cf46f65807a6a4c4406a518e6c12e36ae https://git.kernel.org/stable/c/e41a59fc056f63a7a1f42788913c53cc48d744aa https://git.kernel.org/stable/c/5d85eef222cfd28e73deed7402c100229e8b9e6e https://git.kernel.org/stable/c/0dbc2398fca3bb33eda963849f865ddb1b3aa05e