Bug 2265833 (CVE-2024-26603) - CVE-2024-26603 kernel: x86/fpu: Stop relying on userspace for info to fault in xsave buffer that cause loop forever
Summary: CVE-2024-26603 kernel: x86/fpu: Stop relying on userspace for info to fault i...
Keywords:
Status: NEW
Alias: CVE-2024-26603
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2265834
Blocks: 2267044
TreeView+ depends on / blocked
 
Reported: 2024-02-24 17:40 UTC by Mauro Matteo Cascella
Modified: 2024-06-10 15:10 UTC (History)
50 users (show)

Fixed In Version: kernel 6.1.79, kernel 6.6.18, kernel 6.7.6, kernel 6.8-rc4
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel's x86/fpu module, which revolves around an issue with relying on user space for critical information regarding the xsave buffer. In the affected scenario, the expected size of the user space buffer is derived from user-controlled data, specifically, fx_sw->xstate_size. By manipulating this value, an attacker could construct a malicious sigreturn frame where the indicated size is smaller than required by valid bits in fx_sw->xfeatures. Furthermore, the attacker could unmap portions of the fpu buffer in the user space, rendering them inaccessible to xrstor. This manipulation leads to a situation where xrstor repeatedly attempts to restore and access an unmapped area, causing a fault. However, the fault_in_readable function erroneously succeeds because the accessed region, buf + fx_sw->xstate_size, remains within the mapped area. Consequently, the system enters a perpetual loop as xrstor continually retries the operation.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:3622 0 None None None 2024-06-05 09:02:22 UTC
Red Hat Product Errata RHBA-2024:3773 0 None None None 2024-06-10 15:10:51 UTC
Red Hat Product Errata RHSA-2024:3618 0 None None None 2024-06-05 00:30:31 UTC
Red Hat Product Errata RHSA-2024:3627 0 None None None 2024-06-05 10:01:19 UTC

Description Mauro Matteo Cascella 2024-02-24 17:40:33 UTC
In the Linux kernel, the following vulnerability has been resolved:

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

The Linux kernel CVE team has assigned CVE-2024-26603 to this issue.

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024022415-CVE-2024-26603-42c2@gregkh/T/#u

Comment 1 Mauro Matteo Cascella 2024-02-24 17:41:01 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2265834]

Comment 6 errata-xmlrpc 2024-06-05 00:30:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:3618 https://access.redhat.com/errata/RHSA-2024:3618

Comment 7 errata-xmlrpc 2024-06-05 10:01:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:3627 https://access.redhat.com/errata/RHSA-2024:3627

Comment 8 Alex 2024-06-09 17:03:34 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2024-26603 is: CHECK	Maybe valid. Check manually. with impact LOW (that is an approximation based on flags  ; these flags parsed automatically based on patch data). Such automatic check happens only for Low/Moderates (and only when not from reporter, but parsing already existing CVE). Highs always checked manually (I check it myself and then we check it again in Remediation team). In rare cases some of the Moderates could be increased to High later.


Note You need to log in before you can comment on or make changes to this bug.