wifi: mac80211_hwsim: reject undersized HWSIM_ATTR_TX_INFO
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.111, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211_hwsim: reject undersized HWSIM_ATTR_TX_INFO hwsim_tx_info_frame_received_nl() casts the HWSIM_ATTR_TX_INFO payload to a struct hwsim_tx_rate * and unconditionally reads IEEE80211_TX_MAX_RATES entries (8 bytes) from it. The policy only bounds the attribute from above (NLA_BINARY .len is a maximum) and the op sets GENL_DONT_VALIDATE_STRICT, so a short or zero-length attribute is accepted and the loop reads past the payload. Require the exact length in the policy, so a malformed attribute is rejected before the handler runs.
Timeline
- CVE published
- First seen by cve.now
- Record last updated
Affected versions
- Linux Linux
From 5d44fe7c9808c56e136e59147bd932f5491520f1 · fixed in 3a96bb65b4b820d8b41fa155781ec1c29e3479d4; From 5d44fe7c9808c56e136e59147bd932f5491520f1 · fixed in 59e1f2a0242232b4a3af144ae317d3913fc09046; From 5d44fe7c9808c56e136e59147bd932f5491520f1 · fixed in 1ae85bb34fe3510659b86d6a5f8036dd498233f8; From 5d44fe7c9808c56e136e59147bd932f5491520f1 · fixed in 6f6368b20f8c9481fa7ba7b672dcb3c9f36b2695; From 5d44fe7c9808c56e136e59147bd932f5491520f1 · fixed in b5b1234bbfa25537fb9a5c0d62c328ed4547f721; From 5d44fe7c9808c56e136e59147bd932f5491520f1 · fixed in 13edd8ea7ff2ce6a964b290ef2034cd8cbed96c7; From 5d44fe7c9808c56e136e59147bd932f5491520f1 · fixed in 3dc723ac78a6e4fa0fd49e27e487ed319da40a9f
- Linux Linux
5.7
- KernelLinux
fixed in 5.10.271; From 5.11.0 · fixed in 5.15.222; From 5.16.0 · fixed in 6.1.189; From 6.2.0 · fixed in 6.6.158; From 6.7.0 · fixed in 6.12.111; From 6.13.0 · fixed in 6.18.53
References 7
git.kernel.org
- stable/c/3a96bb65b4b820d8b41fa155781ec1c29e3479d4
- stable/c/59e1f2a0242232b4a3af144ae317d3913fc09046
- stable/c/1ae85bb34fe3510659b86d6a5f8036dd498233f8
- stable/c/6f6368b20f8c9481fa7ba7b672dcb3c9f36b2695
- stable/c/b5b1234bbfa25537fb9a5c0d62c328ed4547f721
- stable/c/13edd8ea7ff2ce6a964b290ef2034cd8cbed96c7
- stable/c/3dc723ac78a6e4fa0fd49e27e487ed319da40a9f