{"id":"CVE-2025-40080","summary":"nbd: restrict sockets to TCP and UDP","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnbd: restrict sockets to TCP and UDP\n\nRecently, syzbot started to abuse NBD with all kinds of sockets.\n\nCommit cf1b2326b734 (\"nbd: verify socket is supported during setup\")\nmade sure the socket supported a shutdown() method.\n\nExplicitely accept TCP and UNIX stream sockets.","modified":"2026-04-16T04:36:52.032575036Z","published":"2025-10-28T11:48:44.796Z","related":["SUSE-SU-2025:21040-1","SUSE-SU-2025:21052-1","SUSE-SU-2025:21056-1","SUSE-SU-2025:21064-1","SUSE-SU-2025:21080-1","SUSE-SU-2025:21147-1","SUSE-SU-2025:21180-1","SUSE-SU-2025:4128-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4140-1","SUSE-SU-2025:4301-1","SUSE-SU-2025:4393-1","SUSE-SU-2025:4516-1","openSUSE-SU-2025:15702-1","openSUSE-SU-2025:20091-1","openSUSE-SU-2026:10301-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40080.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/37ad11f20e164c23ce827dd455b42c0fdd29685c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/808e2335bc1cf2293b9e36ccc94c267c81509c71"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9f7c02e031570e8291a63162c6c046dc15ff85b0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c365e8f20f4201d873a70385bd919f0fb531e960"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40080.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40080"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"cf1b2326b734896734c6e167e41766f9cee7686a"},{"fixed":"c365e8f20f4201d873a70385bd919f0fb531e960"},{"fixed":"4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7"},{"fixed":"37ad11f20e164c23ce827dd455b42c0fdd29685c"},{"fixed":"808e2335bc1cf2293b9e36ccc94c267c81509c71"},{"fixed":"9f7c02e031570e8291a63162c6c046dc15ff85b0"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"4df728651b8a99693c69962d8e5a5b9e5a3bbcc7"},{"last_affected":"083322455c67d278c56a66b73f1221f004ee600a"},{"last_affected":"4fa1cbd587ef967812f9d9f6ce46ec1dead7502c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40080.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.4.0"},{"fixed":"6.1.156"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.53"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.3"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40080.json"}}],"schema_version":"1.7.5"}