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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-10-28T11:48:44.796Z
- **Modified:** 2026-11-10T13:17:54.467Z

## Who should check

- Anyone running Linux \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< c365e8f20f4201d873a70385bd919f0fb531e960; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 37ad11f20e164c23ce827dd455b42c0fdd29685c; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 808e2335bc1cf2293b9e36ccc94c267c81509c71; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 9f7c02e031570e8291a63162c6c046dc15ff85b0; 4df728651b8a99693c69962d8e5a5b9e5a3bbcc7; 083322455c67d278c56a66b73f1221f004ee600a; 4fa1cbd587ef967812f9d9f6ce46ec1dead7502c; \>= 4.14.152, \< 4.15; \>= 4.19.82, \< 4.20; …
- Anyone running Linux 5.4

## 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 and fixed versions

- Linux: \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< c365e8f20f4201d873a70385bd919f0fb531e960; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 37ad11f20e164c23ce827dd455b42c0fdd29685c; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 808e2335bc1cf2293b9e36ccc94c267c81509c71; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 9f7c02e031570e8291a63162c6c046dc15ff85b0; 4df728651b8a99693c69962d8e5a5b9e5a3bbcc7; 083322455c67d278c56a66b73f1221f004ee600a; 4fa1cbd587ef967812f9d9f6ce46ec1dead7502c; \>= 4.14.152, \< 4.15; \>= 4.19.82, \< 4.20; … (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40080. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40080.md
Affected: Linux >= cf1b2326b734896734c6e167e41766f9cee7686a, < c365e8f20f4201d873a70385bd919f0fb531e960; >= cf1b2326b734896734c6e167e41766f9cee7686a, < 4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7; >= cf1b2326b734896734c6e167e41766f9cee7686a, < 37ad11f20e164c23ce827dd455b42c0fdd29685c; >= cf1b2326b734896734c6e16…
Fixed in: Linux 4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7, Linux 37ad11f20e164c23ce827dd455b42c0fdd29685c, Linux 808e2335bc1cf2293b9e36ccc94c267c81509c71, Linux 9f7c02e031570e8291a63162c6c046dc15ff85b0, Linux 4.15, Linux 4.20

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40080 being exploited?

There is no confirmed exploitation: CVE-2025-40080 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40080?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-40080?

Linux \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< c365e8f20f4201d873a70385bd919f0fb531e960; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 37ad11f20e164c23ce827dd455b42c0fdd29685c; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 808e2335bc1cf2293b9e36ccc94c267c81509c71; \>= cf1b2326b734896734c6e167e41766f9cee7686a, \< 9f7c02e031570e8291a63162c6c046dc15ff85b0; 4df728651b8a99693c69962d8e5a5b9e5a3bbcc7; 083322455c67d278c56a66b73f1221f004ee600a; 4fa1cbd587ef967812f9d9f6ce46ec1dead7502c; \>= 4.14.152, \< 4.15; \>= 4.19.82, \< 4.20; …; Linux 5.4.

### Is there a fix for CVE-2025-40080?

Yes. Fixed in Linux 4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7, Linux 37ad11f20e164c23ce827dd455b42c0fdd29685c, Linux 808e2335bc1cf2293b9e36ccc94c267c81509c71, Linux 9f7c02e031570e8291a63162c6c046dc15ff85b0, Linux 4.15, Linux 4.20. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-40080?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40080>

HTML: <https://flawdb.com/CVE-2025-40080> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40080>
