Skip to contentSkip to conversation

CVE-2026-99027: net: team: stop reusing skb after queue override

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

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: team: stop reusing skb after queue override

A nonzero dev_queue_xmit() result does not return ownership of the skb. When an override port's qdisc drops it, the queue override helper used to try another port or the mode transmit op with the freed skb.

Return the handoff decision separately from transmit success. Select only the first override port under RCU and stop after handing it the skb, regardless of the lower transmit result. Keep the existing success and drop accounting.

  BUG: KASAN: slab-use-after-free in sk_skb_reason_drop
  Write of size 4 by task poc/5040
  sk_skb_reason_drop (net/core/skbuff.c:1240)
  dev_kfree_skb_any_reason (net/core/dev.c:3470)
  ab_transmit (drivers/net/team/team_mode_activebackup.c:49)
  team_xmit (drivers/net/team/team_core.c:1849)
  __dev_direct_xmit (net/core/dev.c:4934)
  Freed by task 5040:
  __tcf_kfree_skb_list (net/sched/sch_generic.c:43)
  __dev_queue_xmit (net/core/dev.c:4831)
  team_xmit (drivers/net/team/team_core.c:1846)
  Kernel panic - not syncing: KASAN: panic_on_warn set ...

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

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

	Issue introduced in 3.7 with commit 8ff5105a2b9dd0ba596719b165c1827d101e5f1a and fixed in 6.6.160 with commit b21f20320fa2f3c683e3334d70de6bfd172e544a
	Issue introduced in 3.7 with commit 8ff5105a2b9dd0ba596719b165c1827d101e5f1a and fixed in 6.12.114 with commit 07a48cfceb3d0555710a9acb87c949500a7b4523
	Issue introduced in 3.7 with commit 8ff5105a2b9dd0ba596719b165c1827d101e5f1a and fixed in 6.18.57 with commit 0c0568c9d35c47dc8e3ef6705d4c35a02bd88c4e
	Issue introduced in 3.7 with commit 8ff5105a2b9dd0ba596719b165c1827d101e5f1a and fixed in 7.2.11 with commit bed63353341d2d44cbad034001dd382cfe3a3892
	Issue introduced in 3.7 with commit 8ff5105a2b9dd0ba596719b165c1827d101e5f1a and fixed in 7.3 with commit b7454f1940c5e6d92e753853c476a769e452f30a

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

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:
drivers/net/team/team_core.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/b21f20320fa2f3c683e3334d70de6bfd172e544a
	https://git.kernel.org/stable/c/07a48cfceb3d0555710a9acb87c949500a7b4523
	https://git.kernel.org/stable/c/0c0568c9d35c47dc8e3ef6705d4c35a02bd88c4e
	https://git.kernel.org/stable/c/bed63353341d2d44cbad034001dd382cfe3a3892
	https://git.kernel.org/stable/c/b7454f1940c5e6d92e753853c476a769e452f30a