Linux
wifi: ath11k: fix invalid data access in ath11k_dp_rx_h_undecap_nwifi
In the Linux kernel, the following vulnerability has been resolved: wifi: ath11k: fix invalid data access in ath11k_dp_rx_h_undecap_nwifi In certain cases, hardware might provide packets with a length greater than the maximum native Wi-Fi header length. This can lead to accessing and modifying fields in the header within the ath11k_dp_rx_h_undecap_nwifi() function for the DP_RX_DECAP_TYPE_NATIVE_WIFI decap type and potentially result in invalid data access and memory corruption. Kernel stack is corrupted in: ath11k_dp_rx_h_undecap+0x6b0/0x6b0 [ath11k] Call trace: ath11k_dp_rx_h_mpdu+0x0/0x2e8 [ath11k] ath11k_dp_rx_h_mpdu+0x1e0/0x2e8 [ath11k] ath11k_dp_rx_wbm_err+0x1e0/0x450 [ath11k] ath11k_dp_rx_process_wbm_err+0x2fc/0x460 [ath11k] ath11k_dp_service_srng+0x2e0/0x348 [ath11k] Add a sanity check before processing the SKB to prevent invalid data access in the undecap native Wi-Fi function for the DP_RX_DECAP_TYPE_NATIVE_WIFI decap type. This adapted from the discussion/patch of the ath12k driver [1]. Tested-on: WCN6855 hw2.1 PCI WLAN.HSP.1.1-04685-QCAHSPSWPL_V1_V2_SILICONZ_IOE-1
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= acc79d981c1462b22a7a2cb0d39725f8c01fc425, < 958cf3696ddc5ccafd3d0b8b0c03d90bcd771c0c
- >= acc79d981c1462b22a7a2cb0d39725f8c01fc425, < b4ef30f1d107aae460edf731a7c2d187fbc46a32
- >= acc79d981c1462b22a7a2cb0d39725f8c01fc425, < 1c0a13be76db3c1cf774aa11d9f4c3f8239ac567
- >= acc79d981c1462b22a7a2cb0d39725f8c01fc425, < 00738665c875ab34efa7126ea63c9d70b48ee169
- >= acc79d981c1462b22a7a2cb0d39725f8c01fc425, < 6b471e9aefee9ed73278eb1141e0d8530a56fae9
Fixed in 958cf3696ddc5ccafd3d0b8b0c03d90bcd771c0c, b4ef30f1d107aae460edf731a7c2d187fbc46a32, 1c0a13be76db3c1cf774aa11d9f4c3f8239ac567, 00738665c875ab34efa7126ea63c9d70b48ee169, 6b471e9aefee9ed73278eb1141e0d8530a56fae9
- 5.7
Fixed in 0, 6.1.189, 6.6.158, 6.12.111, 6.18.53, 7.2
Mitigation
Upgrade Linux to 958cf3696ddc5ccafd3d0b8b0c03d90bcd771c0c or b4ef30f1d107aae460edf731a7c2d187fbc46a32 or 1c0a13be76db3c1cf774aa11d9f4c3f8239ac567 or 00738665c875ab34efa7126ea63c9d70b48ee169 or 6b471e9aefee9ed73278eb1141e0d8530a56fae9 or later.
Upgrade Linux to 0 or 6.1.189 or 6.6.158 or 6.12.111 or 6.18.53 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.