CVE-2024-50190

ice: fix memleak in ice_init_tx_topology()

Medium · published November 8, 2024

CVSS v3.1
5.5
EPSS
0%
Percentile
6.9
In the wild
Unconfirmed
What it is

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:

[<ffffffff8761044d>] kmemdup_noprof+0x1d/0x50

[<ffffffffc0a0a480>] ice_init_ddp_config+0x100/0x220 [ice]

[<ffffffffc0a0da7f>] ice_init_dev+0x6f/0x200 [ice]

[<ffffffffc0a0dc49>] ice_init+0x29/0x560 [ice]

[<ffffffffc0a10c1d>] ice_probe+0x21d/0x310 [ice]

Constify ice_cfg_tx_topo() @buf parameter.

This cascades further down to few more functions.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00177 · 6.9th percentile
Published
2024-11-08T05:43Z
EPSS history
Timeline
  • 08 NOV 05:43Z
    ice: fix memleak in ice_init_tx_topology()
    cvelistv5