CVE-2022-49667
📋 TL;DR
This is a use-after-free vulnerability in the Linux kernel's bonding driver that occurs when unbinding a slave interface in 802.3ad (LACP) mode. It allows attackers with local access to potentially crash the kernel or execute arbitrary code. Systems using Linux kernel bonding with 802.3ad mode are affected.
💻 Affected Systems
- Linux kernel
📦 What is this software?
Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →⚠️ Risk & Real-World Impact
Worst Case
Kernel crash leading to denial of service, or potential privilege escalation and arbitrary code execution in kernel context.
Likely Case
Kernel panic and system crash causing denial of service.
If Mitigated
No impact if bonding is not used or 802.3ad mode is disabled.
🎯 Exploit Status
Requires local access and ability to manipulate network bonding interfaces. Exploitation would require understanding of kernel memory management.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Fixed in kernel commits: 050133e1aa2c, 2765749def47, 63b2fe509f69, 893825289ba8, a853b7a3a9fd
Vendor Advisory: https://git.kernel.org/stable/c/050133e1aa2cb49bb17be847d48a4431598ef562
Restart Required: Yes
Instructions:
1. Update Linux kernel to version containing the fix commits. 2. Reboot the system to load the new kernel. 3. Verify the fix is applied by checking kernel version.
🔧 Temporary Workarounds
Disable 802.3ad bonding mode
allSwitch bonding to a different mode that doesn't use 802.3ad/LACP
ip link set bond0 down
echo "mode=balance-rr" > /sys/class/net/bond0/bonding/mode
ip link set bond0 up
Disable bonding entirely
allRemove bonding configuration if not required
systemctl stop NetworkManager
rm /etc/sysconfig/network-scripts/ifcfg-bond*
systemctl start NetworkManager
🧯 If You Can't Patch
- Avoid unbinding slave interfaces from 802.3ad bond groups
- Monitor systems for kernel panics related to bonding driver
🔍 How to Verify
Check if Vulnerable:
Check if bonding is configured with 802.3ad mode: cat /proc/net/bonding/bond0 | grep 'Bonding Mode'
Check Version:
uname -r
Verify Fix Applied:
Check kernel version contains fix commits: uname -r and verify with distribution patch notes
📡 Detection & Monitoring
Log Indicators:
- Kernel panic messages
- KASAN reports of use-after-free in bond_3ad_state_machine_handler
- System crashes when modifying network bonding
Network Indicators:
- Unexpected network interface failures
- Bonding interface degradation
SIEM Query:
event_source="kernel" AND (message CONTAINS "bond_3ad" OR message CONTAINS "KASAN: use-after-free")
🔗 References
- https://git.kernel.org/stable/c/050133e1aa2cb49bb17be847d48a4431598ef562
- https://git.kernel.org/stable/c/2765749def4765c5052a4c66445cf4c96fcccdbc
- https://git.kernel.org/stable/c/63b2fe509f69b90168a75e04e14573dccf7984e6
- https://git.kernel.org/stable/c/893825289ba840afd86bfffcb6f7f363c73efff8
- https://git.kernel.org/stable/c/a853b7a3a9fd1d74a4ccdd9cd73512b7dace2f1e
- https://git.kernel.org/stable/c/b90ac60303063a43e17dd4aec159067599d255e6
- https://git.kernel.org/stable/c/ef0af7d08d26c5333ff4944a559279464edf6f15
- https://git.kernel.org/stable/c/f162f7c348fa2a5555bafdb5cc890b89b221e69c