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

Vulnerability from cvelistv5 – Published: 2025-12-30 12:11 – Updated: 2025-12-30 12:11
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.
Assigner
Impacted products
Vendor Product Version
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)
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)
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": "2025-12-30T12:11:29.039Z",
        "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": "2025-12-30T12:11:29.039Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-54240\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-12-30T13:16:12.540\",\"lastModified\":\"2025-12-31T20:42:43.210\",\"vulnStatus\":\"Awaiting Analysis\",\"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.\"}],\"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\"}]}}"
  }
}


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 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…