CVE-2024-35803x86/efistub: Call mixed mode boot services on the firmware's stack
- 5.5MediumCVSS base score
- 0.22%Exploitation in 30 daysEPSS · top 87% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Linux
Published
- 24 months later
· 24 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.22% · top 87% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected b8ff87a6158886771677e6dc8139bac6e3cba717 – < 2149f8a56e2ed345c7a4d022a79f6b8fc53ae926
- affected b8ff87a6158886771677e6dc8139bac6e3cba717 – < 930775060ca348b8665f60eef14b204172d14f31
- affected b8ff87a6158886771677e6dc8139bac6e3cba717 – < fba7ee7187581b5bc222003e73e2592b398bb06d
- affected b8ff87a6158886771677e6dc8139bac6e3cba717 – < 725351c036452b7db5771a7bed783564bc4b99cc
- affected b8ff87a6158886771677e6dc8139bac6e3cba717 – < cefcd4fe2e3aaf792c14c9e56dab89e3d7a65d02
- affected 3.15
- unaffected < 3.15
- unaffected 6.1.84 – ≤ 6.1.*
- unaffected 6.6.24 – ≤ 6.6.*
- unaffected 6.7.12 – ≤ 6.7.*
- unaffected 6.8.3 – ≤ 6.8.*
- unaffected 6.9 – ≤ *
References
References5
- https://git.kernel.org/stable/c/2149f8a56e2ed345c7a4d022a79f6b8fc53ae926 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/930775060ca348b8665f60eef14b204172d14f31 (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/fba7ee7187581b5bc222003e73e2592b398bb06d (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/725351c036452b7db5771a7bed783564bc4b99cc (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/cefcd4fe2e3aaf792c14c9e56dab89e3d7a65d02 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-35795 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-35803)Record last updated .