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

Published Dec 4, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

scsi: sg: Do not sleep in atomic context

sgfinishremreq() calls blkrqunmapuser(). The latter function may sleep. Hence, call sgfinishremreq() with interrupts enabled instead of disabled.

Affected Software

4 affected componentsFixes available
Linux Kernel
Microsoft azl3 kernel 6.6.112.1-2
Microsoft azl3 kernel 6.6.117.1-1
Microsoft azl3 kernel 6.6.117.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Ensure sg_finish_rem_req() is invoked with interrupts enabled (i.e., not called from atomic context). This prevents sleeping in atomic context because sg_finish_rem_req() calls blk_rq_unmap_user(), which may sleep.

    Linux kernel scsi: sg driver (sg_finish_rem_req) call/interrupt context = interrupts enabled (non-atomic context)

Event History

Dec 4, 2025
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
Description
Data Sourced
via NVD·04:16 PM
Description
Dec 6, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:02 AM
DescriptionSeverity
Updated
via Microsoft·01:02 AM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-40259?

CVE-2025-40259 is considered a moderate severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-40259?

To fix CVE-2025-40259, ensure that you're using an updated version of the Linux kernel that includes the patch addressing this vulnerability.

3

What does CVE-2025-40259 affect?

CVE-2025-40259 affects the Linux kernel, specifically the SCSI generic (sg) driver.

4

What could happen if CVE-2025-40259 is exploited?

Exploitation of CVE-2025-40259 may lead to potential denial of service, as it involves incorrect handling of sleep in atomic context.

5

When was CVE-2025-40259 published?

CVE-2025-40259 was published in late 2025 following its discovery and subsequent resolution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203