In the Linux kernel, the following vulnerability has been...
Moderate severity
Unreviewed
Published
Nov 8, 2024
to the GitHub Advisory Database
•
Updated Dec 11, 2024
Description
Published by the National Vulnerability Database
Nov 8, 2024
Published to the GitHub Advisory Database
Nov 8, 2024
Last updated
Dec 11, 2024
In the Linux kernel, the following vulnerability has been resolved:
ice: fix memleak in ice_init_tx_topology()
Fix leak of the FW blob (DDP pkg).
Make ice_cfg_tx_topo() const-correct, so ice_init_tx_topology() can avoid
copying whole FW blob. Copy just the topology section, and only when
needed. Reuse the buffer allocated for the read of the current topology.
This was found by kmemleak, with the following trace for each PF:
[] kmemdup_noprof+0x1d/0x50
[] ice_init_ddp_config+0x100/0x220 [ice]
[] ice_init_dev+0x6f/0x200 [ice]
[] ice_init+0x29/0x560 [ice]
[] ice_probe+0x21d/0x310 [ice]
Constify ice_cfg_tx_topo() @buf parameter.
This cascades further down to few more functions.
References