In the Linux kernel, the following vulnerability has been resolved:
net: macvlan: fix memory leaks of macvlan_common_newlink
kmemleak reports memory leaks in macvlan_common_newlink, as follows:
ip link add link eth0 name .. type macvlan mode source macaddr add <MAC-ADDR>
kmemleak reports:
unreferenced object 0xffff8880109bb140 (size 64): comm "ip", pid 284, jiffies 4294986150 (age 430.108s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 b8 aa 5a 12 80 88 ff ff ..........Z..... 80 1b fa 0d 80 88 ff ff 1e ff ac af c7 c1 6b 6b ..............kk backtrace: [<ffffffff813e06a7>] kmem_cache_alloc_trace+0x1c7/0x300 [<ffffffff81b66025>] macvlan_hash_add_source+0x45/0xc0 [<ffffffff81b66a67>] macvlan_changelink_sources+0xd7/0x170 [<ffffffff81b6775c>] macvlan_common_newlink+0x38c/0x5a0 [<ffffffff81b6797e>] macvlan_newlink+0xe/0x20 [<ffffffff81d97f8f>] __rtnl_newlink+0x7af/0xa50 [<ffffffff81d98278>] rtnl_newlink+0x48/0x70 ...
In the scenario where the macvlan mode is configured as 'source', macvlan_changelink_sources() will be execured to reconfigure list of remote source mac addresses, at the same time, if register_netdevice() return an error, the resource generated by macvlan_changelink_sources() is not cleaned up.
Using this patch, in the case of an error, it will execute macvlan_flush_sources() to ensure that the resource is cleaned up.
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Amazon Linux Ami 2 | — | Upgrade kernel-toolsUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-tools-develUpgrade perfUpgrade kernel-headersUpgrade python-perf-debuginfoUpgrade kernelUpgrade perf-debuginfoUpgrade kernel-livepatch-5.10.155-138.670Upgrade kernel-livepatch-5.15.79-51.138Upgrade kernel-develUpgrade kernel-debuginfo-common-x86_64Upgrade kernel-debuginfoUpgrade python-perfUpgrade kernel-tools-debuginfoUpgrade kernel-livepatch-4.14.301-224.520Upgrade bpftoolUpgrade bpftool-debuginfo | Jun 23, 2025 | May 1, 2025 |
| Debian | — | Upgrade linux | May 5, 2025 | May 1, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade python3-perfUpgrade kernel-abi-stablelistsUpgrade bpftoolUpgrade kernelUpgrade kernel-tools-libsUpgrade kernel-tools | Aug 13, 2025 | Aug 9, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | May 1, 2025 |
| Ubuntu | — | Upgrade linux-riscv-5.15Upgrade linux-oracleUpgrade linux-xilinx-zynqmpUpgrade linux-intel-iot-realtimeUpgrade linux-oracle-5.4Upgrade linux-intel-iotgUpgrade linux-nvidia-tegra-5.15Upgrade linux-nvidiaUpgrade linux-ibmUpgrade linux-bluefieldUpgrade linux-aws-hweUpgrade linux-oracle-5.15Upgrade linux-fipsUpgrade linux-gcp-5.4Upgrade linux-gcp-5.15Upgrade linux-lowlatencyUpgrade linux-aws-5.4Upgrade linux-kvmUpgrade linux-azure-5.15Upgrade linux-realtimeUpgrade linux-gcpUpgrade linux-aws-5.15Upgrade linux-gkeUpgrade linux-lowlatency-hwe-5.15Upgrade linux-aws-fipsUpgrade linux-gkeopUpgrade linux-iotUpgrade linux-ibm-5.4Upgrade linux-intel-iotg-5.15Upgrade linux-raspi-5.4Upgrade linux-azure-fipsUpgrade linuxUpgrade linux-hweUpgrade linux-hwe-5.15Upgrade linux-gcp-fipsUpgrade linux-azureUpgrade linux-hwe-5.4Upgrade linux-awsUpgrade linux-azure-4.15Upgrade linux-gcp-4.15Upgrade linux-raspiUpgrade linux-azure-5.4 | May 6, 2025 | May 1, 2025 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | May 1, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub