CVE-2023-52531

wifi: iwlwifi: mvm: Fix a memory corruption issue

HIGH
7.8
CVSS Score
Published: March 2, 2024 at 09:52 PM UTC
Updated: June 17, 2026 at 06:42 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.9 ≤ v < 5.15.1353.9 ≤ v < 6.1.573.9 ≤ v < 6.5.73.9 ≤ v < 6.65.16 ≤ v < 6.1.576.2 ≤ v < 6.5.76.6 rc16.6 rc26.6 rc36.6 rc48ca151b568b67a7b72dcfc6ee6ea7c107ddd795c
Vendor states this is fixed in 6b3223449c959a8be94a1f042288059e40fcccb0 (fixed)
Vendor states this is fixed in 7c8faa31080342aec4903c9acb20caf82fcca1ef (fixed)
Vendor states this is fixed in 8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d (fixed)
Vendor states this is fixed in f06cdd8d4ba5252986f51f80cc30263636397128 (fixed)
Vendor states this is fixed in 3.9 (unaffected)
Vendor states this is fixed in 5.15.135 (unaffected)
Vendor states this is fixed in 6.1.57 (unaffected)
Vendor states this is fixed in 6.5.7 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6b3223449c959a8be94a1f042288059e40fcccb0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7c8faa31080342aec4903c9acb20caf82fcca1ef
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f06cdd8d4ba5252986f51f80cc30263636397128

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card