CVE-2024-40944 x86/kexec: Fix bug with call depth tracking
A null pointer dereference in the Linux kernel x86 kexec path causes a system crash when call depth tracking is active.
- 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-40944?
CVE-2024-40944 is a medium-severity vulnerability in Linux kernel, published on 12 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:
x86/kexec: Fix bug with call depth tracking
The call to cc_platform_has() triggers a fault and system crash if call depth tracking is active because the GS segment has been reset by load_segments() and GS_BASE is now 0 but call depth tracking uses per-CPU variables to operate.
Call cc_platform_has() earlier in the function when GS is still valid.
[ bp: Massage. ]
Which versions are affected by CVE-2024-40944?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-40944?
Apply the vendor's patch.
Is CVE-2024-40944 being exploited?
There is no known exploitation of CVE-2024-40944 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-40944, DEBIAN-CVE-2024-40944, GHSA-4x56-gm9r-89mg, UBUNTU-CVE-2024-40944.