First published: Tue Jan 11 2022(Updated: )
A flaw was found in the linux kernel in scsi_ioctl() function. If the parameter cmd is SCSI_IOCTL_SEND_COMMAND, the function scsi_ioctl will call sg_scsi_ioctl to further process. In function sg_scsi_ioctl, it creates a scsi request and calls blk_rq_map_kern to allocate the internal buffer of this request, but the internal buffer doesn't get zeroed properly. Then this request will be sent to the disk driver, but the disk driver doesn't fill anything into it. Finally, the internal buffer's content is copied to the user buffer which is specified by the parameter sic->data of sg_scsi_ioctl. Reference: <a href="https://lore.kernel.org/all/20220216084038.15635-1-tcs.kernel@gmail.com/">https://lore.kernel.org/all/20220216084038.15635-1-tcs.kernel@gmail.com/</a>
Credit: secalert@redhat.com secalert@redhat.com secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/kernel-rt | <0:4.18.0-372.32.1.rt7.189.el8_6 | 0:4.18.0-372.32.1.rt7.189.el8_6 |
redhat/kernel | <0:4.18.0-372.32.1.el8_6 | 0:4.18.0-372.32.1.el8_6 |
redhat/kernel-rt | <0:4.18.0-305.62.1.rt7.134.el8_4 | 0:4.18.0-305.62.1.rt7.134.el8_4 |
redhat/kernel | <0:4.18.0-305.62.1.el8_4 | 0:4.18.0-305.62.1.el8_4 |
redhat/kernel | <0:5.14.0-70.22.1.el9_0 | 0:5.14.0-70.22.1.el9_0 |
redhat/kernel-rt | <0:5.14.0-70.22.1.rt21.94.el9_0 | 0:5.14.0-70.22.1.rt21.94.el9_0 |
redhat/kernel | <5.17 | 5.17 |
Linux Kernel | <5.17 | |
Linux Kernel | =5.17 | |
Linux Kernel | =5.17-rc1 | |
Linux Kernel | =5.17-rc2 | |
Linux Kernel | =5.17-rc3 | |
Linux Kernel | =5.17-rc4 | |
Debian Linux | =9.0 | |
Debian Linux | =10.0 | |
Debian Linux | =11.0 | |
debian/linux | 5.10.223-1 5.10.234-1 6.1.129-1 6.1.128-1 6.12.20-1 6.12.21-1 |
Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
The severity of CVE-2022-0494 is classified as high due to its potential to lead to privilege escalation.
To fix CVE-2022-0494, update your kernel to one of the following versions: 0:4.18.0-372.32.1.rt7.189.el8_6, 0:4.18.0-372.32.1.el8_6, 0:5.14.0-70.22.1.el9_0, or any version above 5.17.
CVE-2022-0494 affects Linux kernel versions up to 5.17 and specific Red Hat and Debian kernel packages.
CVE-2022-0494 does not directly lead to remote code execution but may allow privilege escalation, which can be exploited in conjunction with other vulnerabilities.
There are no specific workarounds for CVE-2022-0494; the best mitigation is to apply the recommended updates to affected kernel versions.