# CVE-2025-21808: net: xdp: Disallow attaching device-bound programs in generic mode

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-02-27T20:01:00.328Z
- Modified: 2026-10-15T22:18:08.900Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 6.3 before 6.6.76; from 6.7 before 6.12.13; from 6.13 before 6.13.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/b1bc4a35a04cbeb85b6ef5911ec015baa424989f> (patch)
- <https://git.kernel.org/stable/c/557707906dd3e34b8a8c265f664d19f95799937e> (patch)
- <https://git.kernel.org/stable/c/5a9eae683d6c36e8a7aa31e5eb8b369e41aa66e1> (patch)
- <https://git.kernel.org/stable/c/3595599fa8360bb3c7afa7ee50c810b4a64106ea> (patch)

## Sources

- CVE List: [CVE-2025-21808](https://www.cve.org/CVERecord?id=CVE-2025-21808), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-21808](https://nvd.nist.gov/vuln/detail/CVE-2025-21808), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-21808 · Whole record: https://cve.day/CVE-2025-21808.json · Rebuilt by cve.day 2026-11-25T22:58:54.612Z
