Skip to main content
VulnerabilityPublished Updated

CVE-2025-21731: Linux kernel · nbd: don't allow reconnect after disconnect

Affects Linux kernelSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.8 High.

Data as of 10 Nov 2026, 14:02 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CISA-ADPCVSS 3.17.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Feb 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 10 Nov 2026.

What to do

AI-suggested

A fix is available that clears the NBD_RT_BOUND flag during the disconnect process to prevent reconnection and use-after-free. Users should apply the official Linux kernel patches that address this issue once released. Until patched, avoiding use of the nbd subsystem or restricting access to it may reduce risk.

Description

CVE-2025-21731 is a use-after-free vulnerability in the Linux kernel's Network Block Device (nbd) subsystem. The flaw occurs when a reconnect is allowed after a disconnect, leading to a reference counting error and subsequent use-after-free of nbd_config. This can result in high impact including confidentiality, integrity, and availability compromise. The issue is fixed by clearing a specific flag during disconnect to prevent reconnection attempts.

References

Community reviews

Loading reviews…