{"id":"CVE-2025-21997","state":"PUBLISHED","title":"xsk: fix an integer overflow in xp_create_and_assign_umem()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nxsk: fix an integer overflow in xp_create_and_assign_umem()\n\nSince the i and pool->chunk_size variables are of type 'u32',\ntheir product can wrap around and then be cast to 'u64'.\nThis can lead to two different XDP buffers pointing to the same\nmemory area.\n\nFound by InfoTeCS on behalf of Linux Verification Center\n(linuxtesting.org) with SVACE.","publishedAt":"2025-04-03T07:19:00.583Z","updatedAt":"2026-05-11T21:10:39.027Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94033cd8e73b8632bab7c8b7bb54caa4f5616db7","status":"affected","lessThan":"205649d642a5b376724f04f3a5b3586815e43d3b","versionType":"git"},{"version":"94033cd8e73b8632bab7c8b7bb54caa4f5616db7","status":"affected","lessThan":"b7b4be1fa43294b50b22e812715198629806678a","versionType":"git"},{"version":"94033cd8e73b8632bab7c8b7bb54caa4f5616db7","status":"affected","lessThan":"130290f44bce0eead2b827302109afc3fe189ddd","versionType":"git"},{"version":"94033cd8e73b8632bab7c8b7bb54caa4f5616db7","status":"affected","lessThan":"c7670c197b0f1a8726ad5c87bc2bf001a1fc1bbd","versionType":"git"},{"version":"94033cd8e73b8632bab7c8b7bb54caa4f5616db7","status":"affected","lessThan":"559847f56769037e5b2e0474d3dbff985b98083d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xdp/xsk_buff_pool.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.132","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.85","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.21","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.9","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xdp/xsk_buff_pool.c"]}],"references":["https://git.kernel.org/stable/c/205649d642a5b376724f04f3a5b3586815e43d3b","https://git.kernel.org/stable/c/b7b4be1fa43294b50b22e812715198629806678a","https://git.kernel.org/stable/c/130290f44bce0eead2b827302109afc3fe189ddd","https://git.kernel.org/stable/c/c7670c197b0f1a8726ad5c87bc2bf001a1fc1bbd","https://git.kernel.org/stable/c/559847f56769037e5b2e0474d3dbff985b98083d","https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"],"weaknesses":["CWE-190"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/21xxx/CVE-2025-21997.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-21997","state":"PUBLISHED","datePublished":"2025-04-03T07:19:00.583Z","dateUpdated":"2026-05-11T21:10:39.027Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.801Z"},"containers":{"cna":{"title":"xsk: fix an integer overflow in xp_create_and_assign_umem()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nxsk: fix an integer overflow in xp_create_and_assign_umem()\n\nSince the i and pool->chunk_size variables are of type 'u32',\ntheir product can wrap around and then be cast to 'u64'.\nThis can lead to two different XDP buffers pointing to the same\nmemory area.\n\nFound by InfoTeCS on behalf of Linux Verification Center\n(linuxtesting.org) with SVACE."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94033cd8e73b8632bab7c8b7bb54caa4f5616db7","status":"affected","lessThan":"205649d642a5b376724f04f3a5b3586815e43d3b","versionType":"git"},{"version":"94033cd8e73b8632bab7c8b7bb54caa4f5616db7","status":"affected","lessThan":"b7b4be1fa43294b50b22e812715198629806678a","versionType":"git"},{"version":"94033cd8e73b8632bab7c8b7bb54caa4f5616db7","status":"affected","lessThan":"130290f44bce0eead2b827302109afc3fe189ddd","versionType":"git"},{"version":"94033cd8e73b8632bab7c8b7bb54caa4f5616db7","status":"affected","lessThan":"c7670c197b0f1a8726ad5c87bc2bf001a1fc1bbd","versionType":"git"},{"version":"94033cd8e73b8632bab7c8b7bb54caa4f5616db7","status":"affected","lessThan":"559847f56769037e5b2e0474d3dbff985b98083d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xdp/xsk_buff_pool.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.16","versionType":"semver"},{"version":"6.1.132","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.85","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.21","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.9","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xdp/xsk_buff_pool.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/205649d642a5b376724f04f3a5b3586815e43d3b"},{"url":"https://git.kernel.org/stable/c/b7b4be1fa43294b50b22e812715198629806678a"},{"url":"https://git.kernel.org/stable/c/130290f44bce0eead2b827302109afc3fe189ddd"},{"url":"https://git.kernel.org/stable/c/c7670c197b0f1a8726ad5c87bc2bf001a1fc1bbd"},{"url":"https://git.kernel.org/stable/c/559847f56769037e5b2e0474d3dbff985b98083d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:10:39.027Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.1.132"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.6.85"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.12.21"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.13.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.14"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-10-01T17:11:27.222499Z","id":"CVE-2025-21997","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","type":"CWE","lang":"en","description":"CWE-190 Integer Overflow or Wraparound"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T17:11:29.711Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T19:40:39.282Z"}}]}}}