HomeDefectsLIN1022-16097
Fixed

LIN1022-16097 : Security Advisory - linux - CVE-2022-50215

Created: Jun 18, 2025    Updated: Oct 14, 2025
Resolved Date: Oct 13, 2025
Found In Version: 10.22.33.1
Fix Version: 10.22.33.2
Severity: Standard
Applicable for: Wind River Linux LTS 22
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:[EOL][EOL]scsi: sg: Allow waiting for commands to complete on removed device[EOL][EOL]When a SCSI device is removed while in active use, currently sg will[EOL]immediately return -ENODEV on any attempt to wait for active commands that[EOL]were sent before the removal.  This is problematic for commands that use[EOL]SG_FLAG_DIRECT_IO since the data buffer may still be in use by the kernel[EOL]when userspace frees or reuses it after getting ENODEV, leading to[EOL]corrupted userspace memory (in the case of READ-type commands) or corrupted[EOL]data being sent to the device (in the case of WRITE-type commands).  This[EOL]has been seen in practice when logging out of a iscsi_tcp session, where[EOL]the iSCSI driver may still be processing commands after the device has been[EOL]marked for removal.[EOL][EOL]Change the policy to allow userspace to wait for active sg commands even[EOL]when the device is being removed.  Return -ENODEV only when there are no[EOL]more responses to read.

CVEs