Skip to contentSkip to conversation

CVE-2026-99057: xen/netfront: don't leak the skb when xennet_fill_frags() fails

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:

xen/netfront: don't leak the skb when xennet_fill_frags() fails

When a response chain has more slots than fit in the skb's frags, xennet_fill_frags() returns an error and xennet_poll() jumps to its error path. That path moves what's left on tmpq to errq to be freed, but the skb being filled was already dequeued from tmpq, so it's never freed. Each chain that overflows leaks the skb and the pages attached to it as frags, and the backend decides how many slots it sends.

Put the skb back on tmpq before taking the error path, like the xennet_set_skb_gso() failure just above it does.

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

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

	Issue introduced in 4.19 with commit ad4f15dc2c70b1de5e0a64d27335962fbc9cf71c and fixed in 6.6.160 with commit 5051df031144753d3e18862514969146b601d089
	Issue introduced in 4.19 with commit ad4f15dc2c70b1de5e0a64d27335962fbc9cf71c and fixed in 6.12.113 with commit 99011a11c97340ef7290df7dc199305c73fab2f2
	Issue introduced in 4.19 with commit ad4f15dc2c70b1de5e0a64d27335962fbc9cf71c and fixed in 6.18.57 with commit 086944c1c2cbb683543bc3ff08637847b03c8009
	Issue introduced in 4.19 with commit ad4f15dc2c70b1de5e0a64d27335962fbc9cf71c and fixed in 7.2.11 with commit 84e3ea6502b5f14ce8d499d0b6e0e38386274cf0
	Issue introduced in 4.19 with commit ad4f15dc2c70b1de5e0a64d27335962fbc9cf71c and fixed in 7.3 with commit 93ccaf1c26e2133396173b76a071e59024daa622
	Issue introduced in 4.4.159 with commit bd1468048aa3e2af865da92990539946d4483989
	Issue introduced in 4.9.130 with commit 29a6193c0d74390c004808441061ac1812cf6f51
	Issue introduced in 4.14.73 with commit 7eced4478f4ec6ff0a603ddfd6e24a5d3831fca7
	Issue introduced in 4.18.11 with commit b73a161e9beff24bf1803ba393dff95a255268f9

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

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/xen-netfront.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/5051df031144753d3e18862514969146b601d089
	https://git.kernel.org/stable/c/99011a11c97340ef7290df7dc199305c73fab2f2
	https://git.kernel.org/stable/c/086944c1c2cbb683543bc3ff08637847b03c8009
	https://git.kernel.org/stable/c/84e3ea6502b5f14ce8d499d0b6e0e38386274cf0
	https://git.kernel.org/stable/c/93ccaf1c26e2133396173b76a071e59024daa622