CVE-2026-98183: wifi: mac80211: avoid out-of-bounds read for empty PREQ elements
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: avoid out-of-bounds read for empty PREQ elements
ieee80211_mesh_preq_size_ok() derives the location of the PREQ bottom fields before checking whether the element contains even the fixed header. ieee80211_mesh_hwmp_preq_get_bottom() reads the flags byte to account for the optional Address Extension field. Consequently, an empty PREQ element causes a one-byte read beyond its declared payload.
Move the helper call after both size checks, so the bottom fields are only accessed when they are present.
The Linux kernel CVE team has assigned CVE-2026-98183 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.2 with commit 8b40b1d24a6099fe9fac8e207d4cb04ab5e0baae and fixed in 7.2.8 with commit 3beddbd56946577478fd5e649f556aaaebe15b0a Issue introduced in 7.2 with commit 8b40b1d24a6099fe9fac8e207d4cb04ab5e0baae and fixed in 7.3-rc4 with commit e6031f02269c0f51cf67886d177f02bc300b47cd
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-98183
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:
include/linux/ieee80211-mesh.h
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/3beddbd56946577478fd5e649f556aaaebe15b0a https://git.kernel.org/stable/c/e6031f02269c0f51cf67886d177f02bc300b47cd