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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-10-28T11:48:44.796Z
- Modified: 2026-11-10T13:17:54.467Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from cf1b2326b734896734c6e167e41766f9cee7686a before c365e8f20f4201d873a70385bd919f0fb531e960; from cf1b2326b734896734c6e167e41766f9cee7686a before 4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7; from cf1b2326b734896734c6e167e41766f9cee7686a before 37ad11f20e164c23ce827dd455b42c0fdd29685c; from cf1b2326b734896734c6e167e41766f9cee7686a before 808e2335bc1cf2293b9e36ccc94c267c81509c71; from cf1b2326b734896734c6e167e41766f9cee7686a before 9f7c02e031570e8291a63162c6c046dc15ff85b0; 4df728651b8a99693c69962d8e5a5b9e5a3bbcc7; 083322455c67d278c56a66b73f1221f004ee600a; 4fa1cbd587ef967812f9d9f6ce46ec1dead7502c; from 4.14.152 before 4.15; from 4.19.82 before 4.20; from 5.3.9 before 5.4; 5.4 (not affected: before 5.4; from 6.1.156 up to 6.1.*; from 6.6.112 up to 6.6.*; from 6.12.53 up to 6.12.*; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/c365e8f20f4201d873a70385bd919f0fb531e960>
- <https://git.kernel.org/stable/c/4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7>
- <https://git.kernel.org/stable/c/37ad11f20e164c23ce827dd455b42c0fdd29685c>
- <https://git.kernel.org/stable/c/808e2335bc1cf2293b9e36ccc94c267c81509c71>
- <https://git.kernel.org/stable/c/9f7c02e031570e8291a63162c6c046dc15ff85b0>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2025-40080](https://www.cve.org/CVERecord?id=CVE-2025-40080), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2025-40080](https://nvd.nist.gov/vuln/detail/CVE-2025-40080), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2025-40080 · Whole record: https://cve.day/CVE-2025-40080.json · Rebuilt by cve.day 2026-11-25T22:59:06.948Z
