CVE-2023-53495 (GCVE-0-2023-53495)

Vulnerability from cvelistv5 – Published: 2025-10-01 11:45 – Updated: 2026-08-05 09:14
VLAI
Title
net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()
Summary
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc() rules is allocated in ethtool_get_rxnfc and the size is determined by rule_cnt from user space. So rule_cnt needs to be check before using rules to avoid OOB writing or NULL pointer dereference.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 90b509b39ac9b09be88eb641c7a3abd8de06b698 , < ba6673824efa3dc198b04a54e69dce480066d7d9 (git)
Affected: 90b509b39ac9b09be88eb641c7a3abd8de06b698 , < 61054a8ddb176b155a8f2bacdfefb3727187f5d9 (git)
Affected: 90b509b39ac9b09be88eb641c7a3abd8de06b698 , < 5bb09dddc724c5f7c4dc6dd3bfebd685eecd93e8 (git)
Affected: 90b509b39ac9b09be88eb641c7a3abd8de06b698 , < 349638f7e5d3c7d328565587bb7b0454bbee02e2 (git)
Affected: 90b509b39ac9b09be88eb641c7a3abd8de06b698 , < 625b70d31dd4df4b96b3ddcbe251debb33bd67f5 (git)
Affected: 90b509b39ac9b09be88eb641c7a3abd8de06b698 , < 51fe0a470543f345e3c62b6798929de3ddcedc1d (git)
Create a notification for this product.
Linux Linux Affected: 5.2
Unaffected: 0 , < 5.2 (semver)
Unaffected: 5.4.257 , ≤ 5.4.* (semver)
Unaffected: 5.10.195 , ≤ 5.10.* (semver)
Unaffected: 5.15.132 , ≤ 5.15.* (semver)
Unaffected: 6.1.54 , ≤ 6.1.* (semver)
Unaffected: 6.5.4 , ≤ 6.5.* (semver)
Unaffected: 6.6 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "ba6673824efa3dc198b04a54e69dce480066d7d9",
              "status": "affected",
              "version": "90b509b39ac9b09be88eb641c7a3abd8de06b698",
              "versionType": "git"
            },
            {
              "lessThan": "61054a8ddb176b155a8f2bacdfefb3727187f5d9",
              "status": "affected",
              "version": "90b509b39ac9b09be88eb641c7a3abd8de06b698",
              "versionType": "git"
            },
            {
              "lessThan": "5bb09dddc724c5f7c4dc6dd3bfebd685eecd93e8",
              "status": "affected",
              "version": "90b509b39ac9b09be88eb641c7a3abd8de06b698",
              "versionType": "git"
            },
            {
              "lessThan": "349638f7e5d3c7d328565587bb7b0454bbee02e2",
              "status": "affected",
              "version": "90b509b39ac9b09be88eb641c7a3abd8de06b698",
              "versionType": "git"
            },
            {
              "lessThan": "625b70d31dd4df4b96b3ddcbe251debb33bd67f5",
              "status": "affected",
              "version": "90b509b39ac9b09be88eb641c7a3abd8de06b698",
              "versionType": "git"
            },
            {
              "lessThan": "51fe0a470543f345e3c62b6798929de3ddcedc1d",
              "status": "affected",
              "version": "90b509b39ac9b09be88eb641c7a3abd8de06b698",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.2"
            },
            {
              "lessThan": "5.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.257",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.195",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.132",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.54",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.5.*",
              "status": "unaffected",
              "version": "6.5.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.6",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.257",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.195",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.132",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.54",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.5.4",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()\n\nrules is allocated in ethtool_get_rxnfc and the size is determined by\nrule_cnt from user space. So rule_cnt needs to be check before using\nrules to avoid OOB writing or NULL pointer dereference."
        }
      ],
      "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 vulnerability is reached through the `SIOCETHTOOL` ioctl on a local socket (`dev_ioctl` \u2192 `dev_ethtool` \u2192 `mvpp2_ethtool_get_rxnfc`), requiring a local process on the system. No remote or adjacent-network input reaches this code path.\nAC:L - The attacker fully controls `info.rule_cnt` and can deterministically choose the undersized (or NULL) buffer; there is no race, no secret to guess, and no memory-layout dependency, and `queue_mode` defaults to the multi-queue mode that enables the path. The only precondition is a persistent, standard ntuple flow-steering configuration, after which the attack succeeds 100% of the time and can be repeated at will.\nPR:L - `ETHTOOL_GRXCLSRLALL` is explicitly listed in `__dev_ethtool()`\u0027s \"Allow some commands to be done by anyone\" whitelist, so it bypasses the `ns_capable(net-\u003euser_ns, CAP_NET_ADMIN)` check \u2014 any unprivileged local user, including one confined to a sandbox or container, can invoke it. Only a basic local account is needed, not root or CAP_NET_ADMIN.\nUI:N - The attacker performs the entire attack with a single ioctl from their own process; no victim action is required at attack time. The pre-existing ntuple rule configuration is ambient system state, not an interaction the attacker must induce.\nS:U - The out-of-bounds write corrupts kernel slab memory within the same kernel security authority, and the resulting RTNL deadlock/panic affects the same OS instance. No VM, IOMMU, or sandbox boundary is crossed.\nC:H - This is a heap out-of-bounds write into adjacent `kmalloc-8`/`kmalloc-16` objects reachable by any unprivileged user, and such slab corruption \u2014 including of SLUB freelist pointers and neighbouring length/index fields \u2014 can be groomed via userspace heap spraying into a kernel memory disclosure primitive. Per kernel scoring guidance, memory corruption leverageable for info disclosure is scored High.\nI:H - `rules[loc++] = i` writes up to 16 bytes into an attacker-sized 4/8/12-byte allocation, a genuine out-of-bounds slab write that lets the attacker overwrite fields of adjacent heap objects. Out-of-bounds writes are scored High as they are the classic basis for control-flow hijacking and privilege escalation.\nA:H - With `rule_cnt = 0` the driver writes through a NULL `rule_buf`, causing an immediate kernel oops, and the OOB variant corrupts slab freelists leading to later crashes. Because `dev_ethtool()` holds `rtnl_lock()` across the call, the oops leaves RTNL permanently held \u2014 wedging all networking configuration system-wide with unkillable D-state tasks, or panicking outright on the `panic_on_oops` appliance/embedded systems typical of mvpp2 hardware."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T09:14:27.541Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/ba6673824efa3dc198b04a54e69dce480066d7d9"
        },
        {
          "url": "https://git.kernel.org/stable/c/61054a8ddb176b155a8f2bacdfefb3727187f5d9"
        },
        {
          "url": "https://git.kernel.org/stable/c/5bb09dddc724c5f7c4dc6dd3bfebd685eecd93e8"
        },
        {
          "url": "https://git.kernel.org/stable/c/349638f7e5d3c7d328565587bb7b0454bbee02e2"
        },
        {
          "url": "https://git.kernel.org/stable/c/625b70d31dd4df4b96b3ddcbe251debb33bd67f5"
        },
        {
          "url": "https://git.kernel.org/stable/c/51fe0a470543f345e3c62b6798929de3ddcedc1d"
        }
      ],
      "title": "net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53495",
    "datePublished": "2025-10-01T11:45:46.877Z",
    "dateReserved": "2025-10-01T11:39:39.403Z",
    "dateUpdated": "2026-08-05T09:14:27.541Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2023-53495",
      "date": "2026-08-09",
      "epss": "0.00153",
      "percentile": "0.04999"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-53495\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-10-01T12:15:52.803\",\"lastModified\":\"2026-08-04T10:19:09.393\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()\\n\\nrules is allocated in ethtool_get_rxnfc and the size is determined by\\nrule_cnt from user space. So rule_cnt needs to be check before using\\nrules to avoid OOB writing or NULL pointer dereference.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"90b509b39ac9b09be88eb641c7a3abd8de06b698\",\"lessThan\":\"ba6673824efa3dc198b04a54e69dce480066d7d9\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"90b509b39ac9b09be88eb641c7a3abd8de06b698\",\"lessThan\":\"61054a8ddb176b155a8f2bacdfefb3727187f5d9\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"90b509b39ac9b09be88eb641c7a3abd8de06b698\",\"lessThan\":\"5bb09dddc724c5f7c4dc6dd3bfebd685eecd93e8\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"90b509b39ac9b09be88eb641c7a3abd8de06b698\",\"lessThan\":\"349638f7e5d3c7d328565587bb7b0454bbee02e2\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"90b509b39ac9b09be88eb641c7a3abd8de06b698\",\"lessThan\":\"625b70d31dd4df4b96b3ddcbe251debb33bd67f5\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"90b509b39ac9b09be88eb641c7a3abd8de06b698\",\"lessThan\":\"51fe0a470543f345e3c62b6798929de3ddcedc1d\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.2\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.2\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.4.257\",\"lessThanOrEqual\":\"5.4.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.195\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.132\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.54\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.5.4\",\"lessThanOrEqual\":\"6.5.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"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\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"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\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-787\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.2\",\"versionEndExcluding\":\"5.4.257\",\"matchCriteriaId\":\"315019E5-F260-4173-9151-F360562FE400\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.5\",\"versionEndExcluding\":\"5.10.195\",\"matchCriteriaId\":\"C385B650-53DB-4BFB-83D1-1D8FADF653EF\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.15.132\",\"matchCriteriaId\":\"5913891D-409A-4EEC-9231-F2EF5A493BC7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"6.1.54\",\"matchCriteriaId\":\"7353B9B4-AFFC-45DE-840E-1A7D2B00E7AD\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.5.4\",\"matchCriteriaId\":\"CA8C8B88-AF36-445D-A228-AD78F3615373\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.6:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"84267A4F-DBC2-444F-B41D-69E15E1BEC97\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/349638f7e5d3c7d328565587bb7b0454bbee02e2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/51fe0a470543f345e3c62b6798929de3ddcedc1d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/5bb09dddc724c5f7c4dc6dd3bfebd685eecd93e8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/61054a8ddb176b155a8f2bacdfefb3727187f5d9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/625b70d31dd4df4b96b3ddcbe251debb33bd67f5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/ba6673824efa3dc198b04a54e69dce480066d7d9\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:14:11+00:00",
      "cve": "CVE-2023-53495",
      "id": "CVE-2023-53495",
      "initial_release_date": "2023-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-53495.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-07-25T02:17:45Z",
      "cve": "CVE-2023-53495",
      "id": "CVE-2023-53495",
      "initial_release_date": "2025-10-01T23:30:12Z",
      "product_status:known_affected": "500",
      "product_status:known_not_affected": "165",
      "product_status:recommended": "346",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2023-53495",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2023-53495.json",
      "version": "47"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…