CVE-2024-26603

x86/fpu: Stop relying on userspace for info to fault in xsave buffer

No CVSS score yet EPSS 0.28%

Published 24 Feb 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-26603

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-26603 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

x86/fpu: Stop relying on userspace for info to fault in xsave buffer

Before this change, the expected size of the user space buffer was taken from fx_sw->xstate_size. fx_sw->xstate_size can be changed from user-space, so it is possible construct a sigreturn frame where:

* fx_sw->xstate_size is smaller than the size required by valid bits in fx_sw->xfeatures. * user-space unmaps parts of the sigrame fpu buffer so that not all of the buffer required by xrstor is accessible.

In this case, xrstor tries to restore and accesses the unmapped area which results in a fault. But fault_in_readable succeeds because buf + fx_sw->xstate_size is within the still mapped area, so it goes back and tries xrstor again. It will spin in this loop forever.

Instead, fault in the maximum size which can be touched by XRSTOR (taken from fpstate->user_size).

[ dhansen: tweak subject / changelog ]

Exploitation

EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 21.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Mar 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from fcb3635f5018e53024c6be3c3213737f469f74ff, before 8bd3eee7720c14b59a206bd05b98d7586bccf99a
affected from fcb3635f5018e53024c6be3c3213737f469f74ff, before 627339cccdc9166792ecf96bc3c9f711a60ce996
affected from fcb3635f5018e53024c6be3c3213737f469f74ff, before b2479ab426cef7ab79a13005650eff956223ced2
affected from fcb3635f5018e53024c6be3c3213737f469f74ff, before 627e28cbb65564e55008315d9e02fbb90478beda
affected from fcb3635f5018e53024c6be3c3213737f469f74ff, before d877550eaf2dc9090d782864c96939397a3c6835
Other versions: unaffected
Linux
affected 5.14
unaffected before 5.14
unaffected from 5.15.150 up to and including 5.15.*
unaffected from 6.1.79 up to and including 6.1.*
unaffected from 6.6.18 up to and including 6.6.*
unaffected from 6.7.6 up to and including 6.7.*
unaffected 6.8 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-26603 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-26603

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-26603
trivy image --scanners vuln IMAGE | grep CVE-2024-26603

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-26603 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.