CVE-2023-53170 (GCVE-0-2023-53170)

Vulnerability from cvelistv5 – Published: 2025-09-15 14:04 – Updated: 2026-08-05 09:12
VLAI
Title
net: dsa: Removed unneeded of_node_put in felix_parse_ports_node
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.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: de879a016a94a670fafeb3eb03b3d5803d81ab37 , < 7ead10b44b79ce8bfcd51e749d54e009de5f511a (git)
Affected: de879a016a94a670fafeb3eb03b3d5803d81ab37 , < 04499f28b40bfc24f20b0e2331008bb90a54a6cf (git)
Create a notification for this product.
Linux Linux Affected: 6.3
Unaffected: 0 , < 6.3 (semver)
Unaffected: 6.4.5 , ≤ 6.4.* (semver)
Unaffected: 6.5 , ≤ * (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/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",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2023-53170",
      "date": "2026-08-09",
      "epss": "0.00134",
      "percentile": "0.03331"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-53170\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-09-15T14:15:38.823\",\"lastModified\":\"2026-08-04T10:18:56.177\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"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.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/net/dsa/ocelot/felix.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"de879a016a94a670fafeb3eb03b3d5803d81ab37\",\"lessThan\":\"7ead10b44b79ce8bfcd51e749d54e009de5f511a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"de879a016a94a670fafeb3eb03b3d5803d81ab37\",\"lessThan\":\"04499f28b40bfc24f20b0e2331008bb90a54a6cf\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/net/dsa/ocelot/felix.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.3\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.3\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.4.5\",\"lessThanOrEqual\":\"6.4.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.5\",\"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:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"NVD-CWE-Other\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.3\",\"versionEndExcluding\":\"6.4.5\",\"matchCriteriaId\":\"D597240C-C188-4874-88BB-0D8D1B53AFC6\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.5:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"0B3E6E4D-E24E-4630-B00C-8C9901C597B0\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/04499f28b40bfc24f20b0e2331008bb90a54a6cf\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/7ead10b44b79ce8bfcd51e749d54e009de5f511a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:30:05+00:00",
      "cve": "CVE-2023-53170",
      "id": "CVE-2023-53170",
      "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: dsa: Removed unneeded of_node_put in felix_parse_ports_node",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-53170.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-07-25T02:24:31Z",
      "cve": "CVE-2023-53170",
      "id": "CVE-2023-53170",
      "initial_release_date": "2025-09-17T23:29:46Z",
      "product_status:known_affected": "394",
      "product_status:known_not_affected": "271",
      "product_status:recommended": "346",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2023-53170",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2023-53170.json",
      "version": "43"
    }
  }
}



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…