CVE-2026-98186
wifi: mwifiex: bound the pairwise-cipher OUI walk to the IE length
Check your servers for CVE-2026-98186
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98186 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
wifi: mwifiex: bound the pairwise-cipher OUI walk to the IE length
mwifiex_search_oui_in_ie() reads a pairwise-cipher (PTK) count from a beacon/probe-response RSN or WPA information element and then walks that many 4-byte OUIs, comparing each with memcmp(). The count comes straight from the (attacker-supplied) IE and is never checked against the element's own length, and the callers admit the element on element_id alone (has_ieee_hdr() / has_vendor_hdr(), no length check). A crafted RSN/WPA IE with a large pairwise count therefore makes the walk read up to 255 * 4 bytes past the element -- an out-of-bounds read of the kmemdup()'d beacon buffer, reachable from any AP whose beacon/probe response is processed during scan-result parsing.
Pass the number of IE bytes available at the OUI list and bound the walk to the element. Keep the length signed and reject a negative value before any unsigned arithmetic, so a small or zero IE length cannot underflow to a large size_t and defeat the bound.
Found by 0sec automated security-research tooling (https://0sec.ai).
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.25% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e, before 77e642af7f2f6029e12a35c847c56cbd0466e799 affected from 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e, before 982b8fcdbb28f63bbbf02f0822c0bbda12ec27ed affected from 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e, before 58767b41f87244eebaa5a475b9d276c83b89b933 affected from 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e, before 2402c9e2644b7e10c7aaaf87bf12743d7e363559 affected from 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e, before 54a9cc5bd70b0d77a5069d4c46998c679a10c857 affected from 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e, before 8bbef2b1ebfbadc0b9c37bbbf9c9e26fe2e41960 affected from 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e, before 46cda9d42f0d6ec3057d878ddb1f38c0ab9f51df affected from 5e6e3a92b9a4c9416b17f468fa5c7fa2233b8b4e, before e667aee1c192d67d27c803007bfa9c6e0873e959
Other versions: unaffected
|
| Linux |
affected 3.0 unaffected before 3.0 unaffected from 5.10.271 up to and including 5.10.* unaffected from 5.15.222 up to and including 5.15.* unaffected from 6.1.189 up to and including 6.1.* unaffected from 6.6.158 up to and including 6.6.* unaffected from 6.12.112 up to and including 6.12.* unaffected from 6.18.54 up to and including 6.18.* unaffected from 7.2.8 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98186 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98186
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-98186
trivy image --scanners vuln IMAGE | grep CVE-2026-98186
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/77e642af7f2f6029e12a35c847c56cbd0466e799 git.kernel.org
- https://git.kernel.org/stable/c/982b8fcdbb28f63bbbf02f0822c0bbda12ec27ed git.kernel.org
- https://git.kernel.org/stable/c/58767b41f87244eebaa5a475b9d276c83b89b933 git.kernel.org
- https://git.kernel.org/stable/c/2402c9e2644b7e10c7aaaf87bf12743d7e363559 git.kernel.org
- https://git.kernel.org/stable/c/54a9cc5bd70b0d77a5069d4c46998c679a10c857 git.kernel.org
- https://git.kernel.org/stable/c/8bbef2b1ebfbadc0b9c37bbbf9c9e26fe2e41960 git.kernel.org
- https://git.kernel.org/stable/c/46cda9d42f0d6ec3057d878ddb1f38c0ab9f51df git.kernel.org
- https://git.kernel.org/stable/c/e667aee1c192d67d27c803007bfa9c6e0873e959 git.kernel.org
Source: the record CVE-2026-98186 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse