CVE-2026-53182: wifi: nl80211: reject oversized EMA RNR lists
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: nl80211: reject oversized EMA RNR lists
nl80211_parse_rnr_elems() stores the parsed element count in a u8-backed cfg80211_rnr_elems::cnt field and uses that count to size the flexible array allocation.
Reject nested NL80211_ATTR_EMA_RNR_ELEMS input once the count reaches 255, before incrementing it again. This keeps the parser aligned with the data structure it fills and matches the existing bound check used by nl80211_parse_mbssid_elems().
The Linux kernel CVE team has assigned CVE-2026-53182 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.1.160 with commit 56189d7bc30531def6b999f27940ee43c6ff2569 and fixed in 6.1.176 with commit fc0ec2fc02dfe52c5821f36fbccf6a45df43f508 Issue introduced in 6.4 with commit dbbb27e183b1568d5a907ace1cd144b0709ea52a and fixed in 6.6.143 with commit 688fcac7054abc680c0eef753f2bb772cfaf8cf7 Issue introduced in 6.4 with commit dbbb27e183b1568d5a907ace1cd144b0709ea52a and fixed in 6.12.94 with commit 30c3fa80f423613efdda3deca4af52ff7d20e4e2 Issue introduced in 6.4 with commit dbbb27e183b1568d5a907ace1cd144b0709ea52a and fixed in 6.18.36 with commit 265c07c09c837621730d35f02975207a1224bf05 Issue introduced in 6.4 with commit dbbb27e183b1568d5a907ace1cd144b0709ea52a and fixed in 7.0.13 with commit ecbf3c45add30a0857414e156bdb9c79906f0ff6 Issue introduced in 6.4 with commit dbbb27e183b1568d5a907ace1cd144b0709ea52a and fixed in 7.1 with commit 4cd92957e8f8cc4ebfe8a5d4203c14c592fde6b1
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-53182
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/nl80211.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/fc0ec2fc02dfe52c5821f36fbccf6a45df43f508 https://git.kernel.org/stable/c/688fcac7054abc680c0eef753f2bb772cfaf8cf7 https://git.kernel.org/stable/c/30c3fa80f423613efdda3deca4af52ff7d20e4e2 https://git.kernel.org/stable/c/265c07c09c837621730d35f02975207a1224bf05 https://git.kernel.org/stable/c/ecbf3c45add30a0857414e156bdb9c79906f0ff6 https://git.kernel.org/stable/c/4cd92957e8f8cc4ebfe8a5d4203c14c592fde6b1