# scsi: sg: Allow waiting for commands to complete on removed device

CVE record · `CVE-2022-50215`

- **Identifiers:** `CVE-2022-50215`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 18 Jun 2025
- **Updated:** 15 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 18 Jun 2025, 11:03 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `c6517b7942fad663cc1cf3235cbe4207cf769332 to before bbc118acf7baf9e93c5e1314d14f481301af4d0f` (git)
  - affected: `c6517b7942fad663cc1cf3235cbe4207cf769332 to before f5e61d9b4a699dd16f32d5f39eb1cf98d84c92ed` (git)
  - affected: `c6517b7942fad663cc1cf3235cbe4207cf769332 to before ed9afd967cbfe7da2dc0d5e52c62a778dfe9f16b` (git)
  - affected: `c6517b7942fad663cc1cf3235cbe4207cf769332 to before f135c65085eed869d10e4e7923ce1015288618da` (git)
  - affected: `c6517b7942fad663cc1cf3235cbe4207cf769332 to before 408bfa1489a3cfe7150b81ab0b0df99b23dd5411` (git)
  - affected: `c6517b7942fad663cc1cf3235cbe4207cf769332 to before 8c004b7dbb340c1e5889f5fb9e5baa6f6e5303e8` (git)
  - affected: `c6517b7942fad663cc1cf3235cbe4207cf769332 to before 35e60ec39e862159cb92923eefd5230d4a873cb9` (git)
  - affected: `c6517b7942fad663cc1cf3235cbe4207cf769332 to before 03d8241112d5e3cccce1a01274a221099f07d2e1` (git)
  - affected: `c6517b7942fad663cc1cf3235cbe4207cf769332 to before 3455607fd7be10b449f5135c00dc306b85dc0d21` (git)
  - affected: `a0fe972f78eaaf352d593f9ed9079de590ceb286` (git)
  - affected: `b21c6d2897cd455fa396f4041a0c8165784e949f` (git)
  - affected: `2.6.28.10 to before 2.6.29` (semver)
  - and 1 more
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.30`
  - unaffected: `before 2.6.30` (semver)
  - unaffected: `4.9.326 to 4.9.*, inclusive` (semver)
  - unaffected: `4.14.291 to 4.14.*, inclusive` (semver)
  - unaffected: `4.19.256 to 4.19.*, inclusive` (semver)
  - unaffected: `5.4.211 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.137 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.61 to 5.15.*, inclusive` (semver)
  - unaffected: `5.18.18 to 5.18.*, inclusive` (semver)
  - unaffected: `5.19.2 to 5.19.*, inclusive` (semver)
  - unaffected: `6.0 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0026, the 18th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 18 Jun 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2022-50215](https://www.cve.org/CVERecord?id=CVE-2022-50215)
- [NVD: CVE-2022-50215](https://nvd.nist.gov/vuln/detail/CVE-2022-50215)

### References from the CNA

- <https://git.kernel.org/stable/c/bbc118acf7baf9e93c5e1314d14f481301af4d0f>
- <https://git.kernel.org/stable/c/f5e61d9b4a699dd16f32d5f39eb1cf98d84c92ed>
- <https://git.kernel.org/stable/c/ed9afd967cbfe7da2dc0d5e52c62a778dfe9f16b>
- <https://git.kernel.org/stable/c/f135c65085eed869d10e4e7923ce1015288618da>
- <https://git.kernel.org/stable/c/408bfa1489a3cfe7150b81ab0b0df99b23dd5411>
- <https://git.kernel.org/stable/c/8c004b7dbb340c1e5889f5fb9e5baa6f6e5303e8>
- <https://git.kernel.org/stable/c/35e60ec39e862159cb92923eefd5230d4a873cb9>
- <https://git.kernel.org/stable/c/03d8241112d5e3cccce1a01274a221099f07d2e1>
- <https://git.kernel.org/stable/c/3455607fd7be10b449f5135c00dc306b85dc0d21>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2022-50215>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2022-50215/>. Everything for agents: <https://agentprime.io/llms.txt>.
