CVE-2025-40259
scsi: sg: Do not sleep in atomic context
Check your servers for CVE-2025-40259
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-40259 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:
scsi: sg: Do not sleep in atomic context
sg_finish_rem_req() calls blk_rq_unmap_user(). The latter function may sleep. Hence, call sg_finish_rem_req() with interrupts enabled instead of disabled.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 16 Jun 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 97d27b0dd015e980ade63fda111fd1353276e28b, before 11eeee00c94d770d4e45364060b5f1526dfe567b affected from 97d27b0dd015e980ade63fda111fd1353276e28b, before db6ac8703ab2b473e1ec845f57f6dd961a388d9f affected from 97d27b0dd015e980ade63fda111fd1353276e28b, before 109afbd88ecc46b6cc7551367222387e97999765 affected from 97d27b0dd015e980ade63fda111fd1353276e28b, before 3dfd520c3b4ffe69e0630c580717d40447ab842f affected from 97d27b0dd015e980ade63fda111fd1353276e28b, before b343cee5df7e750d9033fba33e96fc4399fa88a5 affected from 97d27b0dd015e980ade63fda111fd1353276e28b, before b2c0340cfa25c5c1f65e8590cc1a2dc97d14ef0f affected from 97d27b0dd015e980ade63fda111fd1353276e28b, before 6983d8375c040bb449d2187f4a57a20de01244fe affected from 97d27b0dd015e980ade63fda111fd1353276e28b, before 90449f2d1e1f020835cba5417234636937dd657e affected 8d1f3b474a89b42f957ba3bae959dd3cd16531ca affected fa55ef3f803fc7c20be0ab809e6278c31febd875 affected 6af37613289cfd32516ada47e444b48a638829c8 affected 4a8e8e0af9a520a685e0ab2d489327d5220d7ce2 affected ae9b6ae2e77947534e255903627cc62746ea77e2 affected from 3.16.85, before 3.17 affected from 3.18.101, before 3.19 affected from 4.1.52, before 4.2 affected from 4.4.123, before 4.5 affected from 4.9.89, before 4.10
Other versions: unaffected
|
| Linux |
affected 4.12 unaffected before 4.12 unaffected from 5.4.302 up to and including 5.4.* unaffected from 5.10.247 up to and including 5.10.* unaffected from 5.15.197 up to and including 5.15.* unaffected from 6.1.159 up to and including 6.1.* unaffected from 6.6.118 up to and including 6.6.* unaffected from 6.12.60 up to and including 6.12.* unaffected from 6.17.10 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-40259 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40259
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-40259
trivy image --scanners vuln IMAGE | grep CVE-2025-40259
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/11eeee00c94d770d4e45364060b5f1526dfe567b git.kernel.org
- https://git.kernel.org/stable/c/db6ac8703ab2b473e1ec845f57f6dd961a388d9f git.kernel.org
- https://git.kernel.org/stable/c/109afbd88ecc46b6cc7551367222387e97999765 git.kernel.org
- https://git.kernel.org/stable/c/3dfd520c3b4ffe69e0630c580717d40447ab842f git.kernel.org
- https://git.kernel.org/stable/c/b343cee5df7e750d9033fba33e96fc4399fa88a5 git.kernel.org
- https://git.kernel.org/stable/c/b2c0340cfa25c5c1f65e8590cc1a2dc97d14ef0f git.kernel.org
- https://git.kernel.org/stable/c/6983d8375c040bb449d2187f4a57a20de01244fe git.kernel.org
- https://git.kernel.org/stable/c/90449f2d1e1f020835cba5417234636937dd657e git.kernel.org
Source: the record CVE-2025-40259 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse