CVE-2024-38562·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: wifi: nl80211: Avoid address calculations via out of bounds array indexing Before request->channels[] can be used, request->n_channels must be set. Additionally, address calculations for memory after the "channels" array need to be calculated from the allocation base ("request") rather than via the first "out of bounds" index of "channels", otherwise run-time bounds checking will throw a warning.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.3
- Published
- 2024-06-19
Affected versions
From: 6.9
Until: 6.9.3
Fixed in: 6.9.3
How to fix this CVE
Update your Linux kernel to version 6.9.3 or later to resolve this memory safety issue in the nl80211 wireless subsystem. The vulnerability stems from improper address calculations when accessing the channels array without proper bounds checking. Apply the kernel update through your distribution's package manager and reboot the system to activate the patched kernel.
sudo dnf check-update kernel && sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r — confirm it is NOT between 6.9 and 6.9.2
- Verify nl80211 module is loaded: lsmod | grep cfg80211 — determines if wireless driver is active
- Review kernel messages for bounds check warnings: sudo dmesg | grep -i 'out of bounds' — look for sanitizer warnings related to array access
- Confirm patch application: grep -r 'request->n_channels' /lib/modules/$(uname -r)/kernel/net/wireless/ 2>/dev/null || echo 'Patched version installed'
FAQ
What is CVE-2024-38562?
This vulnerability in Linux kernel's nl80211 subsystem allows improper memory address calculations when accessing wireless channel configuration arrays, potentially causing kernel warnings or undefined behavior if the channels count is not validated before array access.
Is CVE-2024-38562 being actively exploited?
No, this vulnerability is not currently being actively exploited according to CISA KEV data, and no public exploit code is available.
What versions of Kernel are affected by CVE-2024-38562?
Linux kernel versions 6.9 through 6.9.2 are affected. Version 6.9.3 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-38562?
Run `uname -r` and check if the output shows a kernel version between 6.9 and 6.9.2 inclusive. If so, your system is vulnerable.
Does Defensia detect CVE-2024-38562?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-38562 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/4e2a5566462b53db7d4c4722da86eedf0b8f546c
- https://git.kernel.org/stable/c/838c7b8f1f278404d9d684c34a8cb26dc41aaaa1
- https://git.kernel.org/stable/c/8fa4d56564ee7cc2ee348258d88efe191d70dd7f
- https://git.kernel.org/stable/c/ed74398642fcb19f6ff385c35a7d512c6663e17b
- https://git.kernel.org/stable/c/4e2a5566462b53db7d4c4722da86eedf0b8f546c
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-38562. Free for 1 server.
Get started free