CVE record · CVE-2025-21731

nbd: don't allow reconnect after disconnect

CVSS 7.8 HighEPSS 0.0024 · 15th percentile

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
VendorProductVersions
Linux 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
Linux 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
Identifiers
CVE-2025-21731
CNA
Linux
Weakness (CWE)
CWE-416
Published
27 Feb 2025
Updated
10 Nov 2026

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

ScoreRatingCVSSVectorSource
7.8 High 3.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 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

  1. 27 Feb 2025, 02:07 UTC Confirmed by the CVE List
  2. 27 Feb 2025, 02:15 UTC Confirmed by NVD

Sources

References from the CNA

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.