GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2023-54240 (GCVE-0-2023-54240)

Vulnerability from cvelistv5 – Published: 2025-12-30 12:11 – Updated: 2026-05-11 19:58
VLAI
Title
net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()
Summary
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all() rule_locs 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 rule_locs to avoid NULL pointer dereference.
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd , < 7776591e5ae2befff86579f68916a171971c6aab (git)
Affected: 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd , < 751b2e22a188b0c306029d094da29b6b8de31430 (git)
Affected: 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd , < 653fbddbdfc6673bba01b13dae5a4384ad8f92ec (git)
Affected: 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd , < 75f2de75c1182e80708c932418e4895dbc88b68f (git)
Affected: 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd , < 072324cfab9b96071c0782f51f53cc5aea1e9d5b (git)
Affected: 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd , < ff5faed5f5487b0fd2b640ba1304f82a5ebaab42 (git)
Affected: 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd , < fe0195fe48f85182bc7e7eabcad925bd3cbc10f5 (git)
Affected: 7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd , < e4c79810755f66c9a933ca810da2724133b1165a (git)
guessed Create a notification for this product.
Linux Linux Affected: 4.9
Unaffected: 0 , < 4.9 (semver)
Unaffected: 4.14.326 , ≤ 4.14.* (semver)
Unaffected: 4.19.295 , ≤ 4.19.* (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)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mediatek/mtk_eth_soc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "7776591e5ae2befff86579f68916a171971c6aab",
              "status": "affected",
              "version": "7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd",
              "versionType": "git"
            },
            {
              "lessThan": "751b2e22a188b0c306029d094da29b6b8de31430",
              "status": "affected",
              "version": "7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd",
              "versionType": "git"
            },
            {
              "lessThan": "653fbddbdfc6673bba01b13dae5a4384ad8f92ec",
              "status": "affected",
              "version": "7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd",
              "versionType": "git"
            },
            {
              "lessThan": "75f2de75c1182e80708c932418e4895dbc88b68f",
              "status": "affected",
              "version": "7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd",
              "versionType": "git"
            },
            {
              "lessThan": "072324cfab9b96071c0782f51f53cc5aea1e9d5b",
              "status": "affected",
              "version": "7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd",
              "versionType": "git"
            },
            {
              "lessThan": "ff5faed5f5487b0fd2b640ba1304f82a5ebaab42",
              "status": "affected",
              "version": "7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd",
              "versionType": "git"
            },
            {
              "lessThan": "fe0195fe48f85182bc7e7eabcad925bd3cbc10f5",
              "status": "affected",
              "version": "7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd",
              "versionType": "git"
            },
            {
              "lessThan": "e4c79810755f66c9a933ca810da2724133b1165a",
              "status": "affected",
              "version": "7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mediatek/mtk_eth_soc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.9"
            },
            {
              "lessThan": "4.9",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.326",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.295",
              "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": "4.14.326",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.295",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.257",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.195",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.132",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.54",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.5.4",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6",
                  "versionStartIncluding": "4.9",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()\n\nrule_locs 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\nrule_locs to avoid NULL pointer dereference."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:58:09.830Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/7776591e5ae2befff86579f68916a171971c6aab"
        },
        {
          "url": "https://git.kernel.org/stable/c/751b2e22a188b0c306029d094da29b6b8de31430"
        },
        {
          "url": "https://git.kernel.org/stable/c/653fbddbdfc6673bba01b13dae5a4384ad8f92ec"
        },
        {
          "url": "https://git.kernel.org/stable/c/75f2de75c1182e80708c932418e4895dbc88b68f"
        },
        {
          "url": "https://git.kernel.org/stable/c/072324cfab9b96071c0782f51f53cc5aea1e9d5b"
        },
        {
          "url": "https://git.kernel.org/stable/c/ff5faed5f5487b0fd2b640ba1304f82a5ebaab42"
        },
        {
          "url": "https://git.kernel.org/stable/c/fe0195fe48f85182bc7e7eabcad925bd3cbc10f5"
        },
        {
          "url": "https://git.kernel.org/stable/c/e4c79810755f66c9a933ca810da2724133b1165a"
        }
      ],
      "title": "net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-54240",
    "datePublished": "2025-12-30T12:11:29.039Z",
    "dateReserved": "2025-12-30T12:06:44.509Z",
    "dateUpdated": "2026-05-11T19:58:09.830Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2023-54240",
      "date": "2026-09-17",
      "epss": "0.00205",
      "percentile": "0.10785"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-54240\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-30T13:16:12.540\",\"lastModified\":\"2026-06-17T06:47:04.483\",\"vulnStatus\":\"Deferred\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()\\n\\nrule_locs 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\\nrule_locs to avoid NULL pointer dereference.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\\n\\nnet: ethernet: mtk_eth_soc: correcci\u00f3n de posible desreferencia de puntero NULL en mtk_hwlro_get_fdir_all()\\n\\nrule_locs se asigna en ethtool_get_rxnfc y el tama\u00f1o es determinado por rule_cnt del espacio de usuario. Por lo tanto, rule_cnt debe ser verificado antes de usar rule_locs para evitar la desreferencia de puntero NULL.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/net/ethernet/mediatek/mtk_eth_soc.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd\",\"lessThan\":\"7776591e5ae2befff86579f68916a171971c6aab\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd\",\"lessThan\":\"751b2e22a188b0c306029d094da29b6b8de31430\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd\",\"lessThan\":\"653fbddbdfc6673bba01b13dae5a4384ad8f92ec\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd\",\"lessThan\":\"75f2de75c1182e80708c932418e4895dbc88b68f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd\",\"lessThan\":\"072324cfab9b96071c0782f51f53cc5aea1e9d5b\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd\",\"lessThan\":\"ff5faed5f5487b0fd2b640ba1304f82a5ebaab42\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd\",\"lessThan\":\"fe0195fe48f85182bc7e7eabcad925bd3cbc10f5\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"7aab747e5563ecbc9f3cb64ddea13fe7b9fee2bd\",\"lessThan\":\"e4c79810755f66c9a933ca810da2724133b1165a\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/net/ethernet/mediatek/mtk_eth_soc.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"4.9\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"4.9\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"4.14.326\",\"lessThanOrEqual\":\"4.14.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"4.19.295\",\"lessThanOrEqual\":\"4.19.*\",\"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\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/072324cfab9b96071c0782f51f53cc5aea1e9d5b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/653fbddbdfc6673bba01b13dae5a4384ad8f92ec\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/751b2e22a188b0c306029d094da29b6b8de31430\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/75f2de75c1182e80708c932418e4895dbc88b68f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7776591e5ae2befff86579f68916a171971c6aab\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e4c79810755f66c9a933ca810da2724133b1165a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/fe0195fe48f85182bc7e7eabcad925bd3cbc10f5\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/ff5faed5f5487b0fd2b640ba1304f82a5ebaab42\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:14:04+00:00",
      "cve": "CVE-2023-54240",
      "id": "CVE-2023-54240",
      "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: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-54240.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-07T16:43:17Z",
      "cve": "CVE-2023-54240",
      "id": "CVE-2023-54240",
      "initial_release_date": "2025-12-31T00:27:44Z",
      "product_status:known_affected": "688",
      "product_status:known_not_affected": "163",
      "product_status:recommended": "212",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2023-54240",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2023-54240.json",
      "version": "36"
    }
  }
}



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…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…