CVE-2024-43851: soc: xilinx: rename cpu_number1 to dummy_cpu_number
In the Linux kernel, the following vulnerability has been resolved:
soc: xilinx: rename cpunumber1 to dummycpunumber
The per cpu variable cpunumber1 is passed to xlnxeventhandler as argument "devid", but it is not used in this function. So drop the initialization of this variable and rename it to dummycpunumber. This patch is to fix the following call trace when the kernel option CONFIGDEBUGATOMICSLEEP is enabled:
BUG: sleeping function called from invalid context at include/linux/sched/mm.h:274 inatomic(): 1, irqsdisabled(): 0, nonblock: 0, pid: 1, name: swapper/0 preemptcount: 1, expected: 0 CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.0 #53 Hardware name: Xilinx Versal vmk180 Eval board rev1.1 (QSPI) (DT) Call trace: dumpbacktrace+0xd0/0xe0 showstack+0x18/0x40 dumpstacklvl+0x7c/0xa0 dumpstack+0x18/0x34 mightresched+0x10c/0x140 mightsleep+0x4c/0xa0 kmemcacheallocnode+0xf4/0x168 kmalloctrace+0x28/0x38 requestpercpuirq+0x74/0x138 xlnxeventmanagerprobe+0xf8/0x298 platformprobe+0x68/0xd8
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.106-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.10.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.12-1Fixed in 7.2.15-1 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.103 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.44 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.8 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.10.3
Event History
Frequently Asked Questions
What is the severity of CVE-2024-43851?
CVE-2024-43851 has a low severity rating as it involves an unused per-CPU variable in the Linux kernel.
How do I fix CVE-2024-43851?
To fix CVE-2024-43851, update your Linux kernel to a version that has this vulnerability resolved, such as those beyond the affected versions.
Which versions of the Linux kernel are affected by CVE-2024-43851?
CVE-2024-43851 affects Linux kernel versions between 6.1.77 and 6.1.103, 6.6.16 and 6.6.44, 6.7.4 and 6.8, and 6.8 and 6.10.3.
Is CVE-2024-43851 exploitable?
CVE-2024-43851 is not directly exploitable, as it pertains to an unused variable without security implications.
What components are primarily impacted by CVE-2024-43851?
CVE-2024-43851 specifically affects the Xilinx event handler in the Linux kernel.