Thread (5 messages) 5 messages, 4 authors, 2021-07-29

Re: [PATCH] scsi: ufs: Fix memory corruption by ufshcd_read_desc_param()

From: "Martin K. Petersen" <martin.petersen@oracle.com>
Date: 2021-07-29 03:37:26

On Mon, 19 Jul 2021 16:11:22 -0700, Bart Van Assche wrote:
If param_offset > buff_len then the memcpy() statement in
ufshcd_read_desc_param() corrupts memory since it copies
256 + buff_len - param_offset bytes into a buffer with size buff_len.
Since param_offset < 256 this results in writing past the bound of the
output buffer.
Applied to 5.14/scsi-fixes, thanks!

[1/1] scsi: ufs: Fix memory corruption by ufshcd_read_desc_param()
      https://git.kernel.org/mkp/scsi/c/b1d5de8c6ea2

-- 
Martin K. Petersen	Oracle Linux Engineering
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help