cve.bz

CVE-2024-26670 linux linux kernel: Out-of-bounds Write

5.5 mediumEPSS 0.2%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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".

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 13th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-10-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-26670 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-26670?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-26670?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-26670 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linuxfrom 6.1.57 before 6.1.191
Linuxfrom 6.5.7 before 6.6
Linux6.6 and later

Fixed in

ProductRelease lineFixed in
Linux6.16.1.191
Linux6.66.6.15
Linux6.76.7.3
Linuxlater releases6.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.192-1DEBIAN-CVE-2024-26670 DLA-4906-1
Debian13, 14linux6.6.15-1DEBIAN-CVE-2024-26670
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2024-26670
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2024-26670
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2024-26670
Ubuntu22.04:LTSlinux-azure-6.56.5.0-1022.23~22.04.1UBUNTU-CVE-2024-26670 USN-6819-1
Ubuntu22.04:LTSlinux-gcp-6.56.5.0-1022.24~22.04.1UBUNTU-CVE-2024-26670 USN-6818-1
Ubuntu22.04:LTSlinux-hwe-6.56.5.0-41.41~22.04.2UBUNTU-CVE-2024-26670 USN-6818-4
Ubuntu22.04:LTSlinux-lowlatency-hwe-6.56.5.0-41.41.1~22.04.1UBUNTU-CVE-2024-26670 USN-6818-1
Ubuntu22.04:LTSlinux-nvidia-6.56.5.0-1021.22UBUNTU-CVE-2024-26670 USN-6818-3
Ubuntu22.04:LTSlinux-oem-6.56.5.0-1024.25UBUNTU-CVE-2024-26670 USN-6819-3
Ubuntu22.04:LTSlinux-oracle-6.56.5.0-1024.24~22.04.1UBUNTU-CVE-2024-26670 USN-6819-4
Ubuntu22.04:LTSlinux-riscv, linux-aws-6.2, linux-aws-6.5 and 21 moreno fix listedUBUNTU-CVE-2024-26670
Ubuntu22.04:LTSlinux-riscv-6.56.5.0-40.40.1~22.04.1UBUNTU-CVE-2024-26670
2 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 27 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.4.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.4.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 44 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 15 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-503.11.1.el9_5RHSA-2024:9315
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 2 morekernel-default5.14.21-150500.55.59.1SUSE-SU-2024:1480-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5-RT_Update_131-150500.11.3.1SUSE-SU-2024:1466-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_121-150500.11.7.1SUSE-SU-2024:1480-1
SUSELinux Enterprise Micro 5.5kernel-rt, kernel-source-rt5.14.21-150500.13.47.1SUSE-SU-2024:1466-1
SUSELinux Enterprise Micro 5.5, Linux Enterprise Module for Basesystem 15 SP5kernel-default-base5.14.21-150500.55.59.1.150500.6.25.7SUSE-SU-2024:1480-1
SUSELinux Enterprise Module for Basesystem 15 SP5kernel-64kb, kernel-source, kernel-default and 1 more5.14.21-150500.55.59.1SUSE-SU-2024:1480-1
SUSELinux Enterprise Module for Development Tools 15 SP5kernel-docs, kernel-syms, kernel-source and 1 more5.14.21-150500.55.59.1SUSE-SU-2024:1480-1
SUSELinux Enterprise Module for Public Cloud 15 SP5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.48.1SUSE-SU-2024:1490-1
SUSEReal Time Module 15 SP5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.47.1SUSE-SU-2024:1466-1
openSUSELeap 15.5dtb-aarch64, kernel-64kb, kernel-docs and 8 more5.14.21-150500.55.59.1SUSE-SU-2024:1480-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.48.1SUSE-SU-2024:1490-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.59.1.150500.6.25.7SUSE-SU-2024:1480-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.47.1SUSE-SU-2024:1466-1
Alpaquita23linux-lts6.1.191-r0BELL-CVE-2024-26670
Alpaquita25, streamlinux-lts6.12.41-r0BELL-CVE-2024-26670

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9kernel-0:5.14.0-503.11.1.el9_5Fixed 2024-11-12RHSA-2024:9315
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-26670.

References

Check your stackJSON