Linux Kernel NULL Pointer Dereference Vulnerability in XFRM Packet Offload Mode

Vulnerability

A vulnerability in the Linux kernel's XFRM (IPsec) processing can lead to a NULL pointer dereference, causing a kernel panic. This issue occurs when packets handled by hardware are offloaded with an unnecessary secpath entry, which is not removed during IP forwarding. As a result, packets re-enter the driver transmission path with xfrm_offload set, leading to a crash. The vulnerability has been observed in the mlx5 driver.

Impact

Exploitation of this vulnerability causes a kernel panic due to a NULL pointer dereference, disrupting system operations and potentially leading to a denial of service.

Reproduction

To reproduce this vulnerability, enable IP forwarding on the system. When packets are processed by hardware through the mlx5 driver, the XFRM offload feature adds a secpath entry to indicate that the packets have already been handled. However, the secpath entry is not removed as it should be, allowing the packets to re-enter the transmission path with xfrm_offload set. This triggers a kernel panic as the system encounters a NULL pointer dereference.

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.