CVE-2024-48881
bcache: revert replacing IS_ERR_OR_NULL with IS_ERR again
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
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.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2025-01-09 CVE Reserved
- 2025-01-11 CVE Published
- 2025-01-11 CVE Updated
- ---------- EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
CAPEC
References (14)
URL | Tag | Source |
---|---|---|
https://git.kernel.org/stable/c/0729029e647234fa1a94376b6edffec5c2cd75f6 | Vuln. Introduced | |
https://git.kernel.org/stable/c/db9439cef0b5efccf8021fe89f4953e0f901e85b | Vuln. Introduced | |
https://git.kernel.org/stable/c/991e9c186a8ac6ab272a86e0ddc6f9733c38b867 | Vuln. Introduced | |
https://git.kernel.org/stable/c/68118c339c6e1e16ae017bef160dbe28a27ae9c8 | Vuln. Introduced | |
https://git.kernel.org/stable/c/028ddcac477b691dd9205c92f991cc15259d033e | Vuln. Introduced | |
https://git.kernel.org/stable/c/fe75e8a0c20127a8dc95704f1a7ad6b82c9a0ef8 | Vuln. Introduced | |
https://git.kernel.org/stable/c/0cabf9e164660e8d66c4810396046383a1110a69 | Vuln. Introduced |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 5.4.251 < 5.4.287 Search vendor "Linux" for product "Linux Kernel" and version " >= 5.4.251 < 5.4.287" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 5.10.188 < 5.10.231 Search vendor "Linux" for product "Linux Kernel" and version " >= 5.10.188 < 5.10.231" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 5.15.121 < 5.15.174 Search vendor "Linux" for product "Linux Kernel" and version " >= 5.15.121 < 5.15.174" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 6.1.39 < 6.1.120 Search vendor "Linux" for product "Linux Kernel" and version " >= 6.1.39 < 6.1.120" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 6.5 < 6.6.66 Search vendor "Linux" for product "Linux Kernel" and version " >= 6.5 < 6.6.66" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 6.5 < 6.12.5 Search vendor "Linux" for product "Linux Kernel" and version " >= 6.5 < 6.12.5" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | >= 6.5 < 6.13-rc2 Search vendor "Linux" for product "Linux Kernel" and version " >= 6.5 < 6.13-rc2" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | 4.19.291 Search vendor "Linux" for product "Linux Kernel" and version "4.19.291" | en |
Affected
| ||||||
Linux Search vendor "Linux" | Linux Kernel Search vendor "Linux" for product "Linux Kernel" | 6.4.4 Search vendor "Linux" for product "Linux Kernel" and version "6.4.4" | en |
Affected
|