{"id":"CVE-2024-48881","aliases":["CVE-2024-48881"],"related":[],"kind":"vulnerability","state":"published","title":"bcache: revert replacing IS_ERR_OR_NULL with IS_ERR again","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbcache: revert replacing IS_ERR_OR_NULL with IS_ERR again\n\nCommit 028ddcac477b (\"bcache: Remove unnecessary NULL point check in\nnode allocations\") leads a NULL pointer deference in cache_set_flush().\n\n1721         if (!IS_ERR_OR_NULL(c->root))\n1722                 list_add(&c->root->list, &c->btree_cache);\n\n>From the above code in cache_set_flush(), if previous registration code\nfails before allocating c->root, it is possible c->root is NULL as what\nit is initialized. __bch_btree_node_alloc() never returns NULL but\nc->root is possible to be NULL at above line 1721.\n\nThis patch replaces IS_ERR() by IS_ERR_OR_NULL() to fix this.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbcache: revert replacing IS_ERR_OR_NULL with IS_ERR again\n\nCommit 028ddcac477b (\"bcache: Remove unnecessary NULL point check in\nnode allocations\") leads a NULL pointer deference in cache_set_flush().\n\n1721         if (!IS_ERR_OR_NULL(c->root))\n1722                 list_add(&c->root->list, &c->btree_cache);\n\n>From the above code in cache_set_flush(), if previous registration code\nfails before allocating c->root, it is possible c->root is NULL as what\nit is initialized. __bch_btree_node_alloc() never returns NULL but\nc->root is possible to be NULL at above line 1721.\n\nThis patch replaces IS_ERR() by IS_ERR_OR_NULL() to fix this.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bcache: revertir el reemplazo de IS_ERR_OR_NULL con IS_ERR nuevamente. El commit 028ddcac477b (\"bcache: eliminar la comprobación innecesaria del punto NULL en las asignaciones de nodos\") conduce a una deferencia de puntero NULL en cache_set_flush(). 1721 if (!IS_ERR_OR_NULL(c-&gt;root)) 1722 list_add(&amp;c-&gt;root-&gt;list, &amp;c-&gt;btree_cache); &gt;Del código anterior en cache_set_flush(), si el código de registro anterior falla antes de asignar c-&gt;root, es posible que c-&gt;root sea NULL como lo que se inicializa. __bch_btree_node_alloc() nunca devuelve NULL, pero es posible que c-&gt;root sea NULL en la línea 1721 anterior. Este parche reemplaza IS_ERR() por IS_ERR_OR_NULL() para solucionar esto.","source":"nvd"}],"published":"2025-01-11T12:25:18.614Z","modified":"2026-10-15T01:18:58.480Z","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":"0729029e647234fa1a94376b6edffec5c2cd75f6","fixed":"4379c5828492a4c2a651c8f826a01453bd2b80b0","status":"affected"},{"type":"git","introduced":"db9439cef0b5efccf8021fe89f4953e0f901e85b","fixed":"336e30f32ae7c043fde0f6fa21586ff30bea9fe2","status":"affected"},{"type":"git","introduced":"991e9c186a8ac6ab272a86e0ddc6f9733c38b867","fixed":"fb5fee35bdd18316a84b5f30881a24e1415e1464","status":"affected"},{"type":"git","introduced":"68118c339c6e1e16ae017bef160dbe28a27ae9c8","fixed":"5202391970ffbf81975251b3526b890ba027b715","status":"affected"},{"type":"git","introduced":"028ddcac477b691dd9205c92f991cc15259d033e","fixed":"cc05aa2c0117e20fa25a3c0d915f98b8f2e78667","status":"affected"},{"type":"git","introduced":"028ddcac477b691dd9205c92f991cc15259d033e","fixed":"5e0e913624bcd24f3de414475018d3023f060ee1","status":"affected"},{"type":"git","introduced":"028ddcac477b691dd9205c92f991cc15259d033e","fixed":"b2e382ae12a63560fca35050498e19e760adf8c0","status":"affected"},{"type":"git","version":"fe75e8a0c20127a8dc95704f1a7ad6b82c9a0ef8","status":"affected"},{"type":"git","version":"0cabf9e164660e8d66c4810396046383a1110a69","status":"affected"},{"type":"semver","introduced":"5.4.251","fixed":"5.4.287","status":"affected"},{"type":"semver","introduced":"5.10.188","fixed":"5.10.231","status":"affected"},{"type":"semver","introduced":"5.15.121","fixed":"5.15.174","status":"affected"},{"type":"semver","introduced":"6.1.39","fixed":"6.1.120","status":"affected"},{"type":"semver","introduced":"4.19.291","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"6.4.4","fixed":"6.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.5","status":"unaffected"},{"type":"semver","introduced":"5.4.287","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.231","lastAffected":"5.10.*","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.66","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.5","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":"4.19.291","fixed":"4.20"},{"status":"affected","introduced":"5.4.251","fixed":"5.4.287"},{"status":"affected","introduced":"5.10.188","fixed":"5.10.231"},{"status":"affected","introduced":"5.15.121","fixed":"5.15.174"},{"status":"affected","introduced":"6.1.39","fixed":"6.1.120"},{"status":"affected","introduced":"6.4.4","fixed":"6.6.66"},{"status":"affected","introduced":"6.7","fixed":"6.12.5"},{"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/4379c5828492a4c2a651c8f826a01453bd2b80b0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/336e30f32ae7c043fde0f6fa21586ff30bea9fe2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fb5fee35bdd18316a84b5f30881a24e1415e1464","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5202391970ffbf81975251b3526b890ba027b715","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc05aa2c0117e20fa25a3c0d915f98b8f2e78667","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5e0e913624bcd24f3de414475018d3023f060ee1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2e382ae12a63560fca35050498e19e760adf8c0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:55:37.185Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-48881","url":"https://www.cve.org/CVERecord?id=CVE-2024-48881","licence":"CVE Terms of Use","modified":"2026-10-15T00:53:14.555Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-48881","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-48881","licence":"Public domain","modified":"2026-10-15T01:18:58.480Z"}],"updatedAt":"2026-11-25T22:58:50.919Z","epss":{"score":0.00261,"percentile":0.19003,"date":"2026-12-01T12:00:22.000Z"}}