CVE-2022-50215
MediumIn 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.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected versions
Linux kernel versions
2.6.28.10,
2.6.29.2,
2.6.30
and later are affected. Fixed in
4.9.326,
4.14.291,
4.19.256,
5.4.211,
5.10.137,
5.15.61,
5.18.18,
5.19.2,
6.0
and their respective stable series.
References
The following references provide additional information about CVE-2022-50215 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/03d8241112d5e3cccce1a01274a221099f07d2e1
-
PatchKernel patch commithttps://git.kernel.org/stable/c/3455607fd7be10b449f5135c00dc306b85dc0d21
-
PatchKernel patch commithttps://git.kernel.org/stable/c/35e60ec39e862159cb92923eefd5230d4a873cb9
Frequently asked questions
-
What is CVE-2022-50215?
CVE-2022-50215 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . It affects Linux kernel versions from 2.6.28.10 onward and has been patched in 4.9.326, 4.14.291, 4.19.256 and others. CVE-2022-50215 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2022-50215?
CVE-2022-50215 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2022-50215?
Yes — CVE-2022-50215 has been patched. Fixed versions include 4.9.326, 4.14.291, 4.19.256 and others. If you are running Linux kernel 2.6.28.10 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2022-50215 actively exploited?
No — CVE-2022-50215 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.