Critical Vulnerability in Linux Kernel: Bonding Mode XDP Program Check
Summary
CVE-2025-22105: In the Linux kernel, the following vulnerability has been resolved: bonding: check xdp prog when set bond mode Following operations can trigger a warning[1]: ip netns add ns1 ip netns exec ns1 ip link add bond0 type bond... Affects linux versions 6.1.106-1 – 6.9.9-1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interactions. It supports various functionalities, including process management, memory management, and device drivers. This vulnerability specifically affects the bonding feature, which allows multiple network interfaces to be combined for redundancy or increased throughput. The issue arises when changing the bond mode while an XDP (eXpress Data Path) program is attached, leading to potential warnings and instability.
Vulnerability Detail
In the Linux kernel, a vulnerability has been identified in the bonding feature related to the handling of XDP programs. When a user attempts to change the bond mode after attaching an XDP program, it can trigger a warning due to the incompatibility of certain bond modes with native XDP. This situation occurs during the deletion of a network namespace, where the system checks the bond mode and may lead to unexpected behavior or system instability. The warning indicates that the system has encountered an issue that could affect network performance and reliability.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, avoid changing the bond mode after an XDP program has been attached. Instead, detach the XDP program before modifying the bond mode. The commands to do this are as follows: 'ip netns exec ns1 ip link set bond0 xdp off' followed by 'ip netns exec ns1 ip link set bond0 type bond mode <desired_mode>'.
Conclusion
The vulnerability in the Linux kernel regarding bonding mode and XDP program checks poses a risk to network stability and performance. Users are advised to follow the recommended steps to fix the issue and utilize workarounds until a patch can be applied. Regular monitoring for vulnerabilities using tools like Vulert can help maintain system security.
See every vulnerability recorded for linux →
FAQ
The vulnerability can lead to warnings and potential instability in network performance when changing bond modes with XDP programs attached.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.
Yes, users are encouraged to update to the latest patched version of the Linux kernel to resolve this issue.
As a temporary measure, ensure that you do not change the bond mode after attaching an XDP program to avoid triggering warnings.
XDP (eXpress Data Path) is a high-performance packet processing framework in the Linux kernel that allows for fast packet handling at the driver level.
Related vulnerabilities
Recent vulnerabilities recorded for linux.