CVE-2024-35803
Last modified
CVE-2024-35803 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: x86/efistub: Call mixed mode boot services on the firmware's stack Normally, the EFI stub calls into the EFI boot services using the stack that was live when the stub was entered. According to the UEFI spec, this stack needs to be at least 128k in size - this might seem large but all asynchronous processing and event handling in EFI runs from the same stack and so quite a lot of space may be used in practice. In mixed mode, the situation is a bit different: the bootloader calls the 32-bit EFI stub entry point, which calls the decompressor's 32-bit entry point, where the boot stack is set up, using a fixed allocation of 16k. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: x86/efistub: Call mixed mode boot services on the firmware's stack Normally, the EFI stub calls into the EFI boot services using the stack that was live when the stub was entered. According to the UEFI spec, this stack needs to be at least 128k in size - this might seem large but all asynchronous processing and event handling in EFI runs from the same stack and so quite a lot of space may be used in practice. In mixed mode, the situation is a bit different: the bootloader calls the 32-bit EFI stub entry point, which calls the decompressor's 32-bit entry point, where the boot stack is set up, using a fixed allocation of 16k. This stack is still in use when the EFI stub is started in 64-bit mode, and so all calls back into the EFI firmware will be using the decompressor's limited boot stack. Due to the placement of the boot stack right after the boot heap, any stack overruns have gone unnoticed. However, commit 5c4feadb0011983b ("x86/decompressor: Move global symbol references to C code") moved the definition of the boot heap into C code, and now the boot stack is placed right at the base of BSS, where any overruns will corrupt the end of the .data section. While it would be possible to work around this by increasing the size of the boot stack, doing so would affect all x86 systems, and mixed mode systems are a tiny (and shrinking) fraction of the x86 installed base. So instead, record the firmware stack pointer value when entering from the 32-bit firmware, and switch to this stack every time a EFI boot service call is made.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 6.1.84 |
| Linux | Linux Kernel | >= 6.2, < 6.6.24 |
| Linux | Linux Kernel | >= 6.7, < 6.7.12 |
| Linux | Linux Kernel | >= 6.8, < 6.8.3 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2024-35803?
How severe is CVE-2024-35803?
How do I fix CVE-2024-35803?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-35798In the Linux kernel, the following vulnerability has been re…4.7
- CVE-2024-35799In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-3580The Popup4Phone WordPress plugin through 1.3.2 does not sani…6.1
- CVE-2024-35800In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35801In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35802Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-35804In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35805In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35806In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35807In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35808In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-35809In the Linux kernel, the following vulnerability has been re…4.7
Are you affected by CVE-2024-35803?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
