# CVE-2023-52531: wifi: iwlwifi: mvm: Fix a memory corruption issue

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-03-02T21:52:35.664Z
- Modified: 2026-06-17T06:42:56.930Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

wifi: iwlwifi: mvm: Fix a memory corruption issue

A few lines above, space is kzalloc()'ed for:
	sizeof(struct iwl_nvm_data) +
	sizeof(struct ieee80211_channel) +
	sizeof(struct ieee80211_rate)

'mvm->nvm_data' is a 'struct iwl_nvm_data', so it is fine.

At the end of this structure, there is the 'channels' flex array.
Each element is of type 'struct ieee80211_channel'.
So only 1 element is allocated in this array.

When doing:
  mvm->nvm_data->bands[0].channels = mvm->nvm_data->channels;
We point at the first element of the 'channels' flex array.
So this is fine.

However, when doing:
  mvm->nvm_data->bands[0].bitrates =
			(void *)((u8 *)mvm->nvm_data->channels + 1);
because of the "(u8 *)" cast, we add only 1 to the address of the beginning
of the flex array.

It is likely that we want point at the 'struct ieee80211_rate' allocated
just after.

Remove the spurious casting so that the pointer arithmetic works as
expected.

(As written by CVE List.)

## Affected

- Linux Linux: from 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c before 7c8faa31080342aec4903c9acb20caf82fcca1ef; from 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c before 6b3223449c959a8be94a1f042288059e40fcccb0; from 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c before f06cdd8d4ba5252986f51f80cc30263636397128; from 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c before 8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d; 3.9 (not affected: before 3.9; from 5.15.135 up to 5.15.*; from 6.1.57 up to 6.1.*; from 6.5.7 up to 6.5.*; from 6.6 up to *)
- linux linux_kernel: from 3.9 before 5.15.135; from 5.16 before 6.1.57; from 6.2 before 6.5.7; 6.6

## References

- <https://git.kernel.org/stable/c/7c8faa31080342aec4903c9acb20caf82fcca1ef> (patch)
- <https://git.kernel.org/stable/c/6b3223449c959a8be94a1f042288059e40fcccb0> (patch)
- <https://git.kernel.org/stable/c/f06cdd8d4ba5252986f51f80cc30263636397128> (patch)
- <https://git.kernel.org/stable/c/8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d> (patch)

## Sources

- CVE List: [CVE-2023-52531](https://www.cve.org/CVERecord?id=CVE-2023-52531), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52531](https://nvd.nist.gov/vuln/detail/CVE-2023-52531), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52531 · Whole record: https://cve.day/CVE-2023-52531.json · Rebuilt by cve.day 2026-11-25T22:58:33.168Z
