CVE-2024-48881

Source
https://cve.org/CVERecord?id=CVE-2024-48881
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-48881.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-48881
Downstream
Related
Published
2025-01-11T12:25:18.614Z
Modified
2026-03-11T07:51:15.174150Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
bcache: revert replacing IS_ERR_OR_NULL with IS_ERR again
Details

In the Linux kernel, the following vulnerability has been resolved:

bcache: revert replacing ISERRORNULL with ISERR again

Commit 028ddcac477b ("bcache: Remove unnecessary NULL point check in node allocations") leads a NULL pointer deference in cachesetflush().

1721 if (!ISERRORNULL(c->root)) 1722 listadd(&c->root->list, &c->btree_cache);

From the above code in cachesetflush(), if previous registration code fails before allocating c->root, it is possible c->root is NULL as what it is initialized. _bchbtreenodealloc() never returns NULL but c->root is possible to be NULL at above line 1721.

This patch replaces ISERR() by ISERRORNULL() to fix this.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/48xxx/CVE-2024-48881.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0729029e647234fa1a94376b6edffec5c2cd75f6
Fixed
4379c5828492a4c2a651c8f826a01453bd2b80b0
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
db9439cef0b5efccf8021fe89f4953e0f901e85b
Fixed
336e30f32ae7c043fde0f6fa21586ff30bea9fe2
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
991e9c186a8ac6ab272a86e0ddc6f9733c38b867
Fixed
fb5fee35bdd18316a84b5f30881a24e1415e1464
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
68118c339c6e1e16ae017bef160dbe28a27ae9c8
Fixed
5202391970ffbf81975251b3526b890ba027b715
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
028ddcac477b691dd9205c92f991cc15259d033e
Fixed
cc05aa2c0117e20fa25a3c0d915f98b8f2e78667
Fixed
5e0e913624bcd24f3de414475018d3023f060ee1
Fixed
b2e382ae12a63560fca35050498e19e760adf8c0
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
fe75e8a0c20127a8dc95704f1a7ad6b82c9a0ef8
Last affected
0cabf9e164660e8d66c4810396046383a1110a69

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-48881.json"