CVE-2024-46823: kunit/overflow: Fix UB in overflow_allocation_test
In the Linux kernel, the following vulnerability has been resolved:
kunit/overflow: Fix UB in overflowallocationtest
The 'devicename' array doesn't exist out of the 'overflowallocationtest' function scope. However, it is being used as a driver name when calling 'kunitdrivercreate' from 'kunitdeviceregister'. 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 kunitdeviceregister directly as an ascii string.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-46823?
CVE-2024-46823 is classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2024-46823?
To mitigate CVE-2024-46823, upgrade to Linux kernel version 6.12.11-1 or later.
Which versions of Linux kernel are affected by CVE-2024-46823?
CVE-2024-46823 affects Linux kernel versions up to 6.10.10 and includes 6.11-rc1, 6.11-rc2, and 6.11-rc3.
What is the nature of the vulnerability described in CVE-2024-46823?
CVE-2024-46823 involves a potential undefined behavior due to incorrect handling of the 'device_name' array in the overflow_allocation_test function.
Is CVE-2024-46823 present in Debian Linux packages?
Yes, CVE-2024-46823 is present in certain Debian Linux kernel packages prior to version 6.12.11-1.