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: https://lore.kernel.org/all/20220216084038.15635-1-tcs.kernel@gmail.com/
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2022:6003 https://access.redhat.com/errata/RHSA-2022:6003
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2022:6002 https://access.redhat.com/errata/RHSA-2022:6002
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.4 Extended Update Support Via RHSA-2022:6248 https://access.redhat.com/errata/RHSA-2022:6248
This issue has been addressed in the following products: Red Hat Enterprise Linux 8.4 Extended Update Support Via RHSA-2022:6243 https://access.redhat.com/errata/RHSA-2022:6243
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2022:7110 https://access.redhat.com/errata/RHSA-2022:7110
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2022:7134 https://access.redhat.com/errata/RHSA-2022:7134
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2022-0494