# CVE-2023-53681: bcache: Fix \_\_bch\_btree\_node\_alloc to make the failure behavior consistent

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-10-07T15:21:35.315Z
- **Modified:** 2026-10-28T20:10:00.163Z

## Who should check

- Anyone running Linux \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 587b4e8bb5dac682f09280ab35db4632b29d5ac4; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< b070f29a61436f6f8a2e3abc7ea4f4be81695198; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< a4405f6ee03323410d7b10966fd67b35f71b1944; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< f67b0e3081f2a24170280a33ac66f6b112083c03; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 7ecea5ce3dc17339c280c75b58ac93d8c8620d9f; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 4514847aee18d9391a0cf3aad75d3567c72795a4; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 80fca8a10b604afad6c14213fdfd816c4eda3ee4
- Anyone running Linux 3.10

## 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.

## Affected and fixed versions

- Linux: \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 587b4e8bb5dac682f09280ab35db4632b29d5ac4; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< b070f29a61436f6f8a2e3abc7ea4f4be81695198; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< a4405f6ee03323410d7b10966fd67b35f71b1944; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< f67b0e3081f2a24170280a33ac66f6b112083c03; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 7ecea5ce3dc17339c280c75b58ac93d8c8620d9f; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 4514847aee18d9391a0cf3aad75d3567c72795a4; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 80fca8a10b604afad6c14213fdfd816c4eda3ee4 (cvelist)
- Linux: 3.10 (cvelist)

## Mitigation

- Upgrade Linux to 80fca8a10b604afad6c14213fdfd816c4eda3ee4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53681. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53681.md
Affected: Linux >= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < 587b4e8bb5dac682f09280ab35db4632b29d5ac4; >= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < b070f29a61436f6f8a2e3abc7ea4f4be81695198; >= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, < a4405f6ee03323410d7b10966fd67b35f71b1944; >= cafe563591446cf80bfbc2f…
Fixed in: Linux 587b4e8bb5dac682f09280ab35db4632b29d5ac4, Linux 7ecea5ce3dc17339c280c75b58ac93d8c8620d9f, Linux 4514847aee18d9391a0cf3aad75d3567c72795a4, Linux 80fca8a10b604afad6c14213fdfd816c4eda3ee4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53681 being exploited?

There is no confirmed exploitation: CVE-2023-53681 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53681?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53681?

Linux \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 587b4e8bb5dac682f09280ab35db4632b29d5ac4; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< b070f29a61436f6f8a2e3abc7ea4f4be81695198; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< a4405f6ee03323410d7b10966fd67b35f71b1944; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< f67b0e3081f2a24170280a33ac66f6b112083c03; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 7ecea5ce3dc17339c280c75b58ac93d8c8620d9f; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 4514847aee18d9391a0cf3aad75d3567c72795a4; \>= cafe563591446cf80bfbc2fe3bc72a2e36cf1060, \< 80fca8a10b604afad6c14213fdfd816c4eda3ee4; Linux 3.10.

### Is there a fix for CVE-2023-53681?

Yes. Fixed in Linux 587b4e8bb5dac682f09280ab35db4632b29d5ac4, Linux 7ecea5ce3dc17339c280c75b58ac93d8c8620d9f, Linux 4514847aee18d9391a0cf3aad75d3567c72795a4, Linux 80fca8a10b604afad6c14213fdfd816c4eda3ee4. Upgrade Linux to 80fca8a10b604afad6c14213fdfd816c4eda3ee4 or later.

### How do I check if I'm affected by CVE-2023-53681?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53681>

HTML: <https://flawdb.com/CVE-2023-53681> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53681>
