CVE-2024-42094 net/iucv: Avoid explicit cpumask var allocation on stack
A stack overflow in the Linux kernel's IUCV network module can cause a denial of service when CONFIG_CPUMASK_OFFSTACK is enabled.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-42094?
CVE-2024-42094 is a high-severity denial of service vulnerability in Linux kernel, published on 29 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-787
Which versions are affected by CVE-2024-42094?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-42094?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-42094 being exploited?
There is no known exploitation of CVE-2024-42094 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-42094, DEBIAN-CVE-2024-42094, GHSA-mwj6-494m-mx84, UBUNTU-CVE-2024-42094.