Bug 2309779 (CVE-2024-44948) - CVE-2024-44948 kernel: x86/mtrr: Check if fixed MTRRs exist before saving them
Summary: CVE-2024-44948 kernel: x86/mtrr: Check if fixed MTRRs exist before saving them
Keywords:
Status: NEW
Alias: CVE-2024-44948
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2309898
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-09-04 19:20 UTC by OSIDB Bzimport
Modified: 2024-09-04 21:15 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-09-04 19:20:31 UTC
In the Linux kernel, the following vulnerability has been resolved:

x86/mtrr: Check if fixed MTRRs exist before saving them

MTRRs have an obsolete fixed variant for fine grained caching control
of the 640K-1MB region that uses separate MSRs. This fixed variant has
a separate capability bit in the MTRR capability MSR.

So far all x86 CPUs which support MTRR have this separate bit set, so it
went unnoticed that mtrr_save_state() does not check the capability bit
before accessing the fixed MTRR MSRs.

Though on a CPU that does not support the fixed MTRR capability this
results in a #GP.  The #GP itself is harmless because the RDMSR fault is
handled gracefully, but results in a WARN_ON().

Add the missing capability check to prevent this.


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