Bug 2300482 (CVE-2024-41086)

Summary: CVE-2024-41086 kernel: bcachefs: Fix sb_field_downgrade validation
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.9.8, kernel 6.10 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the bcachefs module in the Linux kernel. In some conditions, an out-of-bounds read of 2 bytes can be triggered due to an incomplete validation of malformed input, resulting in a denial of service.
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: 2301668    
Bug Blocks:    

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

bcachefs: Fix sb_field_downgrade validation

- bch2_sb_downgrade_validate() wasn't checking for a downgrade entry
  extending past the end of the superblock section

- for_each_downgrade_entry() is used in to_text() and needs to work on
  malformed input; it also was missing a check for a field extending
  past the end of the section

Comment 1 Mauro Matteo Cascella 2024-07-30 15:16:28 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072951-CVE-2024-41086-0dba@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 15:16:48 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301668]