CVE-2024-48881

Source
https://nvd.nist.gov/vuln/detail/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-11T13:15:23Z
Modified
2025-10-01T20:17:16Z
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
[none]
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.

References

Affected packages