All reports
Medium

kernel: net: xdp: Disallow attaching device-bound programs in generic mode

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-21808

Probability of exploitation in the next 30 days: 0.20%

FIRST EPSS · 2026-11-22

Description

In the Linux kernel, the following vulnerability has been resolved: net: xdp: Disallow attaching device-bound programs in generic mode Device-bound programs are used to support RX metadata kfuncs. These kfuncs are driver-specific and rely on the driver context to read the metadata. This means they can't work in generic XDP mode. However, there is no check to disallow such programs from being attached in generic mode, in which case the metadata kfuncs will be called in an invalid context, leading to crashes. Fix this by adding a check to disallow attaching device-bound programs in generic mode.

A flaw was found in the Linux kernel. A privileged local user can trigger a Denial of Service (DoS) by attaching a device-bound network program in generic eXpress Data Path (XDP) mode. Because the kernel fails to validate program compatibility with generic mode, driver functions are executed in an invalid context, leading to a system crash.