CVE-2023-52531
wifi: iwlwifi: mvm: Fix a memory corruption issue
Check your servers for CVE-2023-52531
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-52531 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 15.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 4 Mar 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c, before 7c8faa31080342aec4903c9acb20caf82fcca1ef affected from 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c, before 6b3223449c959a8be94a1f042288059e40fcccb0 affected from 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c, before f06cdd8d4ba5252986f51f80cc30263636397128 affected from 8ca151b568b67a7b72dcfc6ee6ea7c107ddd795c, before 8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d
Other versions: unaffected
|
| Linux |
affected 3.9 unaffected before 3.9 unaffected from 5.15.135 up to and including 5.15.* unaffected from 6.1.57 up to and including 6.1.* unaffected from 6.5.7 up to and including 6.5.* unaffected 6.6 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-52531 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-52531
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-52531
trivy image --scanners vuln IMAGE | grep CVE-2023-52531
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/7c8faa31080342aec4903c9acb20caf82fcca1ef git.kernel.org
- https://git.kernel.org/stable/c/6b3223449c959a8be94a1f042288059e40fcccb0 git.kernel.org
- https://git.kernel.org/stable/c/f06cdd8d4ba5252986f51f80cc30263636397128 git.kernel.org
- https://git.kernel.org/stable/c/8ba438ef3cacc4808a63ed0ce24d4f0942cfe55d git.kernel.org
Source: the record CVE-2023-52531 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse