CVE-2025-40080
nbd: restrict sockets to TCP and UDP
Mitigation
- No fix listed yet: follow the vendor advisory.
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
Vulnerability facts
- Affected
- 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
- Fixed in
- Linux 4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7, Linux 37ad11f20e164c23ce827dd455b42c0fdd29685c, Linux 808e2335bc1cf2293b9e36ccc94c267c81509c71, Linux 9f7c02e031570e8291a63162c6c046dc15ff85b0, Linux 4.15, Linux 4.20
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| 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 |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Other
- 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
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.