CVE-2025-40259
scsi: sg: Do not sleep in atomic context
Reported by linux · Published December 4, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf-static | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| kernel6.12-tools-devel | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| kernel-livepatch-6.12.63-84.121 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| kernel | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| kernel-libbpf | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.63-84.121.amzn2023 |
| bpftool | Amazon Linux | 1:6.1.159-181.297.amzn2023 |
4 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 97d27b0dd015e980ade63fda111fd1353276e28b, 97d27b0dd015e980ade63fda111fd1353276e28b, 97d27b0dd015e980ade63fda111fd1353276e28b |
| Linux | Linux | 4.12, 0, 5.4.302 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| linux | linux_kernel | 4.12, 4.12, 4.9.89 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel-livepatch-6.12.63-84.121 | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel-headers | 0 |
| Linux | Linux | 4.9.89, 6.18, * |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-devel | 0 |
…and 12 more
Timeline
- Dec 4, 2025 CVE Published
- Dec 5, 2025 EPSS Score (30 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (145 in total, the first dated here)
- Mar 29, 2026 Security Advisory (195 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-40259
vulnetix vdb fixes CVE-2025-40259
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-40259/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart