CVE-2024-42138
publishedmlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb217127e5e4ee0ecfce7c5f84cfe082238123bda to < ab557f5cd993a3201b09593633d04b891263d5c0 · b217127e5e4ee0ecfce7c5f84cfe082238123bda to < f8b55a465b0e8a500179808166fe9420f5c091a1 · b217127e5e4ee0ecfce7c5f84cfe082238123bda to < 9af7437669b72f804fc4269f487528dbbed142a2 · b217127e5e4ee0ecfce7c5f84cfe082238123bda to < 8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.19 (affected) · 0 to < 5.19 (unaffected · semver) · 6.1.98 through 6.1.* (unaffected · semver) · 6.6.39 through 6.6.* (unaffected · semver) · 6.9.9 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.119-1~deb11u1 | DLA-4008-1 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 8 | kernel-uekaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uekx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 8 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-305.176.4.el8uek | ELSA-2025-20095 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-containeraarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-containerx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-container-debugaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-container-debugx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-docaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:5.15.0-305.176.4.el9uek | ELSA-2025-20095 |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaults390x | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | cluster-md-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.8.3 | SUSE-SU-2024:3195-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaults390x | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | dlm-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.8.3 | SUSE-SU-2024:3195-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaultaarch64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaultppc64le | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaults390x | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-defaultx86_64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | gfs2-kmp-rtx86_64 | Advisory build | 6.4.0-150600.10.8.3 | SUSE-SU-2024:3195-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-64kbaarch64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-64kb-develaarch64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azureaarch64 | Advisory build | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azurex86_64 | Advisory build | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azure-develaarch64 | Advisory build | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-azure-develx86_64 | Advisory build | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaultaarch64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaultppc64le | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaults390x | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-defaultx86_64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-baseaarch64 | Advisory build | 6.4.0-150600.23.22.1.150600.12.8.3 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-baseppc64le | Advisory build | 6.4.0-150600.23.22.1.150600.12.8.3 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-basex86_64 | Advisory build | 6.4.0-150600.23.22.1.150600.12.8.3 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-develaarch64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-develppc64le | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-devels390x | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-develx86_64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-extrax86_64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatchppc64le | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatchs390x | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatchx86_64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatch-develppc64le | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatch-devels390x | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-default-livepatch-develx86_64 | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-develnoarch | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-devel-azurenoarch | Advisory build | 6.4.0-150600.8.11.1 | SUSE-SU-2024:3194-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-devel-rtnoarch | Advisory build | 6.4.0-150600.10.8.3 | SUSE-SU-2024:3195-1 |
| SUSE / openSUSE | SLE-15-SP6 | kernel-docsnoarch | Advisory build | 6.4.0-150600.23.22.1 | SUSE-SU-2024:3383-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file In case of invalid INI file mlxsw_linecard_types_init() deallocates memory but doesn't reset pointer to NULL and returns 0. In case of any error occurred after mlxsw_linecard_types_init() call, mlxsw_linecards_init() calls mlxsw_linecard_types_fini() which performs memory deallocation again. Add pointer reset to NULL. Found by Linux Verification Center (linuxtesting.org) with SVACE.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b217127e5e4ee0ecfce7c5f84cfe082238123bda to < ab557f5cd993a3201b09593633d04b891263d5c0 (affected · git)b217127e5e4ee0ecfce7c5f84cfe082238123bda to < f8b55a465b0e8a500179808166fe9420f5c091a1 (affected · git)b217127e5e4ee0ecfce7c5f84cfe082238123bda to < 9af7437669b72f804fc4269f487528dbbed142a2 (affected · git)b217127e5e4ee0ecfce7c5f84cfe082238123bda to < 8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.19 (affected)0 to < 5.19 (unaffected · semver)6.1.98 through 6.1.* (unaffected · semver)6.6.39 through 6.6.* (unaffected · semver)6.9.9 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/8ce34dccbe8fa7d2ef86f2d8e7db2a9b67cabfc3
- https://git.kernel.org/stable/c/9af7437669b72f804fc4269f487528dbbed142a2
- https://git.kernel.org/stable/c/ab557f5cd993a3201b09593633d04b891263d5c0
- https://git.kernel.org/stable/c/f8b55a465b0e8a500179808166fe9420f5c091a1
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Provider assertions
3Linux · cna
mlxsw: core_linecards: Fix double memory deallocation in case of invalid INI file
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 547de6ef69dfe7b3b82a4aba9566b12a4a48e3159cd68eff2fc0c188821f5929
- Ingested
- 23 Sep 2026, 08:26:31 UTC
- Source record
- Official CVE record