# CVE-2024-26670: arm64: entry: fix ARM64\_WORKAROUND\_SPECULATIVE\_UNPRIV\_LOAD

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-04-02T06:43:31.201Z
- **Modified:** 2026-10-30T13:17:21.033Z

## Who should check

- Anyone running Linux \>= 6e3ae2927b432a3b7c8374f14dbc1bd9ebe4372c, \< d9a9a4d8ebc2fa534c0eb3eef3dae45f5e61b3e3; \>= 471470bc7052d28ce125901877dd10e4c048e513, \< 58eb5c07f41704464b9acc09ab0707b6769db6c0; \>= 471470bc7052d28ce125901877dd10e4c048e513, \< baa0aaac16432019651e0d60c41cd34a0c3c3477; \>= 471470bc7052d28ce125901877dd10e4c048e513, \< 832dd634bd1b4e3bbe9f10b9c9ba5db6f6f2b97f; 32b0a4ffcaea44a00a61e40c0d1bcc50362aee25; \>= 6.1.57, \< 6.1.191; \>= 6.5.7, \< 6.6
- Anyone running Linux 6.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

arm64: entry: fix ARM64\_WORKAROUND\_SPECULATIVE\_UNPRIV\_LOAD

Currently the ARM64\_WORKAROUND\_SPECULATIVE\_UNPRIV\_LOAD workaround isn't
quite right, as it is supposed to be applied after the last explicit
memory access, but is immediately followed by an LDR.

The ARM64\_WORKAROUND\_SPECULATIVE\_UNPRIV\_LOAD workaround is used to
handle Cortex-A520 erratum 2966298 and Cortex-A510 erratum 3117295,
which are described in:

\* https://developer.arm.com/documentation/SDEN2444153/0600/?lang=en
\* https://developer.arm.com/documentation/SDEN1873361/1600/?lang=en

In both cases the workaround is described as:

