CVE-2025-40080

published 28 Oct 2025 · updated 17 Nov 2026

nbd: restrict sockets to TCP and UDP

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c365e8f20f4201d873a70385bd919f0fb531e960, Kernel 4.15, Kernel 4.20 and 9 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=cf1b2326b734896734c6e167e41766f9cee7686a <c365e8f20f4201d873a70385bd919f0fb531e960, >=4.14.152 <4.15, >=4.19.82 <4.20, >=5.3.9 <5.4, >=cf1b2326b734896734c6e167e41766f9cee7686a <37ad11f20e164c23ce827dd455b42c0fdd29685c, >=cf1b2326b734896734c6e167e41766f9cee7686a <4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7, >=cf1b2326b734896734c6e167e41766f9cee7686a <808e2335bc1cf2293b9e36ccc94c267c81509c71, >=cf1b2326b734896734c6e167e41766f9cee7686a <9f7c02e031570e8291a63162c6c046dc15ff85b0, =083322455c67d278c56a66b73f1221f004ee600a, =4df728651b8a99693c69962d8e5a5b9e5a3bbcc7, =4fa1cbd587ef967812f9d9f6ce46ec1dead7502c, =5.4c365e8f20f4201d873a70385bd919f0fb531e960, 4.15, 4.20, 5.4, 37ad11f20e164c23ce827dd455b42c0fdd29685c, 4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7, 808e2335bc1cf2293b9e36ccc94c267c81509c71, 9f7c02e031570e8291a63162c6c046dc15ff85b0
linux-kernel: Kernel>=4.19.82 <4.20, >=5.3.9 <5.4, >=5.4.0 <6.1.156, >=6.13.0 <6.17.3, >=6.2.0 <6.6.112, >=6.7.0 <6.12.53, >=4.14.152 <4.154.20, 5.4, 6.1.156, 6.17.3, 6.6.112, 6.12.53, 4.15

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40080 severity on Zeptric[![CVE-2025-40080](https://zeptric.io/badge/cve/CVE-2025-40080.svg)](https://zeptric.io/cve/CVE-2025-40080)