Bug 2281151 (CVE-2024-35797)

Summary: CVE-2024-35797 kernel: mm: cachestat: fix two shmem bugs
Product: [Other] Security Response Reporter: Zack Miele <zmiele>
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 6.6.24, kernel 6.7.12, kernel 6.8.3, kernel 6.9 Doc Type: If docs needed, set a value
Doc Text:
CVE-2024-35797 is a vulnerability in the Linux kernel’s memory management, specifically affecting the cachestat feature when handling shared memory. The flaw stems from race conditions during operations like swapping or invalidation, which can lead to out-of-bounds memory access or invalid pointer dereferencing. These issues can result in crashes or system instability. The kernel has been patched to improve checks and handling of swap entries to ensure stable and safe operation.
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: 2281152    
Bug Blocks: 2281793    

Description Zack Miele 2024-05-17 22:44:11 UTC
In the Linux kernel, the following vulnerability has been resolved:

mm: cachestat: fix two shmem bugs

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

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024051737-CVE-2024-35797-06f6@gregkh/T

Comment 2 Zack Miele 2024-05-17 22:44:55 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2281152]

Comment 4 Alex 2024-06-09 15:34:07 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2024-35797 is: CHECK	Maybe valid. Check manually. with impact MODERATE (that is approximation based on flags WRITE OOB LOCK DANGER RACE  ; these flags parsed automatically based on patche 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.

Comment 9 errata-xmlrpc 2024-09-11 00:57:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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