CVE-2024-56774

Severity CVSS v4.0:
Pending analysis
Type:
CWE-476 NULL Pointer Dereference
Publication date:
08/01/2025
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> btrfs: add a sanity check for btrfs root in btrfs_search_slot()<br /> <br /> Syzbot reports a null-ptr-deref in btrfs_search_slot().<br /> <br /> The reproducer is using rescue=ibadroots, and the extent tree root is<br /> corrupted thus the extent tree is NULL.<br /> <br /> When scrub tries to search the extent tree to gather the needed extent<br /> info, btrfs_search_slot() doesn&amp;#39;t check if the target root is NULL or<br /> not, resulting the null-ptr-deref.<br /> <br /> Add sanity check for btrfs root before using it in btrfs_search_slot().

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.174 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.120 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.64 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.12.4 (excluding)
cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*