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 kernelUpgrade python-perf-debuginfoUpgrade kernel-debuginfo-common-aarch64Upgrade kernel-livepatch-5.15.79-51.138Upgrade perfUpgrade kernel-livepatch-5.10.155-138.670Upgrade kernel-toolsUpgrade perf-debuginfoUpgrade kernel-headersUpgrade kernel-tools-develUpgrade kernel-tools-debuginfoUpgrade python-perfUpgrade bpftoolUpgrade kernel-debuginfoUpgrade kernel-develUpgrade kernel-livepatch-4.14.301-224.520Upgrade bpftool-debuginfoUpgrade kernel-debuginfo-common-x86_64 | Jun 23, 2025 | May 1, 2025 |
| Debian | — | Upgrade linux | May 5, 2025 | May 1, 2025 |
| Huawei Euleros 2_0_sp13 | — | Upgrade kernel-abi-stablelistsUpgrade python3-perfUpgrade kernel-tools-libsUpgrade bpftoolUpgrade kernelUpgrade kernel-tools | Aug 13, 2025 | Aug 9, 2025 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | May 1, 2025 |
| Ubuntu | — | Upgrade linux-kvmUpgrade linux-realtimeUpgrade linux-intel-iotgUpgrade linux-oracleUpgrade linux-lowlatencyUpgrade linux-azure-5.15Upgrade linux-intel-iot-realtimeUpgrade linux-gcp-5.4Upgrade linux-ibmUpgrade linux-nvidiaUpgrade linux-nvidia-tegra-5.15Upgrade linux-lowlatency-hwe-5.15Upgrade linux-aws-5.4Upgrade linux-riscv-5.15Upgrade linux-gcp-5.15Upgrade linux-oracle-5.15Upgrade linux-aws-5.15Upgrade linux-gkeUpgrade linux-gkeopUpgrade linux-fipsUpgrade linux-aws-hweUpgrade linux-xilinx-zynqmpUpgrade linux-oracle-5.4Upgrade linux-aws-fipsUpgrade linux-gcpUpgrade linux-bluefieldUpgrade linux-awsUpgrade linux-raspiUpgrade linux-azure-5.4Upgrade linux-azureUpgrade linux-intel-iotg-5.15Upgrade linux-gcp-fipsUpgrade linux-hwe-5.15Upgrade linux-hweUpgrade linux-ibm-5.4Upgrade linux-raspi-5.4Upgrade linux-azure-4.15Upgrade linuxUpgrade linux-gcp-4.15Upgrade linux-azure-fipsUpgrade linux-iotUpgrade linux-hwe-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