CVE-2024-56774

Source
https://nvd.nist.gov/vuln/detail/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-08T18:15:18Z
Modified
2025-10-01T20:17:52Z
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
[none]
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().

References

Affected packages