CVE-2024-56774

Source
https://cve.org/CVERecord?id=CVE-2024-56774
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56774.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-56774
Downstream
Related
Published
2025-01-08T17:49:13.121Z
Modified
2026-03-20T12:41:00.852197Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
btrfs: add a sanity check for btrfs root in btrfs_search_slot()
Details

In the Linux kernel, the following vulnerability has been resolved:

btrfs: add a sanity check for btrfs root in btrfssearchslot()

Syzbot reports a null-ptr-deref in btrfssearchslot().

The reproducer is using rescue=ibadroots, and the extent tree root is corrupted thus the extent tree is NULL.

When scrub tries to search the extent tree to gather the needed extent info, btrfssearchslot() doesn't check if the target root is NULL or not, resulting the null-ptr-deref.

Add sanity check for btrfs root before using it in btrfssearchslot().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56774.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
42437a6386ffeaaf200731e73d723ea491f3fe7d
Fixed
c71d114ef68c95da5a82ec85a721ab31f5bd905b
Fixed
db66fb87c21e8ae724886e6a464dcbac562a64c6
Fixed
757171d1369b3b47f36932d40a05a0715496dcab
Fixed
93992c3d9629b02dccf6849238559d5c24f2dece
Fixed
3ed51857a50f530ac7a1482e069dfbd1298558d4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56774.json"