# nbd: don't allow reconnect after disconnect

CVE record · `CVE-2025-21731`

- **Identifiers:** `CVE-2025-21731`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Weakness (CWE):** [CWE-416](https://cwe.mitre.org/data/definitions/416.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 27 Feb 2025
- **Updated:** 10 Nov 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 27 Feb 2025, 02:07 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: `b7aa3d39385dc2d95899f9e379623fef446a2acd to before e70a578487a47d7cf058904141e586684d1c3381` (git)
  - affected: `b7aa3d39385dc2d95899f9e379623fef446a2acd to before 6bef6222a3f6c7adb6396f77f25a3579d821b09a` (git)
  - affected: `b7aa3d39385dc2d95899f9e379623fef446a2acd to before e3be8862d73cac833e0fb7602636c19c6cb94b11` (git)
  - affected: `b7aa3d39385dc2d95899f9e379623fef446a2acd to before e7343fa33751cb07c1c56b666bf37cfca357130e` (git)
  - affected: `b7aa3d39385dc2d95899f9e379623fef446a2acd to before d208d2c52b652913b5eefc8ca434b0d6b757f68f` (git)
  - affected: `b7aa3d39385dc2d95899f9e379623fef446a2acd to before a8ee6ecde2b7bfb58c8a3afe8a9d2b848f580739` (git)
  - affected: `b7aa3d39385dc2d95899f9e379623fef446a2acd to before 9793bd5ae4bdbdb2dde401a3cab94a6bfd05e302` (git)
  - affected: `b7aa3d39385dc2d95899f9e379623fef446a2acd to before 844b8cdc681612ff24df62cdefddeab5772fadf1` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.12`
  - unaffected: `before 4.12` (semver)
  - unaffected: `5.4.291 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.235 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.179 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.129 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.76 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.13 to 6.12.*, inclusive` (semver)
  - unaffected: `6.13.2 to 6.13.*, inclusive` (semver)
  - unaffected: `6.14 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 nbd (Network Block Device) driver in the Linux kernel, from version 4.12 until fixed, can use freed memory when a reconnect follows a disconnect. The source does not state what access an attacker needs. Upgrade to 5.4.291, 5.10.235, 5.15.179, 6.1.129, or a later fixed kernel.

Written 19 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

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from ADP (CISA-ADP)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0024, the 15th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 27 Feb 2025, 02:07 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2025-21731)
- 27 Feb 2025, 02:15 UTC: [Confirmed by NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-21731)

## Sources

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

### References from the CNA

- <https://git.kernel.org/stable/c/e70a578487a47d7cf058904141e586684d1c3381>
- <https://git.kernel.org/stable/c/6bef6222a3f6c7adb6396f77f25a3579d821b09a>
- <https://git.kernel.org/stable/c/e3be8862d73cac833e0fb7602636c19c6cb94b11>
- <https://git.kernel.org/stable/c/e7343fa33751cb07c1c56b666bf37cfca357130e>
- <https://git.kernel.org/stable/c/d208d2c52b652913b5eefc8ca434b0d6b757f68f>
- <https://git.kernel.org/stable/c/a8ee6ecde2b7bfb58c8a3afe8a9d2b848f580739>
- <https://git.kernel.org/stable/c/9793bd5ae4bdbdb2dde401a3cab94a6bfd05e302>
- <https://git.kernel.org/stable/c/844b8cdc681612ff24df62cdefddeab5772fadf1>

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-2025-21731>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

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