PT-2025-51566 · Linux+2 · Linux Kernel+2

Published

2025-10-16

·

Updated

2026-05-07

·

CVE-2025-40350

CVSS v2.0

6.1

Medium

VectorAV:N/AC:H/Au:S/C:P/I:P/A:C
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The Linux kernel contains an issue in the net/mlx5e component related to handling XDP programs and skb (socket buffer) generation. XDP programs can modify the layout of an xdp buff using the bpf xdp adjust tail() and bpf xdp adjust head() functions, which can lead to the driver making incorrect assumptions about the size of the linear data area and fragments. This can result in the generation of erroneous skb or kernel warnings. Specifically, when handling multi-buf XDP, the driver assumes the xdp buff layout remains unchanged, which is not always the case. The issue arises when an XDP program adds linear data using bpf xdp adjust head(), causing the linear data to be ignored, or shrinks non-linear data using bpf xdp adjust tail(), potentially exceeding the actual non-linear data size and triggering a bug. The fix involves recording the original number of fragments, adjusting the end fragment pointer if the number of fragments changes, recalculating the truesize, and building the skb to match the xdp buff layout. Data is pulled only if non-linear data exists, filling the linear part up to 256 bytes.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

RCE

Weakness Enumeration

Related Identifiers

BDU:2026-02966
CVE-2025-40350
OESA-2026-1303
OESA-2026-1304
OESA-2026-1305
OPENSUSE-SU-2026:20145-1
SUSE-SU-2026:0447-1
SUSE-SU-2026:0472-1
SUSE-SU-2026:0587-1
SUSE-SU-2026:20207-1
SUSE-SU-2026:20220-1
SUSE-SU-2026:20228-1
SUSE-SU-2026:20477-1
SUSE-SU-2026:20498-1
SUSE-SU-2026:20845-1
SUSE-SU-2026:20876-1
USN-8029-1
USN-8029-2
USN-8029-3
USN-8030-1
USN-8048-1
USN-8095-1
USN-8095-2
USN-8095-3
USN-8095-4
USN-8095-5
USN-8100-1
USN-8125-1
USN-8126-1
USN-8165-1
USN-8261-1

Affected Products

Linuxmint
Linux Kernel
Ubuntu