# CVE-2024-40944: x86/kexec: Fix bug with call depth tracking

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-07-12T12:25:18.490Z
- Modified: 2026-06-17T07:46:55.537Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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. ]

(As written by CVE List.)

## Affected

- Linux Linux: from 5d8213864ade86b48fc492584ea86d65a62f892e before d91ddd05082691e69b30744825d18ae799293258; from 5d8213864ade86b48fc492584ea86d65a62f892e before 2cfb464669b645a9b98478b74f2bcea9860dcff1; from 5d8213864ade86b48fc492584ea86d65a62f892e before 93c1800b3799f17375989b0daf76497dd3e80922; 6.2 (not affected: before 6.2; from 6.6.35 up to 6.6.*; from 6.9.6 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.2 before 6.6.35; from 6.7 before 6.9.6; 6.10

## References

- <https://git.kernel.org/stable/c/d91ddd05082691e69b30744825d18ae799293258> (patch)
- <https://git.kernel.org/stable/c/2cfb464669b645a9b98478b74f2bcea9860dcff1> (patch)
- <https://git.kernel.org/stable/c/93c1800b3799f17375989b0daf76497dd3e80922> (patch)

## Sources

- CVE List: [CVE-2024-40944](https://www.cve.org/CVERecord?id=CVE-2024-40944), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-40944](https://nvd.nist.gov/vuln/detail/CVE-2024-40944), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-40944 · Whole record: https://cve.day/CVE-2024-40944.json · Rebuilt by cve.day 2026-11-25T22:58:42.851Z
