Bug 2271796 (CVE-2024-26649)

Summary: CVE-2024-26649 kernel: null pointer when load rlc firmware
Product: [Other] Security Response Reporter: Rohit Keshri <rkeshri>
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, jforbes, 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.15, kernel 6.7.3, kernel 6.8 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in the drm/amdgpu driver of Linux Kernel, causing null pointer dereference when attempting to load RLC (Run-Length Coding) firmware. This issue arises if the firmware has an incorrect header size, causing premature release of the firmware pointer in amdgpu_ucode_request(), subsequently attempts to use the nullified pointer result in errors.
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: 2271802    
Bug Blocks: 2271799, 2271782    

Description Rohit Keshri 2024-03-27 11:41:46 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: Fix the null pointer when load rlc firmware

If the RLC firmware is invalid because of wrong header size,
the pointer to the rlc firmware is released in function
amdgpu_ucode_request. There will be a null pointer error
in subsequent use. So skip validation to fix it.

https://git.kernel.org/stable/c/8b5bacce2d13dbe648f0bfd3f738ecce8db4978c
https://git.kernel.org/stable/c/bc03c02cc1991a066b23e69bbcc0f66e8f1f7453
https://git.kernel.org/stable/c/d3887448486caeef9687fb5dfebd4ff91e0f25aa

Comment 1 Rohit Keshri 2024-03-27 11:55:02 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2271802]

Comment 4 Justin M. Forbes 2024-03-27 20:21:48 UTC
This was fixed for Fedora with the 6.7.3 stable kernel updates.

Comment 5 Alex 2024-06-09 13:02:10 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2024-26649 is: 	SKIP	The Fixes patch not applied yet, so unlikely that actual: 3da9b71563cbb7281875adab1d7c4132679da987	YES			NO	YES	unknown (where first YES/NO value means if related sources built).

Comment 7 errata-xmlrpc 2024-09-24 00:38:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 8 errata-xmlrpc 2024-09-24 02:29:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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