{"id":"CVE-2024-56774","aliases":["CVE-2024-56774"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: add a sanity check for btrfs root in btrfs_search_slot()","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: btrfs: añadir una comprobación de cordura para la raíz de btrfs en btrfs_search_slot() Syzbot informa de un null-ptr-deref en btrfs_search_slot(). El reproductor está usando rescue=ibadroots, y la raíz del árbol de extensiones está dañada, por lo que el árbol de extensiones es NULL. Cuando scrub intenta buscar en el árbol de extensiones para reunir la información de extensión necesaria, btrfs_search_slot() no comprueba si la raíz de destino es NULL o no, lo que da como resultado el null-ptr-deref. Añadir una comprobación de cordura para la raíz de btrfs antes de usarlo en btrfs_search_slot().","source":"nvd"}],"published":"2025-01-08T17:49:13.121Z","modified":"2026-06-17T08:12:57.657Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"42437a6386ffeaaf200731e73d723ea491f3fe7d","fixed":"c71d114ef68c95da5a82ec85a721ab31f5bd905b","status":"affected"},{"type":"git","introduced":"42437a6386ffeaaf200731e73d723ea491f3fe7d","fixed":"db66fb87c21e8ae724886e6a464dcbac562a64c6","status":"affected"},{"type":"git","introduced":"42437a6386ffeaaf200731e73d723ea491f3fe7d","fixed":"757171d1369b3b47f36932d40a05a0715496dcab","status":"affected"},{"type":"git","introduced":"42437a6386ffeaaf200731e73d723ea491f3fe7d","fixed":"93992c3d9629b02dccf6849238559d5c24f2dece","status":"affected"},{"type":"git","introduced":"42437a6386ffeaaf200731e73d723ea491f3fe7d","fixed":"3ed51857a50f530ac7a1482e069dfbd1298558d4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.15.174","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.120","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.64","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.4","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.11","fixed":"5.15.174"},{"status":"affected","introduced":"5.16","fixed":"6.1.120"},{"status":"affected","introduced":"6.2","fixed":"6.6.64"},{"status":"affected","introduced":"6.7","fixed":"6.12.4"},{"status":"affected","version":"6.13"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c71d114ef68c95da5a82ec85a721ab31f5bd905b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/db66fb87c21e8ae724886e6a464dcbac562a64c6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/757171d1369b3b47f36932d40a05a0715496dcab","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/93992c3d9629b02dccf6849238559d5c24f2dece","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3ed51857a50f530ac7a1482e069dfbd1298558d4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:56:45.422Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-56774","url":"https://www.cve.org/CVERecord?id=CVE-2024-56774","licence":"CVE Terms of Use","modified":"2026-05-11T20:58:48.797Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-56774","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56774","licence":"Public domain","modified":"2026-06-17T08:12:57.657Z"}],"updatedAt":"2026-11-25T22:58:50.819Z","epss":{"score":0.00209,"percentile":0.11651,"date":"2026-12-01T12:00:22.000Z"}}