CVE-2025-68366: Use-after-free in Linux kernel NBD nbd_genl_connect
- Vendor
- Linux
CVE-2025-68366 is a use-after-free vulnerability in the Linux kernel Network Block Device (NBD) subsystem. In nbd_genl_connect(), the configuration mutex is released before the configuration reference count is incremented. Concurrent NBD_CMD_CONNECT and NBD_CLEAR_SOCK operations, combined with receive-worker completion and device opening and closing, can reduce config_refs to zero and free the configuration before the connect path finishes accessing it. The subsequent reference-count increment triggers a use-after-free warning. The fix defers releasing the configuration mutex to protect the configuration reference acquisition.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful triggering causes a kernel use-after-free and reference-count warning, potentially resulting in a kernel crash and local denial of service. SUSE assesses high availability impact with no confidentiality or integrity impact. Privilege escalation or arbitrary code execution has not been established for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Until the kernel is updated, restrict access to NBD device-management interfaces to trusted administrators and prevent untrusted workloads from manipulating NBD devices. Where NBD is unnecessary, disable or unload the NBD module and prevent it from being loaded. These measures reduce exposure but do not correct the reference-counting race.
Remediation
Patch, then assume compromise.
Install a vendor-supported kernel update containing the fix that defers configuration unlocking in nbd_genl_connect(), then reboot into the updated kernel. Fixed distribution builds include Debian bookworm linux 6.1.162-1; RHEL 8.10 kernel 4.18.0-553.132.1.el8_10; RHEL 9.4 kernel 5.14.0-427.127.1.el9_4; RHEL 9.6 kernel 5.14.0-570.119.1.el9_6; and RHEL 10.0 kernel 6.12.0-55.77.1.el10_0. Use the update appropriate to the installed distribution, kernel flavor, and support channel rather than comparing version numbers across distributions.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-68366 exploited in the wild?
- As of Nov 21, 2026, Mallory has no reports of CVE-2025-68366 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-68366?
- As of Nov 21, 2026, Mallory has found no public exploit for CVE-2025-68366.
- Is there a patch for CVE-2025-68366?
- Install a vendor-supported kernel update containing the fix that defers configuration unlocking in nbd_genl_connect(), then reboot into the updated kernel. Fixed distribution builds include Debian bookworm linux 6.1.162-1; RHEL 8.10 kernel 4.18.0-553.132.1.el8_10; RHEL 9.4 kernel 5.14.0-427.127.1.el9_4; RHEL 9.6 kernel 5.14.0-570.119.1.el9_6; and RHEL 10.0 kernel 6.12.0-55.77.1.el10_0.
- What products are affected by CVE-2025-68366?
- Linux Kernel.
- How severe is CVE-2025-68366?
- CVE-2025-68366 has an EPSS score of 0.29% (14th percentile) as of Nov 21, 2026.
Recent activity
23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.