Bug 2281720 (CVE-2024-35877)

Summary: CVE-2024-35877 kernel: x86/mm/pat: fix VM_PAT handling in COW mappings
Product: [Other] Security Response Reporter: ybuenos
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acaringi, allarkin, aquini, bhu, chwhite, cye, cyin, dbohanno, debarbos, dfreiber, drow, dvlasenk, esandeen, ezulian, hkrzesin, jarod, jburrell, jdenham, jfaracco, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, kcarcia, ldoskova, lgoncalv, lzampier, mleitner, mmilgram, mstowell, nmurray, ptalbert, rparrazo, rrobaina, rvrbovsk, rysulliv, scweaver, sidakwo, sukulkar, tglozar, tyberry, vkumar, wcosta, williams, wmealing, ycote, ykopkova, zhijwang
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 4.19.312, kernel 5.4.274, kernel 5.10.215, kernel 5.15.155, kernel 6.1.85, kernel 6.6.26, kernel 6.8.5, kernel 6.9 Doc Type: If docs needed, set a value
Doc Text:
CVE-2024-35877 pertains to a flaw in the Linux kernel's handling of Page Attribute Table (PAT) settings during Copy-On-Write (COW) operations. When a write operation triggers a COW event, the kernel may replace the original page table entries (PTEs) with anonymous folios. This replacement disrupts the kernel's ability to accurately retrieve the correct page frame number (PFN) and cache mode using the follow_phys() function. Consequently, this mismanagement can lead to memory leaks or system instability. During COW operations, the kernel's PAT handling may incorrectly replace PTEs, leading to failures in functions like untrack_pfn() and track_pfn_copy(). This mismanagement can result in improper memory tracking and potential leaks. Systems may experience memory leaks or instability due to the kernel's inability to correctly manage memory attributes during COW events.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2281721    
Bug Blocks: 2281792    

Description ybuenos 2024-05-20 12:23:25 UTC
In the Linux kernel, the following vulnerability has been resolved:

x86/mm/pat: fix VM_PAT handling in COW mappings

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

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024051943-CVE-2024-35877-39e6@gregkh/T

Comment 2 ybuenos 2024-05-20 12:24:20 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2281721]

Comment 4 Alex 2024-06-09 14:02:46 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2024-35877 is: 	SKIP	The Fixes patch not applied yet, so unlikely that actual: b1a86e15dc0304366f50ba1720834bc419c801b1	YES			NO	NO	unknown	 (where first YES/NO value means if related sources built).

Comment 126 errata-xmlrpc 2024-09-24 00:38:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 127 errata-xmlrpc 2024-09-24 02:30:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 128 errata-xmlrpc 2024-11-12 09:30:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 129 errata-xmlrpc 2025-05-14 00:34:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:7526 https://access.redhat.com/errata/RHSA-2025:7526