Skip to contentSkip to conversation

CVE-2026-98573: net: skbuff: fix pull-bound underflow in skb_checksum_setup_ipv6()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 18

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: fix pull-bound underflow in skb_checksum_setup_ipv6()

skb_maybe_pull_tail() subtracts skb_headlen(skb) from the unsigned max argument and passes the result to __pskb_pull_tail() as a signed int. The function does not ensure that max is at least skb_headlen(skb).

This can happen while parsing IPv6 extension headers when an skb already has a linear area larger than MAX_IPV6_HDR_LEN. Once the parser needs data beyond the linear area, max - skb_headlen(skb) wraps and is converted to a negative delta. __pskb_pull_tail() then passes that negative length to skb_copy_bits(), where it can become a very large copy length.

Pass the requested length itself as the pull bound at the three extension-header call sites, so the delta can no longer go negative.

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

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

	Issue introduced in 3.13 with commit 1431fb31ecbaba1b5718006128f0f2ed0b94e1c3 and fixed in 5.10.271 with commit 9c4e432132a97b82edf28fa172c39f743e6bfb26
	Issue introduced in 3.13 with commit 1431fb31ecbaba1b5718006128f0f2ed0b94e1c3 and fixed in 5.15.222 with commit 718747afa5463d9cc5fd9a09f03b2a492edd9b78
	Issue introduced in 3.13 with commit 1431fb31ecbaba1b5718006128f0f2ed0b94e1c3 and fixed in 6.1.189 with commit a0ad0473c09d2e947aecac5c82e637ec85924b12
	Issue introduced in 3.13 with commit 1431fb31ecbaba1b5718006128f0f2ed0b94e1c3 and fixed in 6.6.158 with commit b2da5ed3d8c75e1b729a21b6d3beaed415e263f6
	Issue introduced in 3.13 with commit 1431fb31ecbaba1b5718006128f0f2ed0b94e1c3 and fixed in 6.12.112 with commit 6c28c31f051dbf49c71ba7ab7bb9bc905fa1d14b
	Issue introduced in 3.13 with commit 1431fb31ecbaba1b5718006128f0f2ed0b94e1c3 and fixed in 6.18.55 with commit cfa643f2ca36c6f913fe1a2ceb12412ebb0fd962
	Issue introduced in 3.13 with commit 1431fb31ecbaba1b5718006128f0f2ed0b94e1c3 and fixed in 7.2.9 with commit d7f474226809471dc7877435e9c492cc914df0bf
	Issue introduced in 3.13 with commit 1431fb31ecbaba1b5718006128f0f2ed0b94e1c3 and fixed in 7.3-rc5 with commit 3b4e0b0c008a8c1b474730248cd5b873026c74bd

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

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/9c4e432132a97b82edf28fa172c39f743e6bfb26
	https://git.kernel.org/stable/c/718747afa5463d9cc5fd9a09f03b2a492edd9b78
	https://git.kernel.org/stable/c/a0ad0473c09d2e947aecac5c82e637ec85924b12
	https://git.kernel.org/stable/c/b2da5ed3d8c75e1b729a21b6d3beaed415e263f6
	https://git.kernel.org/stable/c/6c28c31f051dbf49c71ba7ab7bb9bc905fa1d14b
	https://git.kernel.org/stable/c/cfa643f2ca36c6f913fe1a2ceb12412ebb0fd962
	https://git.kernel.org/stable/c/d7f474226809471dc7877435e9c492cc914df0bf
	https://git.kernel.org/stable/c/3b4e0b0c008a8c1b474730248cd5b873026c74bd