CVE-2024-48881
bcache: revert replacing IS_ERR_OR_NULL with IS_ERR again
Check your servers for CVE-2024-48881
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-48881 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
bcache: revert replacing IS_ERR_OR_NULL with IS_ERR again
Commit 028ddcac477b ("bcache: Remove unnecessary NULL point check in node allocations") leads a NULL pointer deference in cache_set_flush().
1721 if (!IS_ERR_OR_NULL(c->root)) 1722 list_add(&c->root->list, &c->btree_cache);
>From the above code in cache_set_flush(), if previous registration code fails before allocating c->root, it is possible c->root is NULL as what it is initialized. __bch_btree_node_alloc() never returns NULL but c->root is possible to be NULL at above line 1721.
This patch replaces IS_ERR() by IS_ERR_OR_NULL() to fix this.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 19.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Oct 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-476 NULL Pointer Dereference
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 0729029e647234fa1a94376b6edffec5c2cd75f6, before 4379c5828492a4c2a651c8f826a01453bd2b80b0 affected from db9439cef0b5efccf8021fe89f4953e0f901e85b, before 336e30f32ae7c043fde0f6fa21586ff30bea9fe2 affected from 991e9c186a8ac6ab272a86e0ddc6f9733c38b867, before fb5fee35bdd18316a84b5f30881a24e1415e1464 affected from 68118c339c6e1e16ae017bef160dbe28a27ae9c8, before 5202391970ffbf81975251b3526b890ba027b715 affected from 028ddcac477b691dd9205c92f991cc15259d033e, before cc05aa2c0117e20fa25a3c0d915f98b8f2e78667 affected from 028ddcac477b691dd9205c92f991cc15259d033e, before 5e0e913624bcd24f3de414475018d3023f060ee1 affected from 028ddcac477b691dd9205c92f991cc15259d033e, before b2e382ae12a63560fca35050498e19e760adf8c0 affected fe75e8a0c20127a8dc95704f1a7ad6b82c9a0ef8 affected 0cabf9e164660e8d66c4810396046383a1110a69 affected from 5.4.251, before 5.4.287 affected from 5.10.188, before 5.10.231 affected from 5.15.121, before 5.15.174 affected from 6.1.39, before 6.1.120 affected from 4.19.291, before 4.20 affected from 6.4.4, before 6.5
Other versions: unaffected
|
| Linux |
affected 6.5 unaffected before 6.5 unaffected from 5.4.287 up to and including 5.4.* unaffected from 5.10.231 up to and including 5.10.* unaffected from 5.15.174 up to and including 5.15.* unaffected from 6.1.120 up to and including 6.1.* unaffected from 6.6.66 up to and including 6.6.* unaffected from 6.12.5 up to and including 6.12.* unaffected 6.13 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-48881 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-48881
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-48881
trivy image --scanners vuln IMAGE | grep CVE-2024-48881
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/4379c5828492a4c2a651c8f826a01453bd2b80b0 git.kernel.org
- https://git.kernel.org/stable/c/336e30f32ae7c043fde0f6fa21586ff30bea9fe2 git.kernel.org
- https://git.kernel.org/stable/c/fb5fee35bdd18316a84b5f30881a24e1415e1464 git.kernel.org
- https://git.kernel.org/stable/c/5202391970ffbf81975251b3526b890ba027b715 git.kernel.org
- https://git.kernel.org/stable/c/cc05aa2c0117e20fa25a3c0d915f98b8f2e78667 git.kernel.org
- https://git.kernel.org/stable/c/5e0e913624bcd24f3de414475018d3023f060ee1 git.kernel.org
- https://git.kernel.org/stable/c/b2e382ae12a63560fca35050498e19e760adf8c0 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html cert-portal.siemens.com
Source: the record CVE-2024-48881 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse