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

Published Feb 27, 2025
·
Updated

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 Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=6.3<6.6.76
Linux Linux kernel>=6.7<6.12.13
Linux Linux kernel>=6.13<6.13.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Add/ensure the kernel check that disallows attaching device-bound programs when running in generic XDP mode (so device-bound metadata kfuncs are not called in generic mode and cannot crash).

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

Event History

Feb 27, 2025
CVE Published
via MITRE·08:01 PM
Data Sourced
via MITRE·08:01 PM
DescriptionSeverity
Data Sourced
via NVD·08:16 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-21808?

CVE-2025-21808 has been classified as having a moderate severity level.

2

How do I fix CVE-2025-21808?

To mitigate CVE-2025-21808, update to the latest version of the Linux kernel where the vulnerability has been resolved.

3

What systems are affected by CVE-2025-21808?

CVE-2025-21808 affects the Linux kernel, particularly those with device-bound programs using RX metadata kfuncs.

4

What is the impact of CVE-2025-21808?

The impact of CVE-2025-21808 may include vulnerabilities related to the execution of device-bound programs and potential exploitation in generic mode.

5

When was CVE-2025-21808 announced?

CVE-2025-21808 was announced in 2025 as part of ongoing updates to the Linux kernel security measures.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203