CVE-2024-50252
published medium CVSS 3.1 · 5.5mlxsw: spectrum_ipip: Fix memory leak when changing remote IPv6 address
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxcf42911523e02026cb56d329e584ae5923e94ba1 to < d8f298eb6659eb6a38e26b79e77de4449dc6e61b · cf42911523e02026cb56d329e584ae5923e94ba1 to < 31384aa2ad05c29c7745000f321154f42de24d1a · cf42911523e02026cb56d329e584ae5923e94ba1 to < c1bbdbe07f0bc3bc9f87efe4672d67208c6d6942 · cf42911523e02026cb56d329e584ae5923e94ba1 to < 12ae97c531fcd3bfd774d4dfeaeac23eafe24280 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.17 (affected) · 0 to < 5.17 (unaffected · semver) · 6.1.116 through 6.1.* (unaffected · semver) · 6.6.60 through 6.6.* (unaffected · semver) · 6.11.7 through 6.11.* (unaffected · semver) · 6.12 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 |
| AlmaLinux | 9 | bpftool | Advisory build | 7.4.0-503.21.1.el9_5 | ALSA-2025:0059 |
| Debian | bookworm | linux | Advisory build | 6.1.119-1 | DSA-5818-1 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:7.4.0-503.21.1.el9_5 | ELSA-2025-0059 |
| AlmaLinux | 9 | kernel | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| AlmaLinux | 9 | kernel-64k | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-debug | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-debug-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-debug-devel | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-debug-devel-matched | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-debug-modules | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-debug-modules-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-debug-modules-extra | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-devel | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-devel-matched | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-modules | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-modules-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-64k-modules-extra | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-abi-stablelists | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-cross-headers | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-debug | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-debug-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-debug-devel | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-debug-devel-matched | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-debug-modules | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-debug-modules-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-debug-modules-extra | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-debug-uki-virt | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-devel | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-devel-matched | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-doc | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-headers | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-modules | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-modules-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-modules-extra | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt-debug | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt-debug-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt-debug-devel | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt-debug-modules | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt-debug-modules-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt-debug-modules-extra | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt-devel | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt-modules | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt-modules-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-rt-modules-extra | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-tools | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-tools-libs | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-tools-libs-devel | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-uki-virt | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-uki-virt-addons | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-zfcpdump | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-zfcpdump-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-zfcpdump-devel | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-zfcpdump-devel-matched | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-zfcpdump-modules | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-core | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | kernel-zfcpdump-modules-extra | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | libperf | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | perf | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | python3-perf | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | rtla | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| AlmaLinux | 9 | rv | Advisory build | 5.14.0-503.21.1.el9_5 | ALSA-2025:0059 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.119-1~deb11u1 | DLA-4008-1 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:7.4.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-abi-stablelistsx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-corex86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-cross-headersaarch64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-cross-headersx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-debugx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-debug-corex86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-debug-develx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-debug-modulesx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-debug-modules-corex86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-debug-modules-extrax86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-debug-uki-virtx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-develx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-docx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-headersaarch64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-headersx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-modulesx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-modules-corex86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-modules-extrax86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-toolsaarch64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-toolsx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-tools-libsaarch64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-tools-libsx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-tools-libs-develaarch64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-tools-libs-develx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-uki-virtx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | kernel-uki-virt-addonsx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | libperfx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | perfaarch64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | perfx86_64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
| Oracle Linux | 9 | python3-perfaarch64 | Advisory build | 0:5.14.0-503.21.1.el9_5 | ELSA-2025-0059 |
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: spectrum_ipip: Fix memory leak when changing remote IPv6 address The device stores IPv6 addresses that are used for encapsulation in linear memory that is managed by the driver. Changing the remote address of an ip6gre net device never worked properly, but since cited commit the following reproducer [1] would result in a warning [2] and a memory leak [3]. The problem is that the new remote address is never added by the driver to its hash table (and therefore the device) and the old address is never removed from it. Fix by programming the new address when the configuration of the ip6gre net device changes and removing the old one. If the address did not change, then the above would result in increasing the reference count of the address and then decreasing it. [1] # ip link add name bla up type ip6gre local 2001:db8:1::1 remote 2001:db8:2::1 tos inherit ttl inherit # ip link set dev bla type ip6gre remote 2001:db8:3::1 # ip link del dev bla # devlink dev reload pci/0000:01:00.0 [2] WARNING: CPU: 0 PID: 1682 at drivers/net/ethernet/mellanox/mlxsw/spectrum.c:3002 mlxsw_sp_ipv6_addr_put+0x140/0x1d0 Modules linked in: CPU: 0 UID: 0 PID: 1682 Comm: ip Not tainted 6.12.0-rc3-custom-g86b5b55bc835 #151 Hardware name: Nvidia SN5600/VMOD0013, BIOS 5.13 05/31/2023 RIP: 0010:mlxsw_sp_ipv6_addr_put+0x140/0x1d0 [...] Call Trace: <TASK> mlxsw_sp_router_netdevice_event+0x55f/0x1240 notifier_call_chain+0x5a/0xd0 call_netdevice_notifiers_info+0x39/0x90 unregister_netdevice_many_notify+0x63e/0x9d0 rtnl_dellink+0x16b/0x3a0 rtnetlink_rcv_msg+0x142/0x3f0 netlink_rcv_skb+0x50/0x100 netlink_unicast+0x242/0x390 netlink_sendmsg+0x1de/0x420 ____sys_sendmsg+0x2bd/0x320 ___sys_sendmsg+0x9a/0xe0 __sys_sendmsg+0x7a/0xd0 do_syscall_64+0x9e/0x1a0 entry_SYSCALL_64_after_hwframe+0x77/0x7f [3] unreferenced object 0xffff898081f597a0 (size 32): comm "ip", pid 1626, jiffies 4294719324 hex dump (first 32 bytes): 20 01 0d b8 00 02 00 00 00 00 00 00 00 00 00 01 ............... 21 49 61 83 80 89 ff ff 00 00 00 00 01 00 00 00 !Ia............. backtrace (crc fd9be911): [<00000000df89c55d>] __kmalloc_cache_noprof+0x1da/0x260 [<00000000ff2a1ddb>] mlxsw_sp_ipv6_addr_kvdl_index_get+0x281/0x340 [<000000009ddd445d>] mlxsw_sp_router_netdevice_event+0x47b/0x1240 [<00000000743e7757>] notifier_call_chain+0x5a/0xd0 [<000000007c7b9e13>] call_netdevice_notifiers_info+0x39/0x90 [<000000002509645d>] register_netdevice+0x5f7/0x7a0 [<00000000c2e7d2a9>] ip6gre_newlink_common.isra.0+0x65/0x130 [<0000000087cd6d8d>] ip6gre_newlink+0x72/0x120 [<000000004df7c7cc>] rtnl_newlink+0x471/0xa20 [<0000000057ed632a>] rtnetlink_rcv_msg+0x142/0x3f0 [<0000000032e0d5b5>] netlink_rcv_skb+0x50/0x100 [<00000000908bca63>] netlink_unicast+0x242/0x390 [<00000000cdbe1c87>] netlink_sendmsg+0x1de/0x420 [<0000000011db153e>] ____sys_sendmsg+0x2bd/0x320 [<000000003b6d53eb>] ___sys_sendmsg+0x9a/0xe0 [<00000000cae27c62>] __sys_sendmsg+0x7a/0xd0
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | cf42911523e02026cb56d329e584ae5923e94ba1 to < d8f298eb6659eb6a38e26b79e77de4449dc6e61b (affected · git)cf42911523e02026cb56d329e584ae5923e94ba1 to < 31384aa2ad05c29c7745000f321154f42de24d1a (affected · git)cf42911523e02026cb56d329e584ae5923e94ba1 to < c1bbdbe07f0bc3bc9f87efe4672d67208c6d6942 (affected · git)cf42911523e02026cb56d329e584ae5923e94ba1 to < 12ae97c531fcd3bfd774d4dfeaeac23eafe24280 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.17 (affected)0 to < 5.17 (unaffected · semver)6.1.116 through 6.1.* (unaffected · semver)6.6.60 through 6.6.* (unaffected · semver)6.11.7 through 6.11.* (unaffected · semver)6.12 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-401 CWE-401 Missing Release of Memory after Effective Lifetime
References
5- https://git.kernel.org/stable/c/12ae97c531fcd3bfd774d4dfeaeac23eafe24280
- https://git.kernel.org/stable/c/31384aa2ad05c29c7745000f321154f42de24d1a
- https://git.kernel.org/stable/c/c1bbdbe07f0bc3bc9f87efe4672d67208c6d6942
- https://git.kernel.org/stable/c/d8f298eb6659eb6a38e26b79e77de4449dc6e61b
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Provider assertions
3Linux · cna
mlxsw: spectrum_ipip: Fix memory leak when changing remote IPv6 address
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4bb2ac4fa368a4be7a7834e9ed2cbd2b05d3234e2ed0819ce8c1bc00307f238e
- Ingested
- 23 Sep 2026, 08:29:52 UTC
- Source record
- Official CVE record