Skip to main content
Network Thinking Solutions Logo

CVE-2024-35803

Linux kernel: x86/efistub: Call mixed mode boot services on the firmware's stack

All CVEs
CVE-2024-35803Published 5/17/2024

Linux kernel: x86/efistub: Call mixed mode boot services on the firmware's stack

Vendor advisory
CVSS5.5Medium

Overview

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.

Published
5/17/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
< 6.1.84

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.24

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.7.12

Verify advisory

Source
linux kernel
linux
≥ 6.8, < 6.8.3

Verify advisory

Source
Linux
Linux
≥ b8ff87a6158886771677e6dc8139bac6e3cba717, < 2149f8a56e2ed345c7a4d022a79f6b8fc53ae926

Verify advisory

Source
Linux
Linux
≥ b8ff87a6158886771677e6dc8139bac6e3cba717, < 930775060ca348b8665f60eef14b204172d14f31

Verify advisory

Source
Linux
Linux
≥ b8ff87a6158886771677e6dc8139bac6e3cba717, < fba7ee7187581b5bc222003e73e2592b398bb06d

Verify advisory

Source
Linux
Linux
≥ b8ff87a6158886771677e6dc8139bac6e3cba717, < 725351c036452b7db5771a7bed783564bc4b99cc

Verify advisory

Source
Linux
Linux
≥ b8ff87a6158886771677e6dc8139bac6e3cba717, < cefcd4fe2e3aaf792c14c9e56dab89e3d7a65d02

Verify advisory

Source
Linux
Linux
3.15

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.