CVE-2024-50190

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-50190
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-50190.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-50190
Downstream
Related
Published
2024-11-08T05:43:46Z
Modified
2025-10-15T17:25:38.579356Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
ice: fix memleak in ice_init_tx_topology()
Details

In the Linux kernel, the following vulnerability has been resolved:

ice: fix memleak in iceinittx_topology()

Fix leak of the FW blob (DDP pkg).

Make icecfgtxtopo() const-correct, so iceinittxtopology() 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>] kmemdupnoprof+0x1d/0x50 [<ffffffffc0a0a480>] iceinitddpconfig+0x100/0x220 [ice] [<ffffffffc0a0da7f>] iceinitdev+0x6f/0x200 [ice] [<ffffffffc0a0dc49>] iceinit+0x29/0x560 [ice] [<ffffffffc0a10c1d>] iceprobe+0x21d/0x310 [ice]

Constify icecfgtx_topo() @buf parameter. This cascades further down to few more functions.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
cc5776fe183208115e42c044497e193e4671a2b9
Fixed
43544b4e30732c3d88f423252281915d5bc739b6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
cc5776fe183208115e42c044497e193e4671a2b9
Fixed
c188afdc36113760873ec78cbc036f6b05f77621

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.11.1
v6.11.2
v6.11.3
v6.9
v6.9-rc5
v6.9-rc6
v6.9-rc7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.10.0
Fixed
6.11.4