CVE-2025-40259: scsi: sg: Do not sleep in atomic context
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.
Security readout for executives and security teams
Plain-English summary
CVE-2025-40259 is a Linux kernel flaw in the SCSI generic driver. The issue is a kernel code path that may sleep while interrupts are disabled, which can affect kernel stability. The public record does not provide CVSS, CWE, exploitability, or business-impact detail.
Executive priority
Track and remediate through normal Linux kernel patch management unless vendor advisories add stronger impact or exploitation evidence. The issue is real, but public severity and exploit context are incomplete.
Technical view
In the Linux sg driver, sg_finish_rem_req() calls blk_rq_unmap_user(), which may sleep. The fix changes the request-finish path so sg_finish_rem_req() is called with interrupts enabled instead of disabled, avoiding sleep in atomic context.
Likely exposure
Exposure is most likely on Linux systems running affected kernel versions or distribution kernels carrying the vulnerable sg driver code. The CVE lists multiple affected kernel release lines, but distribution backport status must be checked separately.
Exploitation context
The source bundle does not show active exploitation, public exploit code, KEV listing, CVSS, or required attacker conditions. Treat exploitation status as unconfirmed and prioritize based on affected kernel presence and vendor guidance.
Researcher notes
The CVE record describes a sleep-in-atomic-context bug in the sg request completion path. The available evidence supports a kernel correctness and stability concern, not a confirmed privilege escalation or remote attack path.
Mitigation direction
Check Linux distribution advisories for CVE-2025-40259 backports and fixed package versions.
Update affected kernels to a vendor-supported release containing the referenced stable fixes.
Prioritize systems using SCSI generic interfaces or exposing local untrusted user access.
Avoid inventing compensating controls; follow kernel or distribution maintainer guidance.
Validation and detection
Inventory kernel versions across Linux hosts and appliances.
Map installed kernels to vendor advisories for CVE-2025-40259.
Confirm fixed kernel builds include the relevant upstream stable commit or vendor backport.
Review whether SCSI generic driver functionality is present and used on exposed systems.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-40259 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.