VDB

CVE-2025-21997

CVE-2025-21997 PUBLISHED CVSS 5.5 MEDIUM

xsk: fix an integer overflow in xp_create_and_assign_umem()

Reported by linux · Published April 3, 2025

In 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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12Amazon Linux6.12.22-27.96.amzn2023
kernel-develAmazon Linux6.1.132-147.221.amzn2023
kernel-modules-extraAmazon Linux6.1.132-147.221.amzn2023
python3-perfAmazon Linux6.1.132-147.221.amzn2023
kernel-livepatch-6.12.22-27.96Amazon Linux1.0-0.amzn2023
kernel-toolsAmazon Linux6.1.132-147.221.amzn2023
perf6.12Amazon Linux6.12.22-27.96.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.132-147.221.amzn2023
kernel-tools-develAmazon Linux6.1.132-147.221.amzn2023
kernel-libbpf-staticAmazon Linux6.1.132-147.221.amzn2023
linux_kernellinux6.14, 6.13.9, 6.12.21, 6.6.85, 6.1.132
LinuxLinuxc7670c197b0f1a8726ad5c87bc2bf001a1fc1bbd, b7b4be1fa43294b50b22e812715198629806678a, 205649d642a5b376724f04f3a5b3586815e43d3b, 130290f44bce0eead2b827302109afc3fe189ddd

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux94033cd8e73b8632bab7c8b7bb54caa4f5616db7, 94033cd8e73b8632bab7c8b7bb54caa4f5616db7, 94033cd8e73b8632bab7c8b7bb54caa4f5616db7
LinuxLinux5.16, 0, 6.1.132
amazon:2023kernel6.120
linuxlinux_kernel5.16, 5.16, 5.16
amazon:2023kernel-devel0
amazon:2023kernel-modules-extra0
amazon:2023python3-perf0
amazon:2023kernel-livepatch-6.12.22-27.960
amazon:2023kernel-tools0
amazon:2023perf6.120
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-tools-devel0
amazon:2023kernel-libbpf-static0
LinuxLinux5.16, 94033cd8e73b8632bab7c8b7bb54caa4f5616db7, 6.6.85
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-headers0
amazon:2023kernel6.12-modules-extra0
amazon:2023perf0
amazon:2023python3-perf6.120
amazon:2023bpftool0

…and 3 more

Timeline

  • Apr 2, 2025 CVE Published
  • Apr 3, 2025 EPSS Score (30 in total, the first dated here)
  • May 2, 2025 Coalition ESS Score (15 in total, the first dated here)
  • Oct 12, 2025 PoC Published (5 in total, the first dated here)
  • Dec 21, 2025 Security Advisory (183 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (164 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-21997
vulnetix vdb fixes CVE-2025-21997

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21997/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›