Bug 2281882 (CVE-2024-35977)

Summary: CVE-2024-35977 kernel: platform/chrome: cros_ec_uart: properly fix race condition
Product: [Other] Security Response Reporter: Robb Gatica <rgatica>
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.28, kernel 6.8.7, kernel 6.9 Doc Type: If docs needed, set a value
Doc Text:
A race condition vulnerability was found in the Linux kernel's `cros_ec_uart` driver. This issue occurs because the `cros_ec_uart_probe()` function calls `devm_serdev_device_open()` before initializing the `serdev->ops` via `serdev_device_set_client_ops()`. This mismatch can cause a NULL pointer dereference when accessing `serdev->ops->receive_buf`, leading to a crash.
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: 2281883    
Bug Blocks: 2282028    

Description Robb Gatica 2024-05-20 16:22:19 UTC
In the Linux kernel, the following vulnerability has been resolved:

platform/chrome: cros_ec_uart: properly fix race condition

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

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024052025-CVE-2024-35977-5edd@gregkh/T

Comment 1 Robb Gatica 2024-05-20 16:22:57 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2281883]

Comment 2 Alex 2024-06-09 14:10:33 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2024-35977 is: 	SKIP	No affected files built, so skip this CVE	NO			-	-	unknown	 (where first YES/NO value means if related sources built).