CVE-2025-40259: Linux kernel · scsi: sg: Do not sleep in atomic context
Source GCVE Database
Not known to be exploited.
Data as of 25 Nov 2026, 04:13 UTC
Rated by Threat Radar · No CVSS score from NVD or the CNA
Exploitation evidence
Disclosed: evidence found.
CVE published 4 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
AI-suggested
A fix has been implemented in the Linux kernel to call sg_finish_rem_req() with interrupts enabled. Users should update to the fixed kernel version once available.
Description
A vulnerability in the Linux kernel's SCSI generic (sg) driver involved calling a function that may sleep while in atomic context, which is unsafe. The issue was fixed by ensuring sg_finish_rem_req() is called with interrupts enabled to avoid sleeping in atomic context.
References
- nvd.nist.gov/vuln/detail/CVE-2025-40259 (opens in a new tab)
- git.kernel.org/stable/c/109afbd88ecc46b6cc7551367222387e97999765 (opens in a new tab)
- git.kernel.org/stable/c/11eeee00c94d770d4e45364060b5f1526dfe567b (opens in a new tab)
- git.kernel.org/stable/c/3dfd520c3b4ffe69e0630c580717d40447ab842f (opens in a new tab)
- git.kernel.org/stable/c/6983d8375c040bb449d2187f4a57a20de01244fe (opens in a new tab)
- git.kernel.org/stable/c/90449f2d1e1f020835cba5417234636937dd657e (opens in a new tab)
- git.kernel.org/stable/c/b2c0340cfa25c5c1f65e8590cc1a2dc97d14ef0f (opens in a new tab)
- git.kernel.org/stable/c/b343cee5df7e750d9033fba33e96fc4399fa88a5 (opens in a new tab)
- git.kernel.org/stable/c/db6ac8703ab2b473e1ec845f57f6dd961a388d9f (opens in a new tab)