Bug 2300384 (CVE-2024-41026)

Summary: CVE-2024-41026 kernel: mmc: davinci_mmc: Prevent transmitted data size from exceeding sgm's length
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 6.9.10, kernel 6.10 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the `davinci_mmc` driver in the Linux kernel, which lacks validation for the size of transmitted data, leading to potential kernel panics if the data size exceeded the scatter-gather list (`sg_miter`) length. This issue was addressed by adding a check to limit the transmitted data to the `sgm->length`, preventing buffer overflows and enhancing system stability.
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: 2301514    
Bug Blocks:    

Description OSIDB Bzimport 2024-07-29 15:21:21 UTC
In the Linux kernel, the following vulnerability has been resolved:

mmc: davinci_mmc: Prevent transmitted data size from exceeding sgm's length

No check is done on the size of the data to be transmiited. This causes
a kernel panic when this size exceeds the sg_miter's length.

Limit the number of transmitted bytes to sgm->length.

Comment 1 Mauro Matteo Cascella 2024-07-30 08:39:08 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072920-CVE-2024-41026-8de7@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 08:39:28 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301514]