{"id":"CVE-2024-48881","summary":"bcache: revert replacing IS_ERR_OR_NULL with IS_ERR again","details":"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-\u003eroot))\n1722                 list_add(&c-\u003eroot-\u003elist, &c-\u003ebtree_cache);\n\n\u003eFrom the above code in cache_set_flush(), if previous registration code\nfails before allocating c-\u003eroot, it is possible c-\u003eroot is NULL as what\nit is initialized. __bch_btree_node_alloc() never returns NULL but\nc-\u003eroot is possible to be NULL at above line 1721.\n\nThis patch replaces IS_ERR() by IS_ERR_OR_NULL() to fix this.","modified":"2026-03-20T12:39:16.917110Z","published":"2025-01-11T12:25:18.614Z","related":["MGASA-2025-0030","MGASA-2025-0032","SUSE-SU-2025:0289-1","SUSE-SU-2025:0428-1","SUSE-SU-2025:0499-1","SUSE-SU-2025:0557-1","SUSE-SU-2025:0565-1","SUSE-SU-2025:20165-1","SUSE-SU-2025:20166-1","SUSE-SU-2025:20248-1","SUSE-SU-2025:20249-1","USN-7379-2","USN-7380-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/48xxx/CVE-2024-48881.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/336e30f32ae7c043fde0f6fa21586ff30bea9fe2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4379c5828492a4c2a651c8f826a01453bd2b80b0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5202391970ffbf81975251b3526b890ba027b715"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5e0e913624bcd24f3de414475018d3023f060ee1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2e382ae12a63560fca35050498e19e760adf8c0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cc05aa2c0117e20fa25a3c0d915f98b8f2e78667"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fb5fee35bdd18316a84b5f30881a24e1415e1464"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/48xxx/CVE-2024-48881.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-48881"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0729029e647234fa1a94376b6edffec5c2cd75f6"},{"fixed":"4379c5828492a4c2a651c8f826a01453bd2b80b0"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"db9439cef0b5efccf8021fe89f4953e0f901e85b"},{"fixed":"336e30f32ae7c043fde0f6fa21586ff30bea9fe2"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"991e9c186a8ac6ab272a86e0ddc6f9733c38b867"},{"fixed":"fb5fee35bdd18316a84b5f30881a24e1415e1464"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"68118c339c6e1e16ae017bef160dbe28a27ae9c8"},{"fixed":"5202391970ffbf81975251b3526b890ba027b715"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"028ddcac477b691dd9205c92f991cc15259d033e"},{"fixed":"cc05aa2c0117e20fa25a3c0d915f98b8f2e78667"},{"fixed":"5e0e913624bcd24f3de414475018d3023f060ee1"},{"fixed":"b2e382ae12a63560fca35050498e19e760adf8c0"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"fe75e8a0c20127a8dc95704f1a7ad6b82c9a0ef8"},{"last_affected":"0cabf9e164660e8d66c4810396046383a1110a69"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-48881.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}