CVE-2025-40080
nbd: restrict sockets to TCP and UDP
Check your servers for CVE-2025-40080
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40080 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.5% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from cf1b2326b734896734c6e167e41766f9cee7686a, before c365e8f20f4201d873a70385bd919f0fb531e960 affected from cf1b2326b734896734c6e167e41766f9cee7686a, before 4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7 affected from cf1b2326b734896734c6e167e41766f9cee7686a, before 37ad11f20e164c23ce827dd455b42c0fdd29685c affected from cf1b2326b734896734c6e167e41766f9cee7686a, before 808e2335bc1cf2293b9e36ccc94c267c81509c71 affected from cf1b2326b734896734c6e167e41766f9cee7686a, before 9f7c02e031570e8291a63162c6c046dc15ff85b0 affected 4df728651b8a99693c69962d8e5a5b9e5a3bbcc7 affected 083322455c67d278c56a66b73f1221f004ee600a affected 4fa1cbd587ef967812f9d9f6ce46ec1dead7502c affected from 4.14.152, before 4.15 affected from 4.19.82, before 4.20 affected from 5.3.9, before 5.4
Other versions: unaffected
|
| Linux |
affected 5.4 unaffected before 5.4 unaffected from 6.1.156 up to and including 6.1.* unaffected from 6.6.112 up to and including 6.6.* unaffected from 6.12.53 up to and including 6.12.* unaffected from 6.17.3 up to and including 6.17.* unaffected 6.18 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40080 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40080
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-40080
trivy image --scanners vuln IMAGE | grep CVE-2025-40080
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/c365e8f20f4201d873a70385bd919f0fb531e960 git.kernel.org
- https://git.kernel.org/stable/c/4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7 git.kernel.org
- https://git.kernel.org/stable/c/37ad11f20e164c23ce827dd455b42c0fdd29685c git.kernel.org
- https://git.kernel.org/stable/c/808e2335bc1cf2293b9e36ccc94c267c81509c71 git.kernel.org
- https://git.kernel.org/stable/c/9f7c02e031570e8291a63162c6c046dc15ff85b0 git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html cert-portal.siemens.com
Source: the record CVE-2025-40080 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse