Bug 2281815 (CVE-2024-35940)

Summary: CVE-2024-35940 kernel: pstore/zone: Add a null pointer check to the psz_kmsg_read
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 5.10.215, kernel 5.15.155, kernel 6.1.86, kernel 6.6.27, kernel 6.8.6, kernel 6.9 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the Linux kernel's `pstore/zone` subsystem, specifically in the `psz_kmsg_read` function. The issue occurs because `kasprintf()` can return a NULL pointer if memory allocation fails, but there was no check for this in the affected code.
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: 2281816    
Bug Blocks: 2282024    

Description Robb Gatica 2024-05-20 15:28:45 UTC
In the Linux kernel, the following vulnerability has been resolved:

pstore/zone: Add a null pointer check to the psz_kmsg_read

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

Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024051919-CVE-2024-35940-5c73@gregkh/T

Comment 1 Robb Gatica 2024-05-20 15:29:21 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2281816]

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