{"id":"CVE-2025-40259","summary":"scsi: sg: Do not sleep in atomic context","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: sg: Do not sleep in atomic context\n\nsg_finish_rem_req() calls blk_rq_unmap_user(). The latter function may\nsleep. Hence, call sg_finish_rem_req() with interrupts enabled instead\nof disabled.","modified":"2026-03-31T17:29:47.950935Z","published":"2025-12-04T16:08:19.904Z","related":["MGASA-2026-0017","MGASA-2026-0018","SUSE-SU-2026:0447-1","SUSE-SU-2026:0471-1","SUSE-SU-2026:0472-1","SUSE-SU-2026:0473-1","SUSE-SU-2026:0587-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20555-1","SUSE-SU-2026:20599-1","SUSE-SU-2026:20615-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1","openSUSE-SU-2026:20287-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40259.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/109afbd88ecc46b6cc7551367222387e97999765"},{"type":"WEB","url":"https://git.kernel.org/stable/c/11eeee00c94d770d4e45364060b5f1526dfe567b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3dfd520c3b4ffe69e0630c580717d40447ab842f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6983d8375c040bb449d2187f4a57a20de01244fe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/90449f2d1e1f020835cba5417234636937dd657e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b2c0340cfa25c5c1f65e8590cc1a2dc97d14ef0f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b343cee5df7e750d9033fba33e96fc4399fa88a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/db6ac8703ab2b473e1ec845f57f6dd961a388d9f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40259.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40259"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"97d27b0dd015e980ade63fda111fd1353276e28b"},{"fixed":"11eeee00c94d770d4e45364060b5f1526dfe567b"},{"fixed":"db6ac8703ab2b473e1ec845f57f6dd961a388d9f"},{"fixed":"109afbd88ecc46b6cc7551367222387e97999765"},{"fixed":"3dfd520c3b4ffe69e0630c580717d40447ab842f"},{"fixed":"b343cee5df7e750d9033fba33e96fc4399fa88a5"},{"fixed":"b2c0340cfa25c5c1f65e8590cc1a2dc97d14ef0f"},{"fixed":"6983d8375c040bb449d2187f4a57a20de01244fe"},{"fixed":"90449f2d1e1f020835cba5417234636937dd657e"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"8d1f3b474a89b42f957ba3bae959dd3cd16531ca"},{"last_affected":"fa55ef3f803fc7c20be0ab809e6278c31febd875"},{"last_affected":"6af37613289cfd32516ada47e444b48a638829c8"},{"last_affected":"4a8e8e0af9a520a685e0ab2d489327d5220d7ce2"},{"last_affected":"ae9b6ae2e77947534e255903627cc62746ea77e2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40259.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.12.0"},{"fixed":"5.4.302"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.247"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.197"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.159"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.60"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.17.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40259.json"}}],"schema_version":"1.7.5"}