{"id":"CVE-2025-40080","aliases":["CVE-2025-40080"],"related":[],"kind":"vulnerability","state":"published","title":"nbd: restrict sockets to TCP and UDP","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnbd: restringir sockets a TCP y UDP\n\nRecientemente, syzbot comenzó a abusar de NBD con todo tipo de sockets.\n\nEl commit cf1b2326b734 ('nbd: verificar que el socket sea compatible durante la configuración') se aseguró de que el socket soportara un método shutdown().\n\nAceptar explícitamente sockets de flujo TCP y UNIX.","source":"nvd"}],"published":"2025-10-28T11:48:44.796Z","modified":"2026-11-10T13:17:54.467Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"cf1b2326b734896734c6e167e41766f9cee7686a","fixed":"c365e8f20f4201d873a70385bd919f0fb531e960","status":"affected"},{"type":"git","introduced":"cf1b2326b734896734c6e167e41766f9cee7686a","fixed":"4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7","status":"affected"},{"type":"git","introduced":"cf1b2326b734896734c6e167e41766f9cee7686a","fixed":"37ad11f20e164c23ce827dd455b42c0fdd29685c","status":"affected"},{"type":"git","introduced":"cf1b2326b734896734c6e167e41766f9cee7686a","fixed":"808e2335bc1cf2293b9e36ccc94c267c81509c71","status":"affected"},{"type":"git","introduced":"cf1b2326b734896734c6e167e41766f9cee7686a","fixed":"9f7c02e031570e8291a63162c6c046dc15ff85b0","status":"affected"},{"type":"git","version":"4df728651b8a99693c69962d8e5a5b9e5a3bbcc7","status":"affected"},{"type":"git","version":"083322455c67d278c56a66b73f1221f004ee600a","status":"affected"},{"type":"git","version":"4fa1cbd587ef967812f9d9f6ce46ec1dead7502c","status":"affected"},{"type":"semver","introduced":"4.14.152","fixed":"4.15","status":"affected"},{"type":"semver","introduced":"4.19.82","fixed":"4.20","status":"affected"},{"type":"semver","introduced":"5.3.9","fixed":"5.4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.4","status":"unaffected"},{"type":"semver","introduced":"6.1.156","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.112","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.53","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.3","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c365e8f20f4201d873a70385bd919f0fb531e960","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/37ad11f20e164c23ce827dd455b42c0fdd29685c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/808e2335bc1cf2293b9e36ccc94c267c81509c71","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f7c02e031570e8291a63162c6c046dc15ff85b0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40080","url":"https://www.cve.org/CVERecord?id=CVE-2025-40080","licence":"CVE Terms of Use","modified":"2026-11-10T12:37:35.128Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40080","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40080","licence":"Public domain","modified":"2026-11-10T13:17:54.467Z"}],"updatedAt":"2026-11-25T22:59:06.948Z","epss":{"score":0.00214,"percentile":0.12527,"date":"2026-12-01T12:00:22.000Z"}}