]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: phy: ncsi: fixed not nullify the pointers after free
authorJacky Chou <jacky_chou@aspeedtech.com>
Fri, 29 Dec 2023 01:45:55 +0000 (09:45 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 26 Mar 2024 23:58:26 +0000 (19:58 -0400)
commit22f314e01ce249ec1649623ef725552f677beb62
tree79f8c56d6ffef80d1f082b8442ce977dfdea5fc9
parentab8d9ca3044acf51d8ff3bf3c4718c48f30ad606
net: phy: ncsi: fixed not nullify the pointers after free

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@aspeedtech.com>
drivers/net/phy/ncsi.c