Bug 2301463 (CVE-2024-42100)

Summary: CVE-2024-42100 kernel: clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 6.6.39, kernel 6.9.9, kernel 6.10 Doc Type: If docs needed, set a value
Doc Text:
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: 2301758    
Bug Blocks:    

Description OSIDB Bzimport 2024-07-30 08:20:40 UTC
In the Linux kernel, the following vulnerability has been resolved:

clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common

In order to set the rate range of a hw sunxi_ccu_probe calls
hw_to_ccu_common() assuming all entries in desc->ccu_clks are contained
in a ccu_common struct. This assumption is incorrect and, in
consequence, causes invalid pointer de-references.

Remove the faulty call. Instead, add one more loop that iterates over
the ccu_clks and sets the rate range, if required.

Comment 1 Mauro Matteo Cascella 2024-07-30 18:11:12 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024073018-CVE-2024-42100-bc58@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 18:11:32 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301758]