bcachefs: Fix sb_field_downgrade validation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Original description
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
From the CVE record · Linux
References
- git.kernel.org/stable/c/bf920ed92ef24dcd6970c88881cd4700b3acf05bPatch
- git.kernel.org/stable/c/692aa7a54b2b28d59f24b3bf8250837805484b99Patch
- github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41086.json
- nvd.nist.gov/vuln/detail/CVE-2024-41086
- git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git