CVE-2024-42094·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net/iucv: Avoid explicit cpumask var allocation on stack For CONFIG_CPUMASK_OFFSTACK=y kernel, explicit allocation of cpumask variable on stack is not recommended since it can cause potential stack overflow. Instead, kernel code should always use *cpumask_var API(s) to allocate cpumask var in config-neutral way, leaving allocation strategy to CONFIG_CPUMASK_OFFSTACK. Use *cpumask_var API(s) to address it.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.8
- Published
- 2024-07-29
Affected versions
From: 6.7
Until: 6.9.8
Fixed in: 6.9.8
How to fix this CVE
Update your Linux kernel to version 6.9.8 or later to resolve CVE-2024-42094, which addresses improper CPU mask allocation that can lead to stack overflow conditions on systems with CONFIG_CPUMASK_OFFSTACK enabled. Systems running kernel versions 6.7 through 6.9.7 should prioritize this update to prevent potential denial of service or privilege escalation scenarios affecting the net/iucv subsystem.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with `uname -r` and verify if it falls within the affected range (6.7.x to 6.9.7)
- Step 2: Verify if CONFIG_CPUMASK_OFFSTACK is enabled in your kernel configuration by running `grep CONFIG_CPUMASK_OFFSTACK /boot/config-$(uname -r)`
- Step 3: Check dmesg logs for stack overflow warnings or memory allocation failures related to iucv subsystem using `dmesg | grep -i 'iucv\|stack\|overflow'`
- Step 4: After patching, confirm the kernel version is updated to 6.9.8 or later using `uname -r`, then reboot and verify the system boots successfully with `dmesg | head -20`
FAQ
What is CVE-2024-42094?
This vulnerability involves improper CPU mask variable allocation in the Linux kernel's iucv (Inter-User Communication Vehicle) networking subsystem that can cause stack overflow when CONFIG_CPUMASK_OFFSTACK is enabled, potentially leading to denial of service or kernel privilege escalation.
Is CVE-2024-42094 being actively exploited?
No, according to CISA's Known Exploited Vulnerabilities catalog, CVE-2024-42094 is not currently being actively exploited in the wild, and no public exploits are available.
What versions of Kernel are affected by CVE-2024-42094?
Linux kernel versions 6.7 through 6.9.7 are affected; version 6.9.8 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-42094?
Run `uname -r` to check your kernel version—if it shows 6.7.x through 6.9.7, you are vulnerable. Additionally, confirm CONFIG_CPUMASK_OFFSTACK is enabled with `grep CONFIG_CPUMASK_OFFSTACK /boot/config-$(uname -r)`.
Does Defensia detect CVE-2024-42094?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-42094 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0af718a690acc089aa1bbb95a93df833d864ef53
- https://git.kernel.org/stable/c/2b085521be5292016097b5e7ca81b26be3f7098d
- https://git.kernel.org/stable/c/2d090c7f7be3b26fcb80ac04d08a4a8062b1d959
- https://git.kernel.org/stable/c/724e7965af054079242b8d6f7e50ee226730a756
- https://git.kernel.org/stable/c/842afb47d84536fc976fece8fb6c54bea711ad1a
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-42094. Free for 1 server.
Get started free