CVE-2024-46823 kunit/overflow: Fix UB in overflow_allocation_test
A use-after-free in the Linux kernel KUnit overflow test causes a kernel panic when KASAN is enabled, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-46823?
CVE-2024-46823 is a high-severity vulnerability in Linux kernel, published on 27 Sep 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:
kunit/overflow: Fix UB in overflow_allocation_test
The 'device_name' array doesn't exist out of the 'overflow_allocation_test' function scope. However, it is being used as a driver name when calling 'kunit_driver_create' from 'kunit_device_register'. It produces the kernel panic with KASAN enabled.
Since this variable is used in one place only, remove it and pass the device name into kunit_device_register directly as an ascii string.
Which versions are affected by CVE-2024-46823?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-46823?
Apply the vendor's patch.
Is CVE-2024-46823 being exploited?
There is no known exploitation of CVE-2024-46823 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-53307, AZL-53346, BELL-CVE-2024-46823, DEBIAN-CVE-2024-46823, GHSA-hm28-rwr4-j8f5, ROOT-OS-DEBIAN-11-CVE-2024-46823 and 2 more.