CVE-2024-48881 - CVE House
Back to Database
Status published Unknown CVE-2024-48881

bcache: revert replacing IS_ERR_OR_NULL with IS_ERR again

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

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2024-48881

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

Linux
Vulnerable Versions:
0729029e647234fa1a94376b6edffec5c2cd75f6, db9439cef0b5efccf8021fe89f4953e0f901e85b, 991e9c186a8ac6ab272a86e0ddc6f9733c38b867, 68118c339c6e1e16ae017bef160dbe28a27ae9c8, 028ddcac477b691dd9205c92f991cc15259d033e, fe75e8a0c20127a8dc95704f1a7ad6b82c9a0ef8, 0cabf9e164660e8d66c4810396046383a1110a69, 5.4.251, 5.10.188, 5.15.121, 6.1.39, 4.19.291, 6.4.4, 6.5, 0, 5.4.287, 5.10.231, 5.15.174, 6.1.120, 6.6.66, 6.12.5, 6.13

Timeline

Official Publish: January 11th, 2025
Last Modified: May 23rd, 2026
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.