CVE-2025-40259

published 4 Dec 2025 · updated 17 Nov 2026

scsi: sg: Do not sleep in atomic context

6.2MediumCVSS 6.2EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel db6ac8703ab2b473e1ec845f57f6dd961a388d9f, Kernel 3.17, Kernel 3.19 and 17 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=97d27b0dd015e980ade63fda111fd1353276e28b <db6ac8703ab2b473e1ec845f57f6dd961a388d9f, >=3.16.85 <3.17, >=3.18.101 <3.19, >=4.1.52 <4.2, >=4.4.123 <4.5, >=4.9.89 <4.10, >=97d27b0dd015e980ade63fda111fd1353276e28b <109afbd88ecc46b6cc7551367222387e97999765, >=97d27b0dd015e980ade63fda111fd1353276e28b <11eeee00c94d770d4e45364060b5f1526dfe567b, >=97d27b0dd015e980ade63fda111fd1353276e28b <3dfd520c3b4ffe69e0630c580717d40447ab842f, >=97d27b0dd015e980ade63fda111fd1353276e28b <6983d8375c040bb449d2187f4a57a20de01244fe, >=97d27b0dd015e980ade63fda111fd1353276e28b <90449f2d1e1f020835cba5417234636937dd657e, >=97d27b0dd015e980ade63fda111fd1353276e28b <b2c0340cfa25c5c1f65e8590cc1a2dc97d14ef0f, >=97d27b0dd015e980ade63fda111fd1353276e28b <b343cee5df7e750d9033fba33e96fc4399fa88a5, =4.12, =4a8e8e0af9a520a685e0ab2d489327d5220d7ce2, =6af37613289cfd32516ada47e444b48a638829c8, =8d1f3b474a89b42f957ba3bae959dd3cd16531ca, =ae9b6ae2e77947534e255903627cc62746ea77e2, =fa55ef3f803fc7c20be0ab809e6278c31febd875db6ac8703ab2b473e1ec845f57f6dd961a388d9f, 3.17, 3.19, 4.2, 4.5, 4.10, 109afbd88ecc46b6cc7551367222387e97999765, 11eeee00c94d770d4e45364060b5f1526dfe567b, 3dfd520c3b4ffe69e0630c580717d40447ab842f, 6983d8375c040bb449d2187f4a57a20de01244fe, 90449f2d1e1f020835cba5417234636937dd657e, b2c0340cfa25c5c1f65e8590cc1a2dc97d14ef0f, b343cee5df7e750d9033fba33e96fc4399fa88a5
linux-kernel: Kernel>=3.18.101 <3.19, >=4.1.52 <4.2, >=4.12.0 <5.4.302, >=4.4.123 <4.5, >=4.9.89 <4.10, >=5.11.0 <5.15.197, >=5.16.0 <6.1.159, >=5.5.0 <5.10.247, >=6.13.0 <6.17.10, >=6.2.0 <6.6.118, >=6.7.0 <6.12.60, >=3.16.85 <3.173.19, 4.2, 5.4.302, 4.5, 4.10, 5.15.197, 6.1.159, 5.10.247, 6.17.10, 6.6.118, 6.12.60, 3.17

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-40259 severity on Zeptric[![CVE-2025-40259](https://zeptric.io/badge/cve/CVE-2025-40259.svg)](https://zeptric.io/cve/CVE-2025-40259)