Linux kernel out-of-bounds read in mac80211_hwsim TX info
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5d44fe7c9808c56e136e59147bd932f5491520f1 · < 13edd8ea7ff2ce6a964b290ef2034cd8cbed96c7| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's mac80211_hwsim handler accepts an undersized HWSIM_ATTR_TX_INFO attribute and reads beyond its payload. Someone able to submit a malformed attribute to the handler can trigger the out-of-bounds read; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with mac80211_hwsim should check their versions; affected versions are not specified.