CVE-2024-42093 net/dpaa2: Avoid explicit cpumask var allocation on stack
A stack overflow in the Linux kernel DPAA2 driver 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-42093?
CVE-2024-42093 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/dpaa2: 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-42093?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-42093?
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-42093 being exploited?
There is no known exploitation of CVE-2024-42093 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-42093, DEBIAN-CVE-2024-42093, GHSA-v9r3-3hjw-wxm2, UBUNTU-CVE-2024-42093.