Bug 2281706 (CVE-2024-35883)

Summary: CVE-2024-35883 kernel: spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe
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, dbohanno, debarbos, dfreiber, drow, dvlasenk, esandeen, ezulian, hkrzesin, jarod, jburrell, jfaracco, jlelli, joe.lawrence, jshortt, jstancek, jwyatt, ldoskova, lgoncalv, mleitner, mmilgram, mstowell, nmurray, ptalbert, rparrazo, rrobaina, rvrbovsk, scweaver, sidakwo, sukulkar, tglozar, vkumar, wcosta, williams, wmealing, ycote, ykopkova
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 6.6.26, kernel 6.8.5, kernel 6.9 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the Linux kernel's spi spi-pci1xxxx.c driver in the pci1xxxx_spi_probe() function. The issue occurred due to inadequate checks, which can lead to a NULL pointer dereference. This flaw is caused by a failed memory allocation in the devm_kzalloc() function, which is saved in spi_bus->spi_int[iter] and then used without checking, possibly leading to system instability.
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: 2281707, 2316035    
Bug Blocks: 2281751    

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

spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe

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

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024051945-CVE-2024-35883-471d@gregkh/T

Comment 1 ybuenos 2024-05-20 12:11:46 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2281707]

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