Linux Kernel Bonding Driver Use-After-Free Vulnerability in 802.3ad Aggregation

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's bonding driver, specifically within the 802.3ad aggregation handling. This issue arises when the 'bond_3ad_unbind_slave' function is called, as it can inadvertently access freed memory related to aggregation groups. The vulnerability occurs after a slave is unbound, leaving pointers to deallocated memory, which can lead to undefined behavior or exploitation.

Impact

Exploitation of this vulnerability causes a use-after-free condition, where the system reads from memory that has already been freed, potentially leading to memory corruption or arbitrary code execution.

Reproduction

The vulnerability can be reproduced by creating multiple aggregation groups within the same bond interface. When a slave is unbound from the bond, the 'bond_3ad_unbind_slave' function clears the aggregator but does not update the slave ports list, leaving pointers to freed memory. This can be observed in the KASAN (Kernel Address Sanitizer) logs, which report the use-after-free error.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
0.0
relevance
0.0
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.