Bug 2281265 (CVE-2024-35848)

Summary: CVE-2024-35848 kernel: eeprom: at24: fix memory corruption race condition
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 5.10.217, kernel 5.15.159, kernel 6.1.91, kernel 6.6.31, kernel 6.8.9, kernel 6.9 Doc Type: If docs needed, set a value
Doc Text:
CVE-2024-35848 is a vulnerability in the Linux kernel's EEPROM driver (at24) that can lead to memory corruption. The issue arises when an EEPROM device is inaccessible: the system registers an nvmem device, the read operation fails, and the device is subsequently torn down. If another driver attempts to access the nvmem device after this teardown, it may reference invalid memory, causing potential system instability. The problem has been resolved by adjusting the failure handling to occur before the nvmem device is registered, preventing access to invalid memory. Users should update their Linux kernel to a version that includes this fix to ensure system reliability.
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: 2281266    
Bug Blocks: 2281767    

Description Zack Miele 2024-05-18 00:31:27 UTC
In the Linux kernel, the following vulnerability has been resolved:

eeprom: at24: fix memory corruption race condition

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

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024051738-CVE-2024-35848-fc2b@gregkh/T

Comment 1 Zack Miele 2024-05-18 00:32:03 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2281266]

Comment 3 Alex 2024-06-09 15:35:32 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2024-35848 is: CHECK	Maybe valid. Check manually. with impact MODERATE (that is approximation based on flags DANGER INIT SIMPLEFIX 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 8 errata-xmlrpc 2024-08-14 00:48:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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