Skip to contentSkip to conversation

CVE-2026-98345: wifi: cfg80211: check IP header size in cfg80211_classify8021d()

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:

wifi: cfg80211: check IP header size in cfg80211_classify8021d()

A frame that looks like IP can be transmitted, but be too short, so the DS field is read incorrectly:

  BUG: KMSAN: uninit-value in cfg80211_classify8021d+0x99d/0x12b0 net/wireless/util.c:1027
   cfg80211_classify8021d+0x99d/0x12b0 net/wireless/util.c:1027
   ieee80211_select_queue+0x37a/0x9e0 net/mac80211/wme.c:180
   __ieee80211_subif_start_xmit+0x60f/0x1d90 net/mac80211/tx.c:4304
   ieee80211_subif_start_xmit+0xa8/0x6d0 net/mac80211/tx.c:4538
   ...
   packet_sendmsg+0x9173/0xa2a0 net/packet/af_packet.c:3108

Use skb_header_pointer() like the MPLS case.

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

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

	Issue introduced in 2.6.31 with commit e31a16d6f64ef0e324c6f54d5112703c3f13a9c4 and fixed in 5.10.271 with commit 18d5547327c202cda33ad2bbd203220c2c62c8a7
	Issue introduced in 2.6.31 with commit e31a16d6f64ef0e324c6f54d5112703c3f13a9c4 and fixed in 5.15.222 with commit 3ff17ffa8d02e0e3f6b2f6e57af4aac511f5b734
	Issue introduced in 2.6.31 with commit e31a16d6f64ef0e324c6f54d5112703c3f13a9c4 and fixed in 6.1.189 with commit c4fbcf1e614ef0755fcc751fdfca21b0bf4e0ef7
	Issue introduced in 2.6.31 with commit e31a16d6f64ef0e324c6f54d5112703c3f13a9c4 and fixed in 6.6.158 with commit 12c0abd4d1c1b04a7663d04ba85268bc9ad9c017
	Issue introduced in 2.6.31 with commit e31a16d6f64ef0e324c6f54d5112703c3f13a9c4 and fixed in 6.12.112 with commit f33ad4e2f846e55cf4637419268f093ac9f1a765
	Issue introduced in 2.6.31 with commit e31a16d6f64ef0e324c6f54d5112703c3f13a9c4 and fixed in 6.18.54 with commit a2cdb4a675ca04c4ac8cc962848082d8ce065008
	Issue introduced in 2.6.31 with commit e31a16d6f64ef0e324c6f54d5112703c3f13a9c4 and fixed in 7.2.8 with commit 65893c8d28f239c7ddad5a83683be193a9133e9b
	Issue introduced in 2.6.31 with commit e31a16d6f64ef0e324c6f54d5112703c3f13a9c4 and fixed in 7.3-rc4 with commit 48b2c5c628b09cf36cbeca53e0432fc2a7518be7

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

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/wireless/util.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/18d5547327c202cda33ad2bbd203220c2c62c8a7
	https://git.kernel.org/stable/c/3ff17ffa8d02e0e3f6b2f6e57af4aac511f5b734
	https://git.kernel.org/stable/c/c4fbcf1e614ef0755fcc751fdfca21b0bf4e0ef7
	https://git.kernel.org/stable/c/12c0abd4d1c1b04a7663d04ba85268bc9ad9c017
	https://git.kernel.org/stable/c/f33ad4e2f846e55cf4637419268f093ac9f1a765
	https://git.kernel.org/stable/c/a2cdb4a675ca04c4ac8cc962848082d8ce065008
	https://git.kernel.org/stable/c/65893c8d28f239c7ddad5a83683be193a9133e9b
	https://git.kernel.org/stable/c/48b2c5c628b09cf36cbeca53e0432fc2a7518be7