[SRU Bionic/Focal/OEM-5.14/Jammy/HWE-5.17/Kinetic 0/1] CVE-2022-40768

Cengiz Can cengiz.can at canonical.com
Mon Oct 3 15:31:16 UTC 2022


[Impact]
drivers/scsi/stex.c in the Linux kernel through 5.19.9 allows local
users to obtain sensitive information from kernel memory because
stex_queuecommand_lck lacks a memset for the PASSTHRU_CMD case.

[Fix]
Fix is currently on linux-next.git only. There's a request to convert
it into two separate patches which won't effect the structure of the
fix.

[Test case]
For each target kernel, compile and boot tested on KVM only.

[Potential regression]
stex driver specific changes are harmless but the added const'ness to
scsi_sg_copy_from_buffer signature might be risky.

Linus Torvalds (1):
  scsi: stex: Properly zero out the passthrough command structure

 drivers/scsi/stex.c      | 17 +++++++++--------
 include/scsi/scsi_cmnd.h |  2 +-
 2 files changed, 10 insertions(+), 9 deletions(-)

-- 
2.34.1




More information about the kernel-team mailing list