CVE-2023-52531
Last modified
CVE-2023-52531 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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.. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 3.9, < 5.15.135 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.57 | — |
| Linux | Linux Kernel | >= 6.2, < 6.5.7 | — |
| Linux | Linux Kernel | 6.6 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2023-52531?
How severe is CVE-2023-52531?
How do I fix CVE-2023-52531?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-52526In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52527In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52528In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52529In the Linux kernel, the following vulnerability has been re…6
- CVE-2023-5253A missing authentication check in the WebSocket channel used…7.5
- CVE-2023-52530In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-52532In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-52533In modem-ps-nas-ngmm, there is a possible undefined behavior…5.3
- CVE-2023-52534In ngmm, there is a possible undefined behavior due to incor…5.9
- CVE-2023-52535In vsp driver, there is a possible missing verification inco…4.4
- CVE-2023-52536In faceid service, there is a possible out of bounds read du…4.4
- CVE-2023-52537Vulnerability of package name verification being bypassed in…7.5
Are you affected by CVE-2023-52531?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
