[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9500a7cb-7b60-45c5-bd9c-1ee921ab4b58@acm.org>
Date: Tue, 15 Jul 2025 09:57:18 -0700
From: Bart Van Assche <bvanassche@....org>
To: Krzysztof Kozlowski <krzk@...nel.org>, jackysliu <1972843537@...com>
Cc: James.Bottomley@...senPartnership.com, linux-kernel@...r.kernel.org,
linux-scsi@...r.kernel.org, martin.petersen@...cle.com
Subject: Re: [PATCH v2] scsi: fix out of bounds error in /drivers/scsi
On 7/15/25 8:36 AM, Krzysztof Kozlowski wrote:
> On 15/07/2025 15:00, Bart Van Assche wrote:
>> On 6/18/25 9:03 PM, jackysliu wrote:
>>> 6.15-stable review patch, vulnerability exists since v6.9
>>>
>>> Out-of-bounds vulnerability found in ./drivers/scsi/sd.c
>>> The vulnerability is found by is found by Wukong-Agent
>>> (formerly Tencent Woodpecker), a code security AI agent,
>>> through static code analysis.
>>>
>>> sd_read_block_limits_ext Function Due to Unreasonable boundary checks.
>>> Out-of-bounds read vulnerability exists in the
>>> Linux kernel's SCSI disk driver (./drivers/scsi/sd.c).
>>> The flaw occurs in the sd_read_block_limits_ext function
>>> when processing Vital Product Data (VPD) page B7 (Block Limits Extension)
>>> responses from storage devices
>>>
>>> A maliciously crafted 4-byte VPD page (0xB7) would cause Out-of-Bounds
>>> Memory Read, leading to potential system Instability
>>> and Driver State Corruption.
>>
>> Reviewed-by: Bart Van Assche <bvanassche@....org>
>
> Just checking - are you sure? Please be careful with this work, that's
> AI generated stuff which in some cases did not even compile or did not
> actually follow C code.
As one can see here, an in-depth review was performed before I replied
with "Reviewed-by":
https://lore.kernel.org/linux-scsi/07c4c84d-0c52-4843-b32d-6806e58892fe@acm.org/
Bart.
Powered by blists - more mailing lists