# CVE-2024-50190: ice: fix memleak in ice_init_tx_topology()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2024-11-08T05:43:46.911Z
- Modified: 2026-06-17T08:03:49.763Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from cc5776fe183208115e42c044497e193e4671a2b9 before 43544b4e30732c3d88f423252281915d5bc739b6; from cc5776fe183208115e42c044497e193e4671a2b9 before c188afdc36113760873ec78cbc036f6b05f77621; 6.10 (not affected: before 6.10; from 6.11.4 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.10 before 6.11.4; 6.12

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/43544b4e30732c3d88f423252281915d5bc739b6> (patch)
- <https://git.kernel.org/stable/c/c188afdc36113760873ec78cbc036f6b05f77621> (patch)

## Sources

- CVE List: [CVE-2024-50190](https://www.cve.org/CVERecord?id=CVE-2024-50190), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-50190](https://nvd.nist.gov/vuln/detail/CVE-2024-50190), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50190 · Whole record: https://cve.day/CVE-2024-50190.json · Rebuilt by cve.day 2026-11-25T22:58:47.906Z
