# CVE-2024-48881: bcache: revert replacing IS\_ERR\_OR\_NULL with IS\_ERR again

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2025-01-11T12:25:18.614Z
- **Modified:** 2026-10-15T01:18:58.480Z

## Who should check

- Anyone running Linux \>= 0729029e647234fa1a94376b6edffec5c2cd75f6, \< 4379c5828492a4c2a651c8f826a01453bd2b80b0; \>= db9439cef0b5efccf8021fe89f4953e0f901e85b, \< 336e30f32ae7c043fde0f6fa21586ff30bea9fe2; \>= 991e9c186a8ac6ab272a86e0ddc6f9733c38b867, \< fb5fee35bdd18316a84b5f30881a24e1415e1464; \>= 68118c339c6e1e16ae017bef160dbe28a27ae9c8, \< 5202391970ffbf81975251b3526b890ba027b715; \>= 028ddcac477b691dd9205c92f991cc15259d033e, \< cc05aa2c0117e20fa25a3c0d915f98b8f2e78667; \>= 028ddcac477b691dd9205c92f991cc15259d033e, \< 5e0e913624bcd24f3de414475018d3023f060ee1; \>= 028ddcac477b691dd9205c92f991cc15259d033e, \< b2e382ae12a63560fca35050498e19e760adf8c0; fe75e8a0c20127a8dc95704f1a7ad6b82c9a0ef8; 0cabf9e164660e8d66c4810396046383a1110a69; \>= 5.4.251, \< 5.4.287; …
- Anyone running Linux 6.5

## 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.

## Affected and fixed versions

- Linux: \>= 0729029e647234fa1a94376b6edffec5c2cd75f6, \< 4379c5828492a4c2a651c8f826a01453bd2b80b0; \>= db9439cef0b5efccf8021fe89f4953e0f901e85b, \< 336e30f32ae7c043fde0f6fa21586ff30bea9fe2; \>= 991e9c186a8ac6ab272a86e0ddc6f9733c38b867, \< fb5fee35bdd18316a84b5f30881a24e1415e1464; \>= 68118c339c6e1e16ae017bef160dbe28a27ae9c8, \< 5202391970ffbf81975251b3526b890ba027b715; \>= 028ddcac477b691dd9205c92f991cc15259d033e, \< cc05aa2c0117e20fa25a3c0d915f98b8f2e78667; \>= 028ddcac477b691dd9205c92f991cc15259d033e, \< 5e0e913624bcd24f3de414475018d3023f060ee1; \>= 028ddcac477b691dd9205c92f991cc15259d033e, \< b2e382ae12a63560fca35050498e19e760adf8c0; fe75e8a0c20127a8dc95704f1a7ad6b82c9a0ef8; 0cabf9e164660e8d66c4810396046383a1110a69; \>= 5.4.251, \< 5.4.287; … (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-48881. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-48881.md
Affected: Linux >= 0729029e647234fa1a94376b6edffec5c2cd75f6, < 4379c5828492a4c2a651c8f826a01453bd2b80b0; >= db9439cef0b5efccf8021fe89f4953e0f901e85b, < 336e30f32ae7c043fde0f6fa21586ff30bea9fe2; >= 991e9c186a8ac6ab272a86e0ddc6f9733c38b867, < fb5fee35bdd18316a84b5f30881a24e1415e1464; >= 68118c339c6e1e16ae017be…
Fixed in: Linux 4379c5828492a4c2a651c8f826a01453bd2b80b0, Linux 336e30f32ae7c043fde0f6fa21586ff30bea9fe2, Linux 5202391970ffbf81975251b3526b890ba027b715, Linux 5e0e913624bcd24f3de414475018d3023f060ee1, Linux 5.4.287

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-48881 being exploited?

There is no confirmed exploitation: CVE-2024-48881 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2024-48881?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-48881?

Linux \>= 0729029e647234fa1a94376b6edffec5c2cd75f6, \< 4379c5828492a4c2a651c8f826a01453bd2b80b0; \>= db9439cef0b5efccf8021fe89f4953e0f901e85b, \< 336e30f32ae7c043fde0f6fa21586ff30bea9fe2; \>= 991e9c186a8ac6ab272a86e0ddc6f9733c38b867, \< fb5fee35bdd18316a84b5f30881a24e1415e1464; \>= 68118c339c6e1e16ae017bef160dbe28a27ae9c8, \< 5202391970ffbf81975251b3526b890ba027b715; \>= 028ddcac477b691dd9205c92f991cc15259d033e, \< cc05aa2c0117e20fa25a3c0d915f98b8f2e78667; \>= 028ddcac477b691dd9205c92f991cc15259d033e, \< 5e0e913624bcd24f3de414475018d3023f060ee1; \>= 028ddcac477b691dd9205c92f991cc15259d033e, \< b2e382ae12a63560fca35050498e19e760adf8c0; fe75e8a0c20127a8dc95704f1a7ad6b82c9a0ef8; 0cabf9e164660e8d66c4810396046383a1110a69; \>= 5.4.251, \< 5.4.287; …; Linux 6.5.

### Is there a fix for CVE-2024-48881?

Yes. Fixed in Linux 4379c5828492a4c2a651c8f826a01453bd2b80b0, Linux 336e30f32ae7c043fde0f6fa21586ff30bea9fe2, Linux 5202391970ffbf81975251b3526b890ba027b715, Linux 5e0e913624bcd24f3de414475018d3023f060ee1, Linux 5.4.287. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-48881?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4379c5828492a4c2a651c8f826a01453bd2b80b0>
- patch: <https://git.kernel.org/stable/c/336e30f32ae7c043fde0f6fa21586ff30bea9fe2>
- patch: <https://git.kernel.org/stable/c/fb5fee35bdd18316a84b5f30881a24e1415e1464>
- patch: <https://git.kernel.org/stable/c/5202391970ffbf81975251b3526b890ba027b715>
- patch: <https://git.kernel.org/stable/c/cc05aa2c0117e20fa25a3c0d915f98b8f2e78667>
- patch: <https://git.kernel.org/stable/c/5e0e913624bcd24f3de414475018d3023f060ee1>
- patch: <https://git.kernel.org/stable/c/b2e382ae12a63560fca35050498e19e760adf8c0>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-48881>

HTML: <https://flawdb.com/CVE-2024-48881> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-48881>
