CVE-2025-21997
MediumIn the Linux kernel, the following vulnerability has been resolved: xsk: fix an integer overflow in xp_create_and_assign_umem() Since the i and pool->chunk_size 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.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-190CVE-2025-21997 is a Integer Overflow vulnerability
What is Integer Overflow?
The product performs a calculation that can produce an integer overflow, leading to unexpected values. Learn more on MITRE CWE
Affected versions
Linux kernel versions
5.16
and later are affected. Fixed in
6.1.132,
6.6.85,
6.12.21,
6.13.9,
6.14
and their respective stable series.
References
The following references provide additional information about CVE-2025-21997 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
-
PatchKernel patch commithttps://git.kernel.org/stable/c/130290f44bce0eead2b827302109afc3fe189ddd
-
PatchKernel patch commithttps://git.kernel.org/stable/c/205649d642a5b376724f04f3a5b3586815e43d3b
-
PatchKernel patch commithttps://git.kernel.org/stable/c/559847f56769037e5b2e0474d3dbff985b98083d
Frequently asked questions
-
What is CVE-2025-21997?
CVE-2025-21997 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 , classified as an Integer Overflow flaw (CWE-190) . It affects Linux kernel versions from 5.16 onward and has been patched in 6.1.132, 6.6.85, 6.12.21 and others. CVE-2025-21997 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2025-21997?
CVE-2025-21997 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2025-21997?
Yes — CVE-2025-21997 has been patched. Fixed versions include 6.1.132, 6.6.85, 6.12.21 and others. If you are running Linux kernel 5.16 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-21997 actively exploited?
No — CVE-2025-21997 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Integer Overflow (CWE-190)?
The product performs a calculation that can produce an integer overflow, leading to unexpected values. View CWE-190 on MITRE CWE →