All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 5.10.y] scsi: core: Backport fixes for CVE-2021-47182
@ 2024-11-22 19:07 Vasiliy Kovalev
  2024-11-22 19:07 ` [PATCH 5.10.y] scsi: core: Fix scsi_mode_sense() buffer length handling Vasiliy Kovalev
  0 siblings, 1 reply; 3+ messages in thread
From: Vasiliy Kovalev @ 2024-11-22 19:07 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Sasha Levin, stable
  Cc: lvc-project, nickel, dutyrok, gerben, kovalev

The patch titled "scsi: core: Fix scsi_mode_sense() buffer length handling"
addresses CVE-2021-47182, fixing the following issues in `scsi_mode_sense()`
buffer length handling:  

1. Incorrect handling of the allocation length field in the MODE SENSE(10)
   command, causing truncation of buffer lengths larger than 255 bytes.  

2. Memory corruption when handling small buffer lengths due to lack of proper
   validation.  

Original patch submission:  
https://lore.kernel.org/all/20210820070255.682775-2-damien.lemoal@wdc.com/  

CVE announcement in linux-cve-announce:  
https://lore.kernel.org/linux-cve-announce/2024041032-CVE-2021-47182-377e@gregkh/  
Fixed versions:  
- Fixed in 5.15.5 with commit e15de347faf4  
- Fixed in 5.16 with commit 17b49bcbf835  

Official CVE entry:  
https://cve.org/CVERecord/?id=CVE-2021-47182

[PATCH 5.10.y] scsi: core: Fix scsi_mode_sense() buffer length handling


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-22 19:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-22 19:07 [PATCH 5.10.y] scsi: core: Backport fixes for CVE-2021-47182 Vasiliy Kovalev
2024-11-22 19:07 ` [PATCH 5.10.y] scsi: core: Fix scsi_mode_sense() buffer length handling Vasiliy Kovalev
2024-11-22 19:39   ` Sasha Levin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.