In the Linux kernel, the following vulnerability has been resolved:net: arc_emac: Fix use after free in arc_mdio_probe()If bus->state is equal to MDIOBUS_ALLOCATED, mdiobus_free(bus) will freethe "bus". But bus->name is still used in the next line, which will leadto a use after free.We can fix it by putting the name in a local variable and make thebus->name point to the rodata section "name",then use the name in theerror message without referring to bus to avoid the uaf.
No PoCs from references.
- https://github.com/fkie-cad/nvd-json-data-feeds