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