{"id":"CVE-2023-53170","state":"PUBLISHED","title":"net: dsa: Removed unneeded of_node_put in felix_parse_ports_node","description":"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.","publishedAt":"2025-09-15T14:04:03.446Z","updatedAt":"2026-08-05T09:12:54.214Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"de879a016a94a670fafeb3eb03b3d5803d81ab37","status":"affected","lessThan":"7ead10b44b79ce8bfcd51e749d54e009de5f511a","versionType":"git"},{"version":"de879a016a94a670fafeb3eb03b3d5803d81ab37","status":"affected","lessThan":"04499f28b40bfc24f20b0e2331008bb90a54a6cf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/dsa/ocelot/felix.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.3","versionType":"semver"},{"version":"6.4.5","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/dsa/ocelot/felix.c"]}],"references":["https://git.kernel.org/stable/c/7ead10b44b79ce8bfcd51e749d54e009de5f511a","https://git.kernel.org/stable/c/04499f28b40bfc24f20b0e2331008bb90a54a6cf"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53170.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53170","state":"PUBLISHED","datePublished":"2025-09-15T14:04:03.446Z","dateUpdated":"2026-08-05T09:12:54.214Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-15T13:59:19.064Z"},"containers":{"cna":{"title":"net: dsa: Removed unneeded of_node_put in felix_parse_ports_node","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":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"de879a016a94a670fafeb3eb03b3d5803d81ab37","status":"affected","lessThan":"7ead10b44b79ce8bfcd51e749d54e009de5f511a","versionType":"git"},{"version":"de879a016a94a670fafeb3eb03b3d5803d81ab37","status":"affected","lessThan":"04499f28b40bfc24f20b0e2331008bb90a54a6cf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/dsa/ocelot/felix.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.3","versionType":"semver"},{"version":"6.4.5","status":"unaffected","lessThanOrEqual":"6.4.*","versionType":"semver"},{"version":"6.5","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/dsa/ocelot/felix.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7ead10b44b79ce8bfcd51e749d54e009de5f511a"},{"url":"https://git.kernel.org/stable/c/04499f28b40bfc24f20b0e2331008bb90a54a6cf"}],"metrics":[{"cvssV3_1":{"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"},"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 → dsa_register_switch → felix_setup → 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's 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":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T09:12:54.214Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.4.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.3","versionEndExcluding":"6.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}