Bug 2039448 (CVE-2022-0494) - CVE-2022-0494 kernel: information leak in scsi_ioctl()
Summary: CVE-2022-0494 kernel: information leak in scsi_ioctl()
Keywords:
Status: NEW
Alias: CVE-2022-0494
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2049196 2049198 2066297 2082960 2107623 2107624 2107626 2107627 2049197 2049199 2082959 2106024 2107625 2107628 2108536
Blocks: 2039432 2050618
TreeView+ depends on / blocked
 
Reported: 2022-01-11 17:59 UTC by Michael Kaplan
Modified: 2022-08-12 08:38 UTC (History)
50 users (show)

Fixed In Version: kernel 5.17 rc5
Doc Type: If docs needed, set a value
Doc Text:
A kernel information leak flaw was identified in the scsi_ioctl function in drivers/scsi/scsi_ioctl.c in the Linux kernel. This flaw allows a local attacker with a special user privilege (CAP_SYS_ADMIN or CAP_SYS_RAWIO) to create issues with confidentiality.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:6002 0 None None None 2022-08-09 17:07:20 UTC
Red Hat Product Errata RHSA-2022:6003 0 None None None 2022-08-09 16:59:30 UTC

Description Michael Kaplan 2022-01-11 17:59:09 UTC
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/

Comment 20 errata-xmlrpc 2022-08-09 16:59:26 UTC
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

Comment 21 errata-xmlrpc 2022-08-09 17:07:15 UTC
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


Note You need to log in before you can comment on or make changes to this bug.