{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-56774","id":"CVE-2024-56774","title":"btrfs: add a sanity check for btrfs root in btrfs_search_slot()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: add a sanity check for btrfs root in btrfs_search_slot()\n\nSyzbot reports a null-ptr-deref in btrfs_search_slot().\n\nThe reproducer is using rescue=ibadroots, and the extent tree root is\ncorrupted thus the extent tree is NULL.\n\nWhen scrub tries to search the extent tree to gather the needed extent\ninfo, btrfs_search_slot() d","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: add a sanity check for btrfs root in btrfs_search_slot()\n\nSyzbot reports a null-ptr-deref in btrfs_search_slot().\n\nThe reproducer is using rescue=ibadroots, and the extent tree root is\ncorrupted thus the extent tree is NULL.\n\nWhen scrub tries to search the extent tree to gather the needed extent\ninfo, btrfs_search_slot() doesn't check if the target root is NULL or\nnot, resulting the null-ptr-deref.\n\nAdd sanity check for btrfs root before using it in btrfs_search_slot().","published":"2025-01-08T17:49:13.121Z","updated":"2026-10-28T02:30:34.717824634Z","reserved":"2024-12-29T11:26:39.766Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"42437a6386ffeaaf200731e73d723ea491f3fe7d","lessThan":"c71d114ef68c95da5a82ec85a721ab31f5bd905b","status":"affected","versionType":"git"},{"version":"42437a6386ffeaaf200731e73d723ea491f3fe7d","lessThan":"db66fb87c21e8ae724886e6a464dcbac562a64c6","status":"affected","versionType":"git"},{"version":"42437a6386ffeaaf200731e73d723ea491f3fe7d","lessThan":"757171d1369b3b47f36932d40a05a0715496dcab","status":"affected","versionType":"git"},{"version":"42437a6386ffeaaf200731e73d723ea491f3fe7d","lessThan":"93992c3d9629b02dccf6849238559d5c24f2dece","status":"affected","versionType":"git"},{"version":"42437a6386ffeaaf200731e73d723ea491f3fe7d","lessThan":"3ed51857a50f530ac7a1482e069dfbd1298558d4","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","lessThan":"5.11","status":"unaffected","versionType":"semver"},{"version":"5.15.174","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.120","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.64","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.4","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/c71d114ef68c95da5a82ec85a721ab31f5bd905b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/db66fb87c21e8ae724886e6a464dcbac562a64c6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/757171d1369b3b47f36932d40a05a0715496dcab","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/93992c3d9629b02dccf6849238559d5c24f2dece","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3ed51857a50f530ac7a1482e069dfbd1298558d4","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56774.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56774","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00209,"epssPercentile":0.11125,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-56774","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56774","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-56774","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-56774","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}