{"id":"CVE-2024-48881","title":"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 …","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 …","severity":"medium","cvss":5.5,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-476"],"vendor":"linux","product":"linux_kernel","affected":["linux_kernel >= 4.19.291, < 4.20","linux_kernel >= 5.4.251, < 5.4.287","linux_kernel >= 5.10.188, < 5.10.231","linux_kernel >= 5.15.121, < 5.15.174","linux_kernel >= 6.1.39, < 6.1.120","linux_kernel >= 6.4.4, < 6.6.66","linux_kernel >= 6.7, < 6.12.5","linux_kernel = 6.13"],"patched":["linux_kernel 6.12.5"],"published":"2025-01-11","updated":"2026-10-15","sourceUpdated":"2026-10-15T01:18:58.480","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-48881","references":[{"url":"https://git.kernel.org/stable/c/336e30f32ae7c043fde0f6fa21586ff30bea9fe2","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/4379c5828492a4c2a651c8f826a01453bd2b80b0","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5202391970ffbf81975251b3526b890ba027b715","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/5e0e913624bcd24f3de414475018d3023f060ee1","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/b2e382ae12a63560fca35050498e19e760adf8c0","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/cc05aa2c0117e20fa25a3c0d915f98b8f2e78667","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/fb5fee35bdd18316a84b5f30881a24e1415e1464","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"}],"tags":["nvd","cve.org"],"epss":0.00261,"epssPercentile":0.17699,"ingestedAt":"2026-10-15T03:30:12.777Z","ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:55:37.185480Z"},"slug":"CVE-2024-48881","body":"## Overview\n\nIn 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.\n\n## Affected\n\n- `linux_kernel >= 4.19.291, < 4.20`\n- `linux_kernel >= 5.4.251, < 5.4.287`\n- `linux_kernel >= 5.10.188, < 5.10.231`\n- `linux_kernel >= 5.15.121, < 5.15.174`\n- `linux_kernel >= 6.1.39, < 6.1.120`\n- `linux_kernel >= 6.4.4, < 6.6.66`\n- `linux_kernel >= 6.7, < 6.12.5`\n- `linux_kernel = 6.13`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `linux_kernel 6.12.5`","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":30.3,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}