Linux Kernel XFRM Interface Use-After-Free Vulnerability

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's XFRM interface management. This issue arises when the 'collect_md' property is improperly modified after the interface has been created, leading to a double free error when the network namespace is destroyed. The vulnerability is present in the XFRM subsystem, specifically within the interface management code.

Impact

Exploitation of this vulnerability causes a kernel crash due to a double free error, which can potentially be exploited to execute arbitrary code in the kernel context.

Reproduction

The vulnerability can be reproduced by creating an XFRM interface and setting the 'collect_md' property. Once the interface is established, attempt to change the 'collect_md' setting, which should trigger the vulnerability by causing a use-after-free condition. This can be observed by monitoring the system for a kernel crash, which will be logged as an 'Oops' message, indicating an invalid operation code error, along with a stack trace showing the call sequence that led to the crash.

Remediation

Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been addressed. Instructions for downloading the patched kernel can be found on the official Linux kernel website.

Added: Aug 12, 2025, 4:34 PM
Updated: Aug 12, 2025, 4:34 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
7.7
relevance
0.3
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.