What’s Vulnerable › Vulnerabilities

CVE-2025-40080: nbd: restrict sockets to TCP and UDP

Description

In the Linux kernel, the following vulnerability has been resolved: nbd: restrict sockets to TCP and UDP Recently, syzbot started to abuse NBD with all kinds of sockets. Commit cf1b2326b734 ("nbd: verify socket is supported during setup") made sure the socket supported a shutdown() method. Explicitely accept TCP and UNIX stream sockets.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.15, 4.20, 5.4, 6.18. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-40080 or the next vulnerability affects your stack