\| If pagetable isolation is disabled, the context switch logic in the
\| kernel can be updated to execute the following sequence on affected
\| cores before exiting to EL0, and after all explicit memory accesses:
\|
\| 1. A non-shareable TLBI to any context and/or address, including
\|    unused contexts or addresses, such as a \`TLBI VALE1 Xzr\`.
\|
\| 2. A DSB NSH to guarantee completion of the TLBI.

The important part being that the TLBI+DSB must be placed "after all
explicit memory accesses".

Unfortunately, as-implemented, the TLBI+DSB is immediately followed by
an LDR, as we have:

\| alternative\_if ARM64\_WORKAROUND\_SPECULATIVE\_UNPRIV\_LOAD
\| 	tlbi	vale1, xzr
\| 	dsb	nsh
\| alternative\_else\_nop\_endif
\| alternative\_if\_not ARM64\_UNMAP\_KERNEL\_AT\_EL0
\| 	ldr	lr, \[sp, \#S\_LR\]
\| 	add	sp, sp, \#PT\_REGS\_SIZE		// restore sp
\| 	eret
\| alternative\_else\_nop\_endif
\|
\| \[ ... KPTI exception return path ... \]

This patch fixes this by reworking the logic to place the TLBI+DSB
immediately before the ERET, after all explicit memory accesses.

The ERET is currently in a separate alternative block, and alternatives
cannot be nested. To account for this, the alternative block for
ARM64\_UNMAP\_KERNEL\_AT\_EL0 is replaced with a single alternative branch
to skip the KPTI logic, with the new shape of the logic being:

\| alternative\_insn "b .L\_skip\_tramp\_exit\_\\@", nop, ARM64\_UNMAP\_KERNEL\_AT\_EL0
\| 	\[ ... KPTI exception return path ... \]
\| .L\_skip\_tramp\_exit\_\\@:
\|
\| 	ldr	lr, \[sp, \#S\_LR\]
\| 	add	sp, sp, \#PT\_REGS\_SIZE		// restore sp
\|
\| alternative\_if ARM64\_WORKAROUND\_SPECULATIVE\_UNPRIV\_LOAD
\| 	tlbi	vale1, xzr
\| 	dsb	nsh
\| alternative\_else\_nop\_endif
\| 	eret

The new structure means that the workaround is only applied when KPTI is
not in use; this is fine as noted in the documented implications of the
erratum:

\| Pagetable isolation between EL0 and higher level ELs prevents the
\| issue from occurring.

... and as per the workaround description quoted above, the workaround
is only necessary "If pagetable isolation is disabled".

## Affected and fixed versions

- Linux: \>= 6e3ae2927b432a3b7c8374f14dbc1bd9ebe4372c, \< d9a9a4d8ebc2fa534c0eb3eef3dae45f5e61b3e3; \>= 471470bc7052d28ce125901877dd10e4c048e513, \< 58eb5c07f41704464b9acc09ab0707b6769db6c0; \>= 471470bc7052d28ce125901877dd10e4c048e513, \< baa0aaac16432019651e0d60c41cd34a0c3c3477; \>= 471470bc7052d28ce125901877dd10e4c048e513, \< 832dd634bd1b4e3bbe9f10b9c9ba5db6f6f2b97f; 32b0a4ffcaea44a00a61e40c0d1bcc50362aee25; \>= 6.1.57, \< 6.1.191; \>= 6.5.7, \< 6.6 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 6.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26670. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26670.md
Affected: Linux >= 6e3ae2927b432a3b7c8374f14dbc1bd9ebe4372c, < d9a9a4d8ebc2fa534c0eb3eef3dae45f5e61b3e3; >= 471470bc7052d28ce125901877dd10e4c048e513, < 58eb5c07f41704464b9acc09ab0707b6769db6c0; >= 471470bc7052d28ce125901877dd10e4c048e513, < baa0aaac16432019651e0d60c41cd34a0c3c3477; >= 471470bc7052d28ce125901…
Fixed in: Linux 58eb5c07f41704464b9acc09ab0707b6769db6c0, Linux 832dd634bd1b4e3bbe9f10b9c9ba5db6f6f2b97f, Linux 6.1.191, Linux 6.6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26670 being exploited?

There is no confirmed exploitation: CVE-2024-26670 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26670?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26670?

Linux \>= 6e3ae2927b432a3b7c8374f14dbc1bd9ebe4372c, \< d9a9a4d8ebc2fa534c0eb3eef3dae45f5e61b3e3; \>= 471470bc7052d28ce125901877dd10e4c048e513, \< 58eb5c07f41704464b9acc09ab0707b6769db6c0; \>= 471470bc7052d28ce125901877dd10e4c048e513, \< baa0aaac16432019651e0d60c41cd34a0c3c3477; \>= 471470bc7052d28ce125901877dd10e4c048e513, \< 832dd634bd1b4e3bbe9f10b9c9ba5db6f6f2b97f; 32b0a4ffcaea44a00a61e40c0d1bcc50362aee25; \>= 6.1.57, \< 6.1.191; \>= 6.5.7, \< 6.6; Linux 6.6.

### Is there a fix for CVE-2024-26670?

Yes. Fixed in Linux 58eb5c07f41704464b9acc09ab0707b6769db6c0, Linux 832dd634bd1b4e3bbe9f10b9c9ba5db6f6f2b97f, Linux 6.1.191, Linux 6.6. Upgrade Linux to 6.6 or later.

### How do I check if I'm affected by CVE-2024-26670?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/58eb5c07f41704464b9acc09ab0707b6769db6c0>
- patch: <https://git.kernel.org/stable/c/baa0aaac16432019651e0d60c41cd34a0c3c3477>
- patch: <https://git.kernel.org/stable/c/832dd634bd1b4e3bbe9f10b9c9ba5db6f6f2b97f>
- other: <https://git.kernel.org/stable/c/d9a9a4d8ebc2fa534c0eb3eef3dae45f5e61b3e3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26670>

HTML: <https://flawdb.com/CVE-2024-26670> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26670>
