ice: Fix memory leak in ice_set_ringparam() (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.12 % · percentile 2 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- NVD status
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ice: Fix memory leak in ice_set_ringparam() In ice_set_ringparam, tx_rings and xdp_rings are allocated before rx_rings. If the allocation of rx_rings fails, the code jumps to the done label leaking both tx_rings and xdp_rings. Furthermore, if the setup of an individual Rx ring fails during the loop, the code jumps to the free_tx label which releases tx_rings but leaks xdp_rings. Fix this by introducing a free_xdp label and updating the error paths to ensure both xdp_rings and tx_rings are properly freed if rx_rings allocation or setup fails. Compile tested only. Issue found using a prototype static analysis tool and code review.
Weaknesses (CWE)
- CWE-401 — Missing Release of Memory after Effective Lifetime
References
- https://git.kernel.org/stable/c/bddf04e3822e4fa38691433dd0750420d49a0dd6
- https://git.kernel.org/stable/c/e0c211a0c26159058303712d6b4fbd1c88835e6d
- https://git.kernel.org/stable/c/b23282218eca27b710111460b4964c8a456c6c44
- https://git.kernel.org/stable/c/63dc317dfcd3faffd082c2bf3080f9ad070273da
- https://git.kernel.org/stable/c/44ba32a892b72de3faa04b8cfb1f2f1418fdd580
- https://git.kernel.org/stable/c/fe868b499d16f55bbeea89992edb98043c9de416
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2026-15390
- GCVE · GCVE-0-2026-23389
CERT-FR advisories
- CERTFR-2026-AVI-1298 — Multiples vulnérabilités dans les produits Siemens · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1066 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-0954 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-0926 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-0862 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-0548 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 4.17.1 < 6.12.81cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.13 < 6.18.22cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*≥ 6.19 < 6.19.7cpe:2.3:o:linux:linux_kernel:4.17:-:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| Linux · Linux | affected fcea6f3da546b93050f3534aadea7bd96c1d7349 < bddf04e3822e4fa38691433dd0750420d49a0dd6 ; affected fcea6f3da546b93050f3534aadea7bd96c1d7349 < e0c211a0c26159058303712d6b4fbd1c88835e6d ; affected fcea6f3da546b93050f3534aadea7bd96c1d7349 < b23282218eca27b710111460b4964c8a456c6c44 ; affected fcea6f3da546b93050f3534aadea7bd96c1d7349 < 63dc317dfcd3faffd082c2bf3080f9ad070273da ; affected fcea6f3da546b93050f3534aadea7bd96c1d7349 < 44ba32a892b72de3faa04b8cfb1f2f1418fdd580 ; affected fcea6f3da546b93050f3534aadea7bd96c1d7349 < fe868b499d16f55bbeea89992edb98043c9de416 |
| Linux · Linux | affected 4.17 ; unaffected 0 < 4.17 ; unaffected 6.1.175 ≤ 6.1.* ; unaffected 6.6.136 ≤ 6.6.* ; unaffected 6.12.81 ≤ 6.12.* ; unaffected 6.18.22 ≤ 6.18.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |