Re: [PATCH 2/2] software node: Correct a OOB check in software_node_get_reference_args()
From: Andy Shevchenko
Date: Mon Apr 14 2025 - 04:08:49 EST
On Thu, Apr 10, 2025 at 09:12:12PM +0800, Zijun Hu wrote:
> From: Zijun Hu <quic_zijuhu@xxxxxxxxxxx>
>
> software_node_get_reference_args() wants to get @index-th element, so
> the property value requires at least '(index + 1) * sizeof(*ref)' bytes.
>
> Correct the check to avoid OOB access.
Any real traceback?
--
With Best Regards,
Andy Shevchenko