[PATCH] net: phy: ncsi: fixed not nullify the pointers after free

Tom Rini trini at konsulko.com
Thu Mar 28 16:08:46 CET 2024


On Fri, Dec 29, 2023 at 09:45:55AM +0800, Jacky Chou wrote:

> The issue occurs the UAF (use-after-free) to cause double free
> when do the realloc function for the pointers during the
> reinitialization NC-SI process, and it will cause the memory
> management occurs error.
> So, nullify these pointers after free.
> 
> Signed-off-by: Jacky Chou <jacky_chou at aspeedtech.com>

Applied to u-boot/next, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240328/b2c3d998/attachment.sig>


More information about the U-Boot mailing list