CVE-2025-21808
JSON

7.8high

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

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 before b1bc4a35a04cbeb85b6ef5911ec015baa424989f, from 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 before 557707906dd3e34b8a8c265f664d19f95799937e, from 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 before 5a9eae683d6c36e8a7aa31e5eb8b369e41aa66e1, from 2b3486bc2d237ec345b3942b7be5deabf8c8fed1 before 3595599fa8360bb3c7afa7ee50c810b4a64106ea, 6.3
Not affected: before 6.3, from 6.6.76 up to 6.6.*, from 6.12.13 up to 6.12.*, from 6.13.2 up to 6.13.*, from 6.14 up to *
CVE List
linux linux_kernelfrom 6.3 before 6.6.76, from 6.7 before 6.12.13, from 6.13 before 6.13.2NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net: xdp: No permitir adjuntar programas vinculados al dispositivo en modo genérico Los programas vinculados al dispositivo se utilizan para admitir las kfuncs de metadatos RX. Estas kfuncs son específicas del controlador y dependen del contexto del controlador para leer los metadatos. Esto significa que no pueden funcionar en modo XDP genérico. Sin embargo, no hay ninguna verificación para no permitir que dichos programas se adjunten en modo genérico, en cuyo caso las kfuncs de metadatos se llamarán en un contexto no válido, lo que provocará fallas. Solucione esto agregando una verificación para no permitir adjuntar programas vinculados al dispositivo en modo genérico.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21808 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-21808 changed 2026-10-15Public domain