Bug 1227883 (CVE-2024-40944) - VUL-0: CVE-2024-40944: kernel: x86/kexec: Fix bug with call depth tracking
Summary: VUL-0: CVE-2024-40944: kernel: x86/kexec: Fix bug with call depth tracking
Status: NEW
Alias: CVE-2024-40944
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Kernel Bugs
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/413871/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-16 07:39 UTC by SMASH SMASH
Modified: 2024-07-16 08:15 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-07-16 07:39:03 UTC
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. ]

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-40944
https://www.cve.org/CVERecord?id=CVE-2024-40944
https://git.kernel.org/stable/c/2cfb464669b645a9b98478b74f2bcea9860dcff1
https://git.kernel.org/stable/c/93c1800b3799f17375989b0daf76497dd3e80922
https://git.kernel.org/stable/c/d91ddd05082691e69b30744825d18ae799293258
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-40944.mbox