CVE-2025-21997
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12 | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.132-147.221.amzn2023 |
| kernel-modules-extra | Amazon Linux | 6.1.132-147.221.amzn2023 |
| python3-perf | Amazon Linux | 6.1.132-147.221.amzn2023 |
| kernel-livepatch-6.12.22-27.96 | Amazon Linux | 1.0-0.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.132-147.221.amzn2023 |
| perf6.12 | Amazon Linux | 6.12.22-27.96.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.132-147.221.amzn2023 |
| kernel-tools-devel | Amazon Linux | 6.1.132-147.221.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.132-147.221.amzn2023 |
| linux_kernel | linux | 6.14, 6.13.9, 6.12.21, 6.6.85, 6.1.132 |
| Linux | Linux | c7670c197b0f1a8726ad5c87bc2bf001a1fc1bbd, b7b4be1fa43294b50b22e812715198629806678a, 205649d642a5b376724f04f3a5b3586815e43d3b, 130290f44bce0eead2b827302109afc3fe189ddd |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 94033cd8e73b8632bab7c8b7bb54caa4f5616db7, 94033cd8e73b8632bab7c8b7bb54caa4f5616db7, 94033cd8e73b8632bab7c8b7bb54caa4f5616db7 |
| Linux | Linux | 5.16, 0, 6.1.132 |
| amazon:2023 | kernel6.12 | 0 |
| linux | linux_kernel | 5.16, 5.16, 5.16 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-livepatch-6.12.22-27.96 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| Linux | Linux | 5.16, 94033cd8e73b8632bab7c8b7bb54caa4f5616db7, 6.6.85 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | bpftool | 0 |
…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