CVE-2023-53170 (GCVE-0-2023-53170)
Vulnerability from cvelistv5
Published
2025-09-15 14:04
Modified
2026-08-05 09:12
Summary
In the Linux kernel, the following vulnerability has been resolved: net: dsa: Removed unneeded of_node_put in felix_parse_ports_node Remove unnecessary of_node_put from the continue path to prevent child node from being released twice, which could avoid resource leak or other unexpected issues.
Impacted products
Vendor Product Version
Linux Linux Version: de879a016a94a670fafeb3eb03b3d5803d81ab37
Version: de879a016a94a670fafeb3eb03b3d5803d81ab37
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/dsa/ocelot/felix.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "7ead10b44b79ce8bfcd51e749d54e009de5f511a",
              "status": "affected",
              "version": "de879a016a94a670fafeb3eb03b3d5803d81ab37",
              "versionType": "git"
            },
            {
              "lessThan": "04499f28b40bfc24f20b0e2331008bb90a54a6cf",
              "status": "affected",
              "version": "de879a016a94a670fafeb3eb03b3d5803d81ab37",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/dsa/ocelot/felix.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.3"
            },
            {
              "lessThan": "6.3",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.4.*",
              "status": "unaffected",
              "version": "6.4.5",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.5",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.4.5",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.5",
                  "versionStartIncluding": "6.3",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: Removed unneeded of_node_put in felix_parse_ports_node\n\nRemove unnecessary of_node_put from the continue path to prevent\nchild node from being released twice, which could avoid resource\nleak or other unexpected issues."
        }
      ],
      "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 in felix_parse_ports_node during DSA switch setup, reached only via local PCI/platform probe (felix_pci_probe/ocelot_ext_probe \u2192 dsa_register_switch \u2192 felix_setup \u2192 felix_parse_dt). There is no network or packet path to this DT-parsing code.\nAC:L - On affected VSC7512 deployments (ports with OCELOT_PORT_MODE_NONE in the vulnerable window) whose DT still lists those ports with a phy-mode, the extra of_node_put on the continue path runs deterministically every probe with no race or attacker-uncontrollable timing requirement.\nPR:L - The double put occurs automatically during boot-time driver probe on that hardware/DT configuration with no capability check on the parse path; per the higher-severity reading used for similar probe-time of_node_put underflow bugs, a basic local user is treated as sufficient rather than requiring real root to create the condition.\nUI:N - Probe and DT port parsing run as part of normal driver initialization; no victim action such as mounting a filesystem or opening a device is required.\nS:U - The corrupted object is a kernel device_node/kobject and any resulting underflow or use-after-free remains inside the kernel\u0027s own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The unbalanced of_node_put drives the device_node kobject to refcount zero, producing a zombie kobject (and on OF_DYNAMIC/overlay platforms a free-while-referenced device_node), which is a use-after-free read primitive; of_node_release also dump_stacks kernel addresses. Use-after-free is scored High for confidentiality.\nI:H - A device_node/kobject left at refcount zero or freed while still linked in the tree is a heap-spray target whose fields can be overwritten, converting the underflow into an arbitrary-write and control-flow hijack primitive. Use-after-free is scored High for integrity.\nA:H - The second put hits refcount_warn_saturate() (\"refcount_t: underflow; use-after-free\"), which is fatal under panic_on_warn, and the resulting corrupted/zombie kobject causes kernel oopses even when not fully exploited."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T09:12:54.214Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/7ead10b44b79ce8bfcd51e749d54e009de5f511a"
        },
        {
          "url": "https://git.kernel.org/stable/c/04499f28b40bfc24f20b0e2331008bb90a54a6cf"
        }
      ],
      "title": "net: dsa: Removed unneeded of_node_put in felix_parse_ports_node",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53170",
    "datePublished": "2025-09-15T14:04:03.446Z",
    "dateReserved": "2025-09-15T13:59:19.064Z",
    "dateUpdated": "2026-08-05T09:12:54.214Z",
    "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…