Vulnerabilities · 2024 · Linux
CVE-2024-56774
Linux Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: btrfs: add a sanity check for btrfs root in btrfs_search_slot() Syzbot reports a null-ptr-deref in btrfs_search_slot(). 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, btrfs_search_slot() 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 btrfs_search_slot().
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/3ed51857a50f530ac7a1482e069dfbd1298558d4 · Patch
- git.kernel.org/stable/c/757171d1369b3b47f36932d40a05a0715496dcab · Patch
- git.kernel.org/stable/c/93992c3d9629b02dccf6849238559d5c24f2dece · Patch
- git.kernel.org/stable/c/c71d114ef68c95da5a82ec85a721ab31f5bd905b · Patch
- git.kernel.org/stable/c/db66fb87c21e8ae724886e6a464dcbac562a64c6 · Patch
- lists.debian.org/debian-lts-announce/2025/03/msg00001.html
- nvd.nist.gov/vuln/detail/CVE-2024-56774
- cve.org/CVERecord?id=CVE-2024-56774
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.