Linux kernel nbd use-after-free via reconnect after disconnect
CVE-2025-21731High
The Linux kernel nbd (network block device) subsystem allows a use-after-free vulnerability when a disconnect operation is followed by a reconfigure operation. An attacker with the ability to issue nbd netlink commands can trigger this by disconnecting an nbd device and then immediately attempting to reconfigure it, causing the kernel to queue work on a freed configuration object. This results in a use-after-free when the queued work eventually executes and attempts to access the freed nbd_config structure.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Detail
Affected versions
- linux linux kernel: from 4.12, before 5.4.291
- linux linux kernel: from 5.5, before 5.10.235
- linux linux kernel: from 5.11, before 5.15.179
- linux linux kernel: from 5.16, before 6.1.129
- linux linux kernel: from 6.2, before 6.6.76
- linux linux kernel: from 6.7, before 6.12.13
- linux linux kernel: from 6.13, before 6.13.2
Reports naming this CVE2 in total
· All CISA Advisories
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP (opens in a new tab)· All CISA Advisories
Siemens SIMATIC S7-1500 TM MFP (opens in a new tab)