# CVE-2025-40259: scsi: sg: Do not sleep in atomic context

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-12-04T16:08:19.904Z
- Modified: 2026-10-19T21:10:00.160Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 97d27b0dd015e980ade63fda111fd1353276e28b before 11eeee00c94d770d4e45364060b5f1526dfe567b; from 97d27b0dd015e980ade63fda111fd1353276e28b before db6ac8703ab2b473e1ec845f57f6dd961a388d9f; from 97d27b0dd015e980ade63fda111fd1353276e28b before 109afbd88ecc46b6cc7551367222387e97999765; from 97d27b0dd015e980ade63fda111fd1353276e28b before 3dfd520c3b4ffe69e0630c580717d40447ab842f; from 97d27b0dd015e980ade63fda111fd1353276e28b before b343cee5df7e750d9033fba33e96fc4399fa88a5; from 97d27b0dd015e980ade63fda111fd1353276e28b before b2c0340cfa25c5c1f65e8590cc1a2dc97d14ef0f; from 97d27b0dd015e980ade63fda111fd1353276e28b before 6983d8375c040bb449d2187f4a57a20de01244fe; from 97d27b0dd015e980ade63fda111fd1353276e28b before 90449f2d1e1f020835cba5417234636937dd657e; 8d1f3b474a89b42f957ba3bae959dd3cd16531ca; fa55ef3f803fc7c20be0ab809e6278c31febd875; 6af37613289cfd32516ada47e444b48a638829c8; 4a8e8e0af9a520a685e0ab2d489327d5220d7ce2; and 7 more (not affected: before 4.12; from 5.4.302 up to 5.4.*; from 5.10.247 up to 5.10.*; from 5.15.197 up to 5.15.*; from 6.1.159 up to 6.1.*; from 6.6.118 up to 6.6.*; from 6.12.60 up to 6.12.*; from 6.17.10 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/11eeee00c94d770d4e45364060b5f1526dfe567b>
- <https://git.kernel.org/stable/c/db6ac8703ab2b473e1ec845f57f6dd961a388d9f>
- <https://git.kernel.org/stable/c/109afbd88ecc46b6cc7551367222387e97999765>
- <https://git.kernel.org/stable/c/3dfd520c3b4ffe69e0630c580717d40447ab842f>
- <https://git.kernel.org/stable/c/b343cee5df7e750d9033fba33e96fc4399fa88a5>
- <https://git.kernel.org/stable/c/b2c0340cfa25c5c1f65e8590cc1a2dc97d14ef0f>
- <https://git.kernel.org/stable/c/6983d8375c040bb449d2187f4a57a20de01244fe>
- <https://git.kernel.org/stable/c/90449f2d1e1f020835cba5417234636937dd657e>

## Sources

- CVE List: [CVE-2025-40259](https://www.cve.org/CVERecord?id=CVE-2025-40259), CVE Terms of Use, modified 2026-06-16
- NVD: [CVE-2025-40259](https://nvd.nist.gov/vuln/detail/CVE-2025-40259), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40259 · Whole record: https://cve.day/CVE-2025-40259.json · Rebuilt by cve.day 2026-11-25T22:59:08.280Z
