# bcache: fix cached_dev.sb_bio use-after-free and crash

CVE record · `CVE-2026-31580`

- **Identifiers:** `CVE-2026-31580`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 24 Apr 2026
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 24 Apr 2026, 14:42 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to before 81f44ed8c3f54abb7561ece774ea4cca5070b2f2` (git)
  - affected: `cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to before f50e7c325ab1207fe941555bcff659f6d7050572` (git)
  - affected: `cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to before 9467d360be70e6ee55b0c1cd2a1f1424f57b5b85` (git)
  - affected: `cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to before 47fa09fe7f3e09df28a51cb2cbd8f5d2f7f6edc1` (git)
  - affected: `cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to before add4982510f3b7c318a2dd7438bdc9c63171e753` (git)
  - affected: `cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to before 2d6965581e164fa2ba3f7652ddae5535f6336576` (git)
  - affected: `cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to before 4f71c8ba2dc009042493021d94a9718fbe2ebf27` (git)
  - affected: `cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to before 383f7fec0de8cee1cf7ae1f9d9f14044a61f10f9` (git)
  - affected: `cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to before fec114a98b8735ee89c75216c45a78e28be0f128` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `3.10`
  - unaffected: `before 3.10` (semver)
  - unaffected: `5.10.258 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.209 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.175 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.136 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.83 to 6.12.*, inclusive` (semver)
  - unaffected: `6.18.24 to 6.18.*, inclusive` (semver)
  - unaffected: `6.19.14 to 6.19.*, inclusive` (semver)
  - unaffected: `7.0.1 to 7.0.*, inclusive` (semver)
  - unaffected: `7.1 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel bcache component is affected from version 3.10 until fixed. A use-after-free occurs when a cached device is stopped during a superblock write, which can cause crashes. The source gives few details on what an attacker would need. Upgrade to 5.10.258, 5.15.209, 6.1.175, or 6.6.136, or to a later release in those series.

Written 17 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0013, the 2nd percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 24 Apr 2026, 14:42 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2026-31580)
- 24 Apr 2026, 15:16 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-31580)

## Sources

- [CVE List: CVE-2026-31580](https://www.cve.org/CVERecord?id=CVE-2026-31580)
- [NVD: CVE-2026-31580](https://nvd.nist.gov/vuln/detail/CVE-2026-31580)

### References from the CNA

- <https://git.kernel.org/stable/c/81f44ed8c3f54abb7561ece774ea4cca5070b2f2>
- <https://git.kernel.org/stable/c/f50e7c325ab1207fe941555bcff659f6d7050572>
- <https://git.kernel.org/stable/c/9467d360be70e6ee55b0c1cd2a1f1424f57b5b85>
- <https://git.kernel.org/stable/c/47fa09fe7f3e09df28a51cb2cbd8f5d2f7f6edc1>
- <https://git.kernel.org/stable/c/add4982510f3b7c318a2dd7438bdc9c63171e753>
- <https://git.kernel.org/stable/c/2d6965581e164fa2ba3f7652ddae5535f6336576>
- <https://git.kernel.org/stable/c/4f71c8ba2dc009042493021d94a9718fbe2ebf27>
- <https://git.kernel.org/stable/c/383f7fec0de8cee1cf7ae1f9d9f14044a61f10f9>
- <https://git.kernel.org/stable/c/fec114a98b8735ee89c75216c45a78e28be0f128>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2026-31580>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2026-31580/>. Everything for agents: <https://agentprime.io/llms.txt>.
