CVE-2024-50275 json
arm64/sve: Discard stale CPU state when handling SVE traps
published 2024-11-19 23 mo ago modified 2026-10-15 24 d ago also EUVD-2024-45173
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 15%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
arm64/sve: Discard stale CPU state when handling SVE traps
The logic for handling SVE traps manipulates saved FPSIMD/SVE state incorrectly, and a race with preemption can result in a task having TIF_SVE set and TIF_FOREIGN_FPSTATE clear even though the live CPU state is stale (e.g. with SVE traps enabled). This has been observed to result in warnings from do_sve_acc() where SVE traps are not expected while TIF_SVE is set:
| if (test_and_set_thread_flag(TIF_SVE)) | WARN_ON(1); /* SVE access shouldn't have trapped */
Warnings of this form have been reported intermittently, e.g.
https://lore.kernel.org/linux-arm-kernel/CA+G9fYtEGe_DhY2Ms7+L7NKsLYUomGsgqpdBj+QwDLeSg=JhGg@mail.gmail.com/ https://lore.kernel.org/linux-arm-kernel/000000000000511e9a060ce5a45c@google.com/
The race can occur when the SVE trap handler is preempted before and after manipulating the saved FPSIMD/SVE state, starting and ending on the same CPU, e.g.
| void do_sve_acc(unsigned long esr, struct pt_regs *regs) | { | // Trap on CPU 0 with TIF_SVE clear, SVE traps enabled | // task->fpsimd_cpu is 0. | // per_cpu_ptr(&fpsimd_last_state, 0) is task. | | ... | | // Preempted; migrated from CPU 0 to CPU 1. | // TIF_FOREIGN_FPSTATE is set. | | get_cpu_fpsimd_context(); | | if (test_and_set_thread_flag(TIF_SVE)) | WARN_ON(1); /* SVE access shouldn't have trapped */ | | sve_init_regs() { | if (!test_thread_flag(TIF_FOREIGN_FPSTATE)) { | ... | } else { | fpsimd_to_sve(current); | current->thread.fp_type = FP_STATE_SVE; | } | } | | put_cpu_fpsimd_context(); | | // Preempted; migrated from CPU 1 to CPU 0. | // task->fpsimd_cpu is still 0 | // If per_cpu_ptr(&fpsimd_last_state, 0) is still task then: | // - Stale HW state is reused (with SVE traps enabled) | // - TIF_FOREIGN_FPSTATE is cleared | // - A return to userspace skips HW state restore | }
Fix the case where the state is not live and TIF_FOREIGN_FPSTATE is set by calling fpsimd_flush_task_state() to detach from the saved CPU state. This ensures that a subsequent context switch will not reuse the stale CPU state, and will instead set TIF_FOREIGN_FPSTATE, forcing the new state to be reloaded from memory prior to a return to userspace.
Patch / fix
- Linux Linux 5.15.174, 6.1.120, 6.6.61, 6.11.8, 6.12
- linux Debian 12 6.1.123-1
- linux Debian 14, Debian 13 6.11.9-1
debian advisories DEBIAN-CVE-2024-50275
- linux Ubuntu 22.04 LTS 5.15.0-135.146
- linux Ubuntu 24.04 LTS 6.8.0-58.60
- linux-aws Ubuntu 22.04 LTS 5.15.0-1080.87
- linux-aws Ubuntu 24.04 LTS 6.8.0-1027.29
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1079.88
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1028.30
- linux-gke Ubuntu 22.04 LTS 5.15.0-1077.83
- linux-gke Ubuntu 24.04 LTS 6.8.0-1023.27
ubuntu advisories UBUNTU-CVE-2024-50275
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel RHEL 8 4.18.0-553.37.1.el8_10
- perf RHEL 8 4.18.0-553.37.1.el8_10
- bpftool RHEL 8 4.18.0-553.37.1.el8_10
- kernel-core RHEL 8 4.18.0-553.37.1.el8_10
- kernel-tools RHEL 8 4.18.0-553.37.1.el8_10
- python3-perf RHEL 8 4.18.0-553.37.1.el8_10
- kernel-modules RHEL 8 4.18.0-553.37.1.el8_10
- kernel-zfcpdump RHEL 8 4.18.0-553.37.1.el8_10
red hat advisories RHSA-2025:2525RHSA-2025:1658RHSA-2025:1068RHSA-2025:1067RHSA-2025:0578
- kernel-source Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1
- kernel-default Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1
- kernel-kvmsmall Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1
- kernel-default-base Linux Micro 6.1, Linux Micro 6.0 6.4.0-24.1.21.4
- kernel-livepatch-MICRO-6-0_Update_4 Linux Micro 6.1, Linux Micro 6.0 1-1.2
- kernel-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-22.1
- kernel-source-rt Linux Micro 6.1, Linux Micro 6.0 6.4.0-22.1
- kernel-livepatch-MICRO-6-0-RT_Update_4 Linux Micro 6.1, Linux Micro 6.0 1-1.1
suse advisories SUSE-SU-2025:20164-1SUSE-SU-2025:20247-1SUSE-SU-2025:20163-1SUSE-SU-2025:20246-1SUSE-SU-2025:0577-1SUSE-SU-2025:0577-2
- kernel-rt AlmaLinux 8 4.18.0-553.37.1.rt7.378.el8_10
- kernel-rt-core AlmaLinux 8 4.18.0-553.37.1.rt7.378.el8_10
- kernel-rt-modules AlmaLinux 8 4.18.0-553.37.1.rt7.378.el8_10
- kernel-rt-debug-core AlmaLinux 8 4.18.0-553.37.1.rt7.378.el8_10
- kernel-rt-debug-modules AlmaLinux 8 4.18.0-553.37.1.rt7.378.el8_10
- kernel-rt-modules-extra AlmaLinux 8 4.18.0-553.37.1.rt7.378.el8_10
- kernel-rt-debug-modules-extra AlmaLinux 8 4.18.0-553.37.1.rt7.378.el8_10
- kernel AlmaLinux 8 4.18.0-553.37.1.el8_10
almalinux advisories ALSA-2025:1067ALSA-2025:1068ALSA-2025:0578
- kernel-rt Rocky Linux 8 4.18.0-553.37.1.rt7.378.el8_10
- kernel Rocky Linux 8 4.18.0-553.37.1.el8_10
rocky linux advisories RLSA-2025:1067RLSA-2025:1068
- kernel Azure Linux 3.0 6.6.64.2-1
- kernel CBL-Mariner 2.0 5.15.176.3-1
azure linux advisories AZL-53585AZL-53643
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- git.kernel.org/stable/c/51d3d80a6dc314982a9a0aeb0961085922a1aa15 commit
- git.kernel.org/stable/c/de529504b3274d57caf8f66800b714b0d3ee235a commit
- git.kernel.org/stable/c/51d11ea0250d6ee461987403bbfd4b2abb5613a7 commit
- git.kernel.org/stable/c/fa9ce027b3ce37a2bb173bf2553b5caa438fd8c9 commit
- git.kernel.org/stable/c/751ecf6afd6568adc98f2a6052315552c0483d18 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-50275 updated cvss 6.3
kernel: arm64/sve: Discard stale CPU state when handling SVE traps
-
Red Hat CodeReady Linux Builder (v. 9) libperf 5.14.0-503.22.1.el9_5, kernel-debuginfo-common-s390x 5.14.0-503.22.1.el9_5, kernel-debuginfo-common-x86_64 5.14.0-503.22.1.el9_5, kernel-debuginfo-common-aarch64 5.14.0-503.22.1.el9_5, kernel-debuginfo-common-ppc64le 5.14.0-503.22.1.el9_5fixed: vendor fix RHSA-2025:0578
-
Red Hat CodeReady Linux Builder EUS (v.8.8) kernel-debuginfo-common-x86_64 4.18.0-477.93.1.el8_8, kernel-debuginfo-common-aarch64 4.18.0-477.93.1.el8_8, kernel-debuginfo-common-ppc64le 4.18.0-477.93.1.el8_8fixed: vendor fix RHSA-2025:2525
-
Red Hat CodeReady Linux Builder EUS (v.9.4) libperf 5.14.0-427.55.1.el9_4, kernel-debuginfo-common-s390x 5.14.0-427.55.1.el9_4, kernel-debuginfo-common-x86_64 5.14.0-427.55.1.el9_4, kernel-debuginfo-common-aarch64 5.14.0-427.55.1.el9_4, kernel-debuginfo-common-ppc64le 5.14.0-427.55.1.el9_4fixed: vendor fix RHSA-2025:1658
-
Red Hat Enterprise Linux AppStream (v. 9) rv 5.14.0-503.22.1.el9_5, perf 5.14.0-503.22.1.el9_5, rtla 5.14.0-503.22.1.el9_5, kernel-devel-matched 5.14.0-503.22.1.el9_5, kernel-64k-devel-matched 5.14.0-503.22.1.el9_5, kernel-debug-devel-matched 5.14.0-503.22.1.el9_5, +6 morefixed: vendor fix RHSA-2025:0578
-
Red Hat Enterprise Linux AppStream EUS (v.9.4) rv 5.14.0-427.55.1.el9_4, perf 5.14.0-427.55.1.el9_4, rtla 5.14.0-427.55.1.el9_4, kernel-devel-matched 5.14.0-427.55.1.el9_4, kernel-64k-devel-matched 5.14.0-427.55.1.el9_4, kernel-debug-devel-matched 5.14.0-427.55.1.el9_4, +6 morefixed: vendor fix RHSA-2025:1658
-
Red Hat Enterprise Linux BaseOS (v. 8) perf 4.18.0-553.37.1.el8_10, kernel 4.18.0-553.37.1.el8_10, bpftool 4.18.0-553.37.1.el8_10, kernel-core 4.18.0-553.37.1.el8_10, kernel-tools 4.18.0-553.37.1.el8_10, python3-perf 4.18.0-553.37.1.el8_10, +15 morefixed: vendor fix RHSA-2025:1068
-
Red Hat Enterprise Linux BaseOS (v. 9) bpftool 7.4.0-503.22.1.el9_5, kernel 5.14.0-503.22.1.el9_5, kernel-64k 5.14.0-503.22.1.el9_5, kernel-core 5.14.0-503.22.1.el9_5, kernel-tools 5.14.0-503.22.1.el9_5, python3-perf 5.14.0-503.22.1.el9_5, +29 morefixed: vendor fix RHSA-2025:0578
-
Red Hat Enterprise Linux BaseOS EUS (v.8.8) perf 4.18.0-477.93.1.el8_8, kernel 4.18.0-477.93.1.el8_8, bpftool 4.18.0-477.93.1.el8_8, kernel-core 4.18.0-477.93.1.el8_8, kernel-tools 4.18.0-477.93.1.el8_8, python3-perf 4.18.0-477.93.1.el8_8, +15 morefixed: vendor fix RHSA-2025:2525
show 9 moreshow fewer
-
Red Hat Enterprise Linux BaseOS EUS (v.9.4) bpftool 7.3.0-427.55.1.el9_4, kernel 5.14.0-427.55.1.el9_4, kernel-64k 5.14.0-427.55.1.el9_4, kernel-core 5.14.0-427.55.1.el9_4, kernel-tools 5.14.0-427.55.1.el9_4, python3-perf 5.14.0-427.55.1.el9_4, +28 morefixed: vendor fix RHSA-2025:1658
-
Red Hat Enterprise Linux CRB (v. 8) kernel-debuginfo-common-x86_64 4.18.0-553.37.1.el8_10, kernel-debuginfo-common-aarch64 4.18.0-553.37.1.el8_10, kernel-debuginfo-common-ppc64le 4.18.0-553.37.1.el8_10fixed: vendor fix RHSA-2025:1068
-
Red Hat Enterprise Linux NFV (v. 8) kernel-rt 4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-kvm 4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-core 4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-modules 4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-debug-kvm 4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-debug-core 4.18.0-553.37.1.rt7.378.el8_10, +4 morefixed: vendor fix RHSA-2025:1067
-
Red Hat Enterprise Linux Real Time (v. 9) kernel-rt 5.14.0-503.22.1.el9_5, kernel-rt-core 5.14.0-503.22.1.el9_5, kernel-rt-modules 5.14.0-503.22.1.el9_5, kernel-rt-debug-core 5.14.0-503.22.1.el9_5, kernel-rt-modules-core 5.14.0-503.22.1.el9_5, kernel-rt-debug-modules 5.14.0-503.22.1.el9_5, +4 morefixed: vendor fix RHSA-2025:0578
-
Red Hat Enterprise Linux Real Time EUS (v.9.4) kernel-rt 5.14.0-427.55.1.el9_4, kernel-rt-core 5.14.0-427.55.1.el9_4, kernel-rt-modules 5.14.0-427.55.1.el9_4, kernel-rt-debug-core 5.14.0-427.55.1.el9_4, kernel-rt-modules-core 5.14.0-427.55.1.el9_4, kernel-rt-debug-modules 5.14.0-427.55.1.el9_4, +4 morefixed: vendor fix RHSA-2025:1658
-
Red Hat Enterprise Linux Real Time for NFV (v. 9) kernel-rt 5.14.0-503.22.1.el9_5, kernel-rt-kvm 5.14.0-503.22.1.el9_5, kernel-rt-core 5.14.0-503.22.1.el9_5, kernel-rt-modules 5.14.0-503.22.1.el9_5, kernel-rt-debug-kvm 5.14.0-503.22.1.el9_5, kernel-rt-debug-core 5.14.0-503.22.1.el9_5, +6 morefixed: vendor fix RHSA-2025:0578
-
Red Hat Enterprise Linux Real Time for NFV EUS (v.9.4) kernel-rt 5.14.0-427.55.1.el9_4, kernel-rt-kvm 5.14.0-427.55.1.el9_4, kernel-rt-core 5.14.0-427.55.1.el9_4, kernel-rt-modules 5.14.0-427.55.1.el9_4, kernel-rt-debug-kvm 5.14.0-427.55.1.el9_4, kernel-rt-debug-core 5.14.0-427.55.1.el9_4, +6 morefixed: vendor fix RHSA-2025:1658
-
Red Hat Enterprise Linux RT (v. 8) kernel-rt 4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-core 4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-modules 4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-debug-core 4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-debug-modules 4.18.0-553.37.1.rt7.378.el8_10, kernel-rt-modules-extra 4.18.0-553.37.1.rt7.378.el8_10, +2 morefixed: vendor fix RHSA-2025:1067
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 24 d ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 15% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H |
| NVD | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/51d3d80a6dc314982a9a0aeb0961085922a1aa15
- git.kernel.org /stable/c/de529504b3274d57caf8f66800b714b0d3ee235a
-
git.kernel.org
/stable/c/51d11ea0250d6ee461987403bbfd4b2abb5613a7
patch
-
git.kernel.org
/stable/c/fa9ce027b3ce37a2bb173bf2553b5caa438fd8c9
patch
-
git.kernel.org
/stable/c/751ecf6afd6568adc98f2a6052315552c0483d18
patch
- lists.debian.org /debian-lts-announce/2025/03/msg00001.html
Sources
- CVE List CVE-2024-50275
- NVD CVE-2024-50275
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.