CVE-2024-48881 Details
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.
A NULL pointer dereference vulnerability has been identified in the Linux kernel's bcache implementation. This issue arises in the 'cache_set_flush()' function, where a check for NULL pointers was improperly handled. The vulnerability occurs because the 'c->root' pointer can be NULL if the registration process fails before the pointer is allocated. Although the '__bch_btree_node_alloc()' function is designed to prevent NULL returns, the initialization of 'c->root' leaves it vulnerable under certain conditions. The problem was introduced by a commit that removed necessary NULL checks in node allocations.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
| CWE-476 | NULL Pointer Dereference | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.19.291, < 4.20 >= 5.4.251, < 5.4.287 >= 5.10.188, < 5.10.231 >= 5.15.121, < 5.15.174 >= 6.1.39, < 6.1.120 >= 6.4.4, < 6.6.66 >= 6.7, < 6.12.5 6.13 rc1 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | CVE |
| Oct 15, 2026 | CVE Modified | siemens-SADP |
| Oct 15, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Jan 31, 2025 | Initial Analysis | [email protected] |
| Jan 11, 2025 | New CVE Received | kernel.org |