Skip to contentSkip to conversation

CVE-2026-98238: net: wwan: t7xx: validate the netif index in t7xx_ccmni_recv_skb()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

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: wwan: t7xx: validate the netif index in t7xx_ccmni_recv_skb()

The netif index carried in the DPMAIF PIT header is five bits wide, but ccmni_inst[] only has room for NIC_DEV_MAX (21) entries. t7xx_ccmni_recv_skb() indexes the array without a bounds check, so indexes 21 to 31 read past it. The out-of-bounds value lands in the callback table that follows the array, which is never NULL, so the existing !ccmni check does not catch it and the driver dereferences whatever sits there as a struct t7xx_ccmni.

Drop the skb when the index is out of range.

Verified in a QEMU guest with a fault injector setting the netif index to 25: the unpatched driver reads a value past ccmni_inst[], which lands in the callback table, and dereferences it far enough to queue the skb. With this check the packet is dropped. Well-formed traffic on index 0 is unaffected.

Changes in v2: none.

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

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

	Issue introduced in 5.19 with commit 05d19bf500f8281f574713479b04679fa226d0a3 and fixed in 6.1.189 with commit 7c2fe308bda5a7e6222d7f0c3c311991372baab4
	Issue introduced in 5.19 with commit 05d19bf500f8281f574713479b04679fa226d0a3 and fixed in 6.6.158 with commit fba45070e25abdae08bcaebfadeef050dc39e208
	Issue introduced in 5.19 with commit 05d19bf500f8281f574713479b04679fa226d0a3 and fixed in 6.12.112 with commit e1b0609b1a40da03e385be290853a604eb4c3fb9
	Issue introduced in 5.19 with commit 05d19bf500f8281f574713479b04679fa226d0a3 and fixed in 6.18.54 with commit 9dbf13de4edff6fbc1f7ad9c4040326b6ed599ad
	Issue introduced in 5.19 with commit 05d19bf500f8281f574713479b04679fa226d0a3 and fixed in 7.2.8 with commit d28aa2de9654e8024922775520a2665e00c04ad5
	Issue introduced in 5.19 with commit 05d19bf500f8281f574713479b04679fa226d0a3 and fixed in 7.3-rc4 with commit c7ead9704249d57d4693a04697e3bbd285138fa9

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

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/wwan/t7xx/t7xx_netdev.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/7c2fe308bda5a7e6222d7f0c3c311991372baab4
	https://git.kernel.org/stable/c/fba45070e25abdae08bcaebfadeef050dc39e208
	https://git.kernel.org/stable/c/e1b0609b1a40da03e385be290853a604eb4c3fb9
	https://git.kernel.org/stable/c/9dbf13de4edff6fbc1f7ad9c4040326b6ed599ad
	https://git.kernel.org/stable/c/d28aa2de9654e8024922775520a2665e00c04ad5
	https://git.kernel.org/stable/c/c7ead9704249d57d4693a04697e3bbd285138fa9