Advisory

UBUNTU-CVE-2024-26670

Also known as: CVE-2024-26670

Summary

The record has no summary.

Details

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

Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2024-04-02 07:15 UTC
Modified
2026-02-06 21:13 UTC

Affected packages and fixes

75 affected packages
PackageSystemAffectedFix
linux-hwe-edgeDebian packages (deb) · Ubuntu 16.04introduced 0No fixed version is listed.
linux-aws-5.0Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-aws-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-azureDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-azure-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-azure-edgeDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gcpDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gcp-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gke-4.15Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gke-5.4Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-gkeop-5.4Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-hweDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-oemDebian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-oracle-5.0Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-oracle-5.3Debian packages (deb) · Ubuntu 18.04introduced 0No fixed version is listed.
linux-aws-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-aws-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-aws-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-azure-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-azure-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-azure-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-azure-fdeDebian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gcp-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gcp-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gcp-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gkeDebian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-gke-5.15Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-hwe-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-hwe-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-hwe-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-intel-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oem-5.10Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oem-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oem-5.14Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oem-5.6Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oracle-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oracle-5.13Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-oracle-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-raspi2Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-riscvDebian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-riscv-5.11Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-riscv-5.8Debian packages (deb) · Ubuntu 20.04introduced 0No fixed version is listed.
linux-allwinner-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-aws-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-aws-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-aws-6.5Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-azure-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-azure-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-azure-6.5Debian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-azure-fde-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-azure-fde-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-gcp-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-gcp-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-gcp-6.5Debian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-hwe-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-hwe-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-hwe-6.5Debian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-intel-iot-realtimeDebian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-lowlatency-hwe-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-lowlatency-hwe-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-lowlatency-hwe-6.5Debian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-nvidia-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-nvidia-6.5Debian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-oem-5.17Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-oem-6.0Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-oem-6.1Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-oem-6.5Debian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-oracle-6.5Debian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-realtimeDebian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-riscvDebian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-riscv-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-riscv-6.5Debian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade
linux-starfive-5.19Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-starfive-6.2Debian packages (deb) · Ubuntu 22.04introduced 0No fixed version is listed.
linux-starfive-6.5Debian packages (deb) · Ubuntu 22.04Earlier versionssudo apt-get update && sudo apt-get upgrade

Some commands upgrade the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences