xsk: fix an integer overflow in xp_create_and_assign_umem()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.132, 6.12.21, 6.13.9, 6.6.85
- CVEs
- CVE-2025-21997
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 18:17 UTC · Revision 1
Source evidence
xsk: fix an integer overflow in xp_create_and_assign_umem()
core-osv · Original sourcePublished 3 Apr 2025, 07:19 UTC
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.
osv:CVE-2025-21997
Kernel
Fixed versions: 6.1.132, 6.6.85, 6.12.21, 6.13.9
Complete source record
{
"id": "a528836a4c2fbc670014170d5c59700fa122f8af3223dbb44c51e408aeed00e3",
"url": "https://osv.dev/vulnerability/CVE-2025-21997",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "xsk: fix an integer overflow in xp_create_and_assign_umem()",
"summary": "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.",
"evidence": "osv:CVE-2025-21997",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.132",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.85",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.21",
"evidence": "/affected/1/ranges"
},
{
"value": "6.13.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2025-21997",
"aliases": [
"CVE-2025-21997"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "94033cd8e73b8632bab7c8b7bb54caa4f5616db7"
},
{
"fixed": "205649d642a5b376724f04f3a5b3586815e43d3b"
},
{
"fixed": "b7b4be1fa43294b50b22e812715198629806678a"
},
{
"fixed": "130290f44bce0eead2b827302109afc3fe189ddd"
},
{
"fixed": "c7670c197b0f1a8726ad5c87bc2bf001a1fc1bbd"
},
{
"fixed": "559847f56769037e5b2e0474d3dbff985b98083d"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21997.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.132"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.85"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.21"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.13.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21997.json"
}
}
],
"modified": "2026-10-28T02:30:44.692297076Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/130290f44bce0eead2b827302109afc3fe189ddd",
"https://git.kernel.org/stable/c/205649d642a5b376724f04f3a5b3586815e43d3b",
"https://git.kernel.org/stable/c/559847f56769037e5b2e0474d3dbff985b98083d",
"https://git.kernel.org/stable/c/b7b4be1fa43294b50b22e812715198629806678a",
"https://git.kernel.org/stable/c/c7670c197b0f1a8726ad5c87bc2bf001a1fc1bbd",
"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21997.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-21997",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21997.json"
}
},
"related_cves": [
{
"value": "CVE-2025-21997",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 512650,
"published_at": "2025-04-03T07:19:00.583+00:00"
}