CVE-2023-53080 (GCVE-0-2023-53080)
Vulnerability from cvelistv5
Published
2025-05-02 15:55
Modified
2026-08-05 09:12
Summary
In the Linux kernel, the following vulnerability has been resolved: xsk: Add missing overflow check in xdp_umem_reg The number of chunks can overflow u32. Make sure to return -EINVAL on overflow. Also remove a redundant u32 cast assigning umem->npgs.
Impacted products
Vendor Product Version
Linux Linux Version: bbff2f321a864ee07c9d3d1245af498023146951
Version: bbff2f321a864ee07c9d3d1245af498023146951
Version: bbff2f321a864ee07c9d3d1245af498023146951
Version: bbff2f321a864ee07c9d3d1245af498023146951
Version: bbff2f321a864ee07c9d3d1245af498023146951
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/xdp/xdp_umem.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "580634b03a55f04a3c1968bcbd97736c079c6601",
              "status": "affected",
              "version": "bbff2f321a864ee07c9d3d1245af498023146951",
              "versionType": "git"
            },
            {
              "lessThan": "3cfc3564411acf96bf2fb791f706a1aa4f872c1d",
              "status": "affected",
              "version": "bbff2f321a864ee07c9d3d1245af498023146951",
              "versionType": "git"
            },
            {
              "lessThan": "a069909acc4435eeb41d05ccc03baa447cc01b7e",
              "status": "affected",
              "version": "bbff2f321a864ee07c9d3d1245af498023146951",
              "versionType": "git"
            },
            {
              "lessThan": "bb2e3bfb2a79db0c2057c6f701b782954394c67f",
              "status": "affected",
              "version": "bbff2f321a864ee07c9d3d1245af498023146951",
              "versionType": "git"
            },
            {
              "lessThan": "c7df4813b149362248d6ef7be41a311e27bf75fe",
              "status": "affected",
              "version": "bbff2f321a864ee07c9d3d1245af498023146951",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/xdp/xdp_umem.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.18"
            },
            {
              "lessThan": "4.18",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.177",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.105",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.22",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.2.*",
              "status": "unaffected",
              "version": "6.2.9",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.177",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.105",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.22",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2.9",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.3",
                  "versionStartIncluding": "4.18",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "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-\u003enpgs."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The bug is reached via AF_XDP setsockopt(XDP_UMEM_REG) on a local socket (socket(AF_XDP) \u2192 xsk_setsockopt \u2192 xdp_umem_create \u2192 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-\u003euser_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\u2019s own syscalls (socket/setsockopt/bind and ring operations); no victim action is required.\nS:U - Impact is memory corruption within the host kernel\u2019s AF_XDP/umem subsystem and does not cross a VM, IOMMU, or other security authority boundary.\nC:H - Truncated umem-\u003echunks undersizes pool-\u003eheads 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": {
        "dateUpdated": "2026-08-05T09:12:38.067Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "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"
        }
      ],
      "title": "xsk: Add missing overflow check in xdp_umem_reg",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53080",
    "datePublished": "2025-05-02T15:55:29.825Z",
    "dateReserved": "2025-05-02T15:51:43.549Z",
    "dateUpdated": "2026-08-05T09:12:38.067Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…