{"id":"CVE-2023-53080","state":"PUBLISHED","title":"xsk: Add missing overflow check in xdp_umem_reg","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nxsk: Add missing overflow check in xdp_umem_reg\n\nThe number of chunks can overflow u32. Make sure to return -EINVAL on\noverflow. Also remove a redundant u32 cast assigning umem->npgs.","publishedAt":"2025-05-02T15:55:29.825Z","updatedAt":"2026-10-15T21:41:25.727Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bbff2f321a864ee07c9d3d1245af498023146951","status":"affected","lessThan":"580634b03a55f04a3c1968bcbd97736c079c6601","versionType":"git"},{"version":"bbff2f321a864ee07c9d3d1245af498023146951","status":"affected","lessThan":"3cfc3564411acf96bf2fb791f706a1aa4f872c1d","versionType":"git"},{"version":"bbff2f321a864ee07c9d3d1245af498023146951","status":"affected","lessThan":"a069909acc4435eeb41d05ccc03baa447cc01b7e","versionType":"git"},{"version":"bbff2f321a864ee07c9d3d1245af498023146951","status":"affected","lessThan":"bb2e3bfb2a79db0c2057c6f701b782954394c67f","versionType":"git"},{"version":"bbff2f321a864ee07c9d3d1245af498023146951","status":"affected","lessThan":"c7df4813b149362248d6ef7be41a311e27bf75fe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xdp/xdp_umem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.18","versionType":"semver"},{"version":"5.10.177","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.105","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.22","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.9","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xdp/xdp_umem.c"]}],"references":["https://git.kernel.org/stable/c/580634b03a55f04a3c1968bcbd97736c079c6601","https://git.kernel.org/stable/c/3cfc3564411acf96bf2fb791f706a1aa4f872c1d","https://git.kernel.org/stable/c/a069909acc4435eeb41d05ccc03baa447cc01b7e","https://git.kernel.org/stable/c/bb2e3bfb2a79db0c2057c6f701b782954394c67f","https://git.kernel.org/stable/c/c7df4813b149362248d6ef7be41a311e27bf75fe"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53080.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53080","state":"PUBLISHED","datePublished":"2025-05-02T15:55:29.825Z","dateUpdated":"2026-10-15T21:41:25.727Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-05-02T15:51:43.549Z"},"containers":{"cna":{"title":"xsk: Add missing overflow check in xdp_umem_reg","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nxsk: Add missing overflow check in xdp_umem_reg\n\nThe number of chunks can overflow u32. Make sure to return -EINVAL on\noverflow. Also remove a redundant u32 cast assigning umem->npgs."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"bbff2f321a864ee07c9d3d1245af498023146951","status":"affected","lessThan":"580634b03a55f04a3c1968bcbd97736c079c6601","versionType":"git"},{"version":"bbff2f321a864ee07c9d3d1245af498023146951","status":"affected","lessThan":"3cfc3564411acf96bf2fb791f706a1aa4f872c1d","versionType":"git"},{"version":"bbff2f321a864ee07c9d3d1245af498023146951","status":"affected","lessThan":"a069909acc4435eeb41d05ccc03baa447cc01b7e","versionType":"git"},{"version":"bbff2f321a864ee07c9d3d1245af498023146951","status":"affected","lessThan":"bb2e3bfb2a79db0c2057c6f701b782954394c67f","versionType":"git"},{"version":"bbff2f321a864ee07c9d3d1245af498023146951","status":"affected","lessThan":"c7df4813b149362248d6ef7be41a311e27bf75fe","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xdp/xdp_umem.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.18","versionType":"semver"},{"version":"5.10.177","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.105","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.22","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.9","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/xdp/xdp_umem.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/580634b03a55f04a3c1968bcbd97736c079c6601"},{"url":"https://git.kernel.org/stable/c/3cfc3564411acf96bf2fb791f706a1aa4f872c1d"},{"url":"https://git.kernel.org/stable/c/a069909acc4435eeb41d05ccc03baa447cc01b7e"},{"url":"https://git.kernel.org/stable/c/bb2e3bfb2a79db0c2057c6f701b782954394c67f"},{"url":"https://git.kernel.org/stable/c/c7df4813b149362248d6ef7be41a311e27bf75fe"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached via AF_XDP setsockopt(XDP_UMEM_REG) on a local socket (socket(AF_XDP) → xsk_setsockopt → xdp_umem_create → xdp_umem_reg), not via remote packet processing.\nAC:L - The attacker fully controls umem size and chunk_size; on a large-memory AF_XDP host with sufficient memlock the overflow and subsequent OOB via crafted fill-queue addresses are reliably reproducible with no race or victim-state dependency.\nPR:L - Socket creation only requires ns_capable(net->user_ns, CAP_NET_RAW), which an unprivileged user can obtain in a user+net namespace (unshare -Urn); no init-namespace root is required for the vulnerable registration path.\nUI:N - Exploitation is entirely via the attacker’s own syscalls (socket/setsockopt/bind and ring operations); no victim action is required.\nS:U - Impact is memory corruption within the host kernel’s AF_XDP/umem subsystem and does not cross a VM, IOMMU, or other security authority boundary.\nC:H - Truncated umem->chunks undersizes pool->heads while addrs_cnt remains the full umem size, so xp_alloc indexing via xp_aligned_extract_idx yields out-of-bounds reads of adjacent kernel heap objects.\nI:H - The same heads[] OOB write/use of attacker-influenced xdp_buff_xsk slots is memory corruption that can be leveraged for control-flow hijacking or arbitrary kernel writes.\nA:H - Out-of-bounds heads[] access can oops/panic the kernel, and any such memory-corruption path is scored Availability High."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:12:38.067Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"5.10.177"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"5.15.105"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.1.22"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.2.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.18","versionEndExcluding":"6.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2023-53080","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:33:24.637741Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:41:25.727Z"}}]}}}