[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025102820-CVE-2025-40080-bda1@gregkh>
Date: Tue, 28 Oct 2025 12:48:57 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-40080: nbd: restrict sockets to TCP and UDP
From: Greg Kroah-Hartman <gregkh@...nel.org>
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.
The Linux kernel CVE team has assigned CVE-2025-40080 to this issue.
Affected and fixed versions
===========================
	Issue introduced in 5.4 with commit cf1b2326b734896734c6e167e41766f9cee7686a and fixed in 6.1.156 with commit c365e8f20f4201d873a70385bd919f0fb531e960
	Issue introduced in 5.4 with commit cf1b2326b734896734c6e167e41766f9cee7686a and fixed in 6.6.112 with commit 4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7
	Issue introduced in 5.4 with commit cf1b2326b734896734c6e167e41766f9cee7686a and fixed in 6.12.53 with commit 37ad11f20e164c23ce827dd455b42c0fdd29685c
	Issue introduced in 5.4 with commit cf1b2326b734896734c6e167e41766f9cee7686a and fixed in 6.17.3 with commit 808e2335bc1cf2293b9e36ccc94c267c81509c71
	Issue introduced in 5.4 with commit cf1b2326b734896734c6e167e41766f9cee7686a and fixed in 6.18-rc1 with commit 9f7c02e031570e8291a63162c6c046dc15ff85b0
	Issue introduced in 4.14.152 with commit 4df728651b8a99693c69962d8e5a5b9e5a3bbcc7
	Issue introduced in 4.19.82 with commit 083322455c67d278c56a66b73f1221f004ee600a
	Issue introduced in 5.3.9 with commit 4fa1cbd587ef967812f9d9f6ce46ec1dead7502c
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2025-40080
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
	drivers/block/nbd.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	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
Powered by blists - more mailing lists
 
