Reference page — cumulative record through Wednesday, August 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.
Linux Linux — scsi: sg: Allow waiting for commands to complete on removed device
AV AC PR UI S C I A CVSS EPSS %ile KEV
L L L N U N N H 5.5 .0022 12.4 —
AFFECTED
Product Versions Fixed
Linux c6517b7942fad663cc1cf3235cbe4207cf769332 – —
Linux 2.6.30 – 4.9.326
TIMELINE
Jun 18 Reserved by Linux
Jun 18 Published (CNA: Linux)
Aug 4 RESCORED — CVE-2022-50215 (Linux). CVSS 7.8 → 5.5 (NVD).
Description
In the Linux kernel, the following vulnerability has been resolved:
scsi: sg: Allow waiting for commands to complete on removed device
When a SCSI device is removed while in active use, currently sg will
immediately return -ENODEV on any attempt to wait for active commands that
were sent before the removal. This is problematic for commands that use
SG_FLAG_DIRECT_IO since the data buffer may still be in use by the kernel
when userspace frees or reuses it after getting ENODEV, leading to
corrupted userspace memory (in the case of READ-type commands) or corrupted
data being sent to the device (in the case of WRITE-type commands). This
has been seen in practice when logging out of a iscsi_tcp session, where
the iSCSI driver may still be processing commands after the device has been
marked for removal.
Change the policy to allow userspace to wait for active sg commands even
when the device is being removed. Return -ENODEV only when there are no
more responses to read.
Lifecycle
Complete event history — 3 events, chronological
| Date | Event | Detail |
| June 18, 2025 | Reserved | Reserved by Linux |
| June 18, 2025 | Published | Published (CNA: Linux) |
| August 4, 2026 | RESCORED | RESCORED — CVE-2022-50215 (Linux). CVSS 7.8 → 5.5 (NVD). |
Affected
Affected products and packages — 2 rows
| Vendor | Product / Package | Ecosystem | Version introduced | Fixed |
| Linux | Linux | — | c6517b7942fad663cc1cf3235cbe4207cf769332 | — |
| Linux | Linux | — | 2.6.30 | 4.9.326 |
About this page
This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2022-50215 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Wednesday, August 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.