[PATCH v1] ufs: host: mediatek: Fix out-of-bounds access in MCQ IRQ mapping
Martin K. Petersen
martin.petersen at oracle.com
Tue Aug 12 19:26:27 PDT 2025
On Mon, 04 Aug 2025 14:01:54 +0800, peter.wang at mediatek.com wrote:
> This patch addresses a potential out-of-bounds access issue when
> accessing 'host->mcq_intr_info[q_index]'. The value of 'q_index'
> might exceed the valid array bounds if 'q_index == nr'.
> The condition is corrected to 'q_index >= nr' to prevent
> accessing invalid memory.
>
>
> [...]
Applied to 6.17/scsi-fixes, thanks!
[1/1] ufs: host: mediatek: Fix out-of-bounds access in MCQ IRQ mapping
https://git.kernel.org/mkp/scsi/c/7ec2bd6cd2d0
--
Martin K. Petersen Oracle Linux Engineering
More information about the Linux-mediatek
mailing list