CVE-2024-26603

Source
https://cve.org/CVERecord?id=CVE-2024-26603
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-26603.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-26603
Downstream
Related
Published
2024-02-24T14:56:57.628Z
Modified
2026-03-13T07:51:54.800078Z
Summary
x86/fpu: Stop relying on userspace for info to fault in xsave buffer
Details

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 fxsw->xstatesize. fxsw->xstatesize can be changed from user-space, so it is possible construct a sigreturn frame where:

  • fxsw->xstatesize 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 faultinreadable succeeds because buf + fxsw->xstatesize 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 ]

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26603.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
fcb3635f5018e53024c6be3c3213737f469f74ff
Fixed
8bd3eee7720c14b59a206bd05b98d7586bccf99a
Fixed
627339cccdc9166792ecf96bc3c9f711a60ce996
Fixed
b2479ab426cef7ab79a13005650eff956223ced2
Fixed
627e28cbb65564e55008315d9e02fbb90478beda
Fixed
d877550eaf2dc9090d782864c96939397a3c6835

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-26603.json"