CVE-2025-21997: xsk: fix an integer overflow in xp_create_and_assign_umem()

Published Apr 3, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

xsk: fix an integer overflow in xpcreateandassignumem()

Since the i and pool->chunksize variables are of type 'u32', their product can wrap around and then be cast to 'u64'. This can lead to two different XDP buffers pointing to the same memory area.

Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with SVACE.

Affected Software

13 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=5.16<6.1.132
Linux Linux kernel>=6.2<6.6.85
Linux Linux kernel>=6.7<6.12.21
Linux Linux kernel>=6.13<6.13.9
Linux Linux kernel=6.14-rc1
Linux Linux kernel=6.14-rc2
Linux Linux kernel=6.14-rc3
Linux Linux kernel=6.14-rc4
Linux Linux kernel=6.14-rc5
Linux Linux kernel=6.14-rc6
Linux Linux kernel=6.14-rc7
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Event History

Apr 3, 2025
CVE Published
via MITRE·07:19 AM
Data Sourced
via MITRE·07:19 AM
Description
Data Sourced
via Red Hat·08:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-21997?

CVE-2025-21997 is considered a high-severity vulnerability due to the potential for integer overflow leading to system instability.

2

How do I fix CVE-2025-21997?

To fix CVE-2025-21997, you should update to the latest version of the Linux kernel where the vulnerability has been patched.

3

What systems are affected by CVE-2025-21997?

CVE-2025-21997 affects the Linux kernel, impacting systems that utilize vulnerable versions.

4

What type of vulnerability is CVE-2025-21997?

CVE-2025-21997 is an integer overflow vulnerability in the Linux kernel's xsk module.

5

Can CVE-2025-21997 be exploited remotely?

CVE-2025-21997 may allow local user privileges to escalate, but it is not typically exploited remotely.

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