# CVE-2023-53681: bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-10-07T15:21:35.315Z
- Modified: 2026-10-28T20:10:00.163Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent

In some specific situations, the return value of __bch_btree_node_alloc
may be NULL. This may lead to a potential NULL pointer dereference in
caller function like a calling chain :
btree_split->bch_btree_node_alloc->__bch_btree_node_alloc.

Fix it by initializing the return value in __bch_btree_node_alloc.

(As written by CVE List.)

## Affected

- Linux Linux: from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 before 587b4e8bb5dac682f09280ab35db4632b29d5ac4; from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 before b070f29a61436f6f8a2e3abc7ea4f4be81695198; from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 before a4405f6ee03323410d7b10966fd67b35f71b1944; from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 before f67b0e3081f2a24170280a33ac66f6b112083c03; from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 before 7ecea5ce3dc17339c280c75b58ac93d8c8620d9f; from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 before 4514847aee18d9391a0cf3aad75d3567c72795a4; from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 before 80fca8a10b604afad6c14213fdfd816c4eda3ee4; 3.10 (not affected: before 3.10; from 4.19.291 up to 4.19.*; from 5.4.253 up to 5.4.*; from 5.10.188 up to 5.10.*; from 5.15.121 up to 5.15.*; from 6.1.39 up to 6.1.*; from 6.4.4 up to 6.4.*; from 6.5 up to *)
- linux linux_kernel: from 3.10 before 4.19.291; from 4.20 before 5.4.253; from 5.5 before 5.10.188; from 5.11 before 5.15.121; from 5.16 before 6.1.39; from 6.2 before 6.4.4

## References

- <https://git.kernel.org/stable/c/587b4e8bb5dac682f09280ab35db4632b29d5ac4> (patch)
- <https://git.kernel.org/stable/c/b070f29a61436f6f8a2e3abc7ea4f4be81695198> (patch)
- <https://git.kernel.org/stable/c/a4405f6ee03323410d7b10966fd67b35f71b1944> (patch)
- <https://git.kernel.org/stable/c/f67b0e3081f2a24170280a33ac66f6b112083c03> (patch)
- <https://git.kernel.org/stable/c/7ecea5ce3dc17339c280c75b58ac93d8c8620d9f> (patch)
- <https://git.kernel.org/stable/c/4514847aee18d9391a0cf3aad75d3567c72795a4> (patch)
- <https://git.kernel.org/stable/c/80fca8a10b604afad6c14213fdfd816c4eda3ee4> (patch)

## Sources

- CVE List: [CVE-2023-53681](https://www.cve.org/CVERecord?id=CVE-2023-53681), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53681](https://nvd.nist.gov/vuln/detail/CVE-2023-53681), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2023-53681 · Whole record: https://cve.day/CVE-2023-53681.json · Rebuilt by cve.day 2026-11-25T22:58:35.003Z
