CVE-2023-52679
published high CVSS 3.1 · 7.8of: Fix double free in of_parse_phandle_with_args_map
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxbd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < 26b4d702c44f9e5cf3c5c001ae619a4a001889db · bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < a0a061151a6200c13149dbcdb6c065203c8425d2 · bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < d5f490343c77e6708b6c4aa7dbbfbcbb9546adea · bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < 4541004084527ce9e95a818ebbc4e6b293ffca21 · bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < b9d760dae5b10e73369b769073525acd7b3be2bd · bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8 · bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < cafa992134124e785609a406da4ff2b54052aff7 · bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < 4dde83569832f9377362e50f7748463340c5db6b · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.17 (affected) · 0 to < 4.17 (unaffected · semver) · 4.19.306 through 4.19.* (unaffected · semver) · 5.4.268 through 5.4.* (unaffected · semver) · 5.10.209 through 5.10.* (unaffected · semver) · 5.15.148 through 5.15.* (unaffected · semver) · 6.1.75 through 6.1.* (unaffected · semver) · 6.6.14 through 6.6.* (unaffected · semver) · 6.7.2 through 6.7.* (unaffected · semver) · 6.8 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2024-048 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2024-036 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2024-059 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| Debian | buster | linux | Advisory build | 4.19.316-1 | DLA-3840-1 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-519 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-kvm | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-kvm | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.16.1.rt7.357.el8_10 | ALSA-2024:5102 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.16.1.el8_10 | ALSA-2024:5101 |
| Debian | buster | linux-5.10 | Advisory build | 5.10.209-2~deb10u1 | DLA-3841-1 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernelx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-abi-stablelistsx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-corex86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-cross-headersaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-cross-headersx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-debugx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-debug-corex86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-debug-develx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-debug-modulesx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-debug-modules-extrax86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-develx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-docx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-headersaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-headersx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-modulesx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-modules-extrax86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-toolsaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-toolsx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-tools-libsaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-tools-libsx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-tools-libs-develaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | kernel-tools-libs-develx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | perfaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | perfx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | python3-perfaarch64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 8 | python3-perfx86_64 | Advisory build | 0:4.18.0-553.16.1.el8_10 | ELSA-2024-5101 |
| Oracle Linux | 9 | bpftoolaarch64 | Advisory build | 0:7.4.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | bpftoolx86_64 | Advisory build | 0:7.4.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernelx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-abi-stablelistsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-cross-headersaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-cross-headersx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debugx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modulesx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modules-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-modules-extrax86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-debug-uki-virtx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-devel-matchedx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-docx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-headersaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-headersx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modulesx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modules-corex86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-modules-extrax86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-toolsaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-toolsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libsaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libs-develaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-tools-libs-develx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-uki-virtx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | kernel-uki-virt-addonsx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | libperfaarch64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
| Oracle Linux | 9 | libperfx86_64 | Advisory build | 0:5.14.0-503.11.1.el9_5 | ELSA-2024-9315 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: of: Fix double free in of_parse_phandle_with_args_map In of_parse_phandle_with_args_map() the inner loop that iterates through the map entries calls of_node_put(new) to free the reference acquired by the previous iteration of the inner loop. This assumes that the value of "new" is NULL on the first iteration of the inner loop. Make sure that this is true in all iterations of the outer loop by setting "new" to NULL after its value is assigned to "cur". Extend the unittest to detect the double free and add an additional test case that actually triggers this path.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The only production caller is of_get_named_gpiod_flags() in gpiolib-of.c during local Device Tree GPIO phandle/nexus parsing; this is not reachable via network packets, adjacent-link protocols, or a physical bus endpoint. AC:L - On a system whose live DT contains a multi-level gpio-map nexus chain, a single GPIO lookup deterministically takes the buggy outer/inner-loop path and double-puts the intermediate node, with no race or other attacker-uncontrollable timing. PR:L - Under the higher-severity local interpretation, an unprivileged local user on an affected OF/OF_DYNAMIC system (e.g., embedded boards using gpio-map nexus/overlays) can benefit from the resulting of_node refcount corruption/UAF without needing init-namespace root or user-namespace capabilities. UI:N - No separate victim action is required; GPIO phandle parsing runs during driver/OF consumer lookup on the crafted or already-present nexus topology without the attacker needing another user to open a file or click anything. S:U - Impact is confined to host-kernel of_node lifetime and heap corruption within the same security authority; this is not a VM escape, IOMMU bypass, or other cross-boundary break. C:H - The bug is a double of_node_put/refcount UAF on device_node objects, which per kernel CVSS guidance enables heap reuse and arbitrary kernel memory disclosure. I:H - Double-free/UAF of of_node heap objects can be leveraged via heap spraying for overlapping objects and control-flow hijacking, enabling arbitrary kernel write/code execution. A:H - The unbalanced of_node_put path causes refcount underflow, of_node_release errors, and kernel oops/panic even when not fully exploited for code execution.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < 26b4d702c44f9e5cf3c5c001ae619a4a001889db (affected · git)bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < a0a061151a6200c13149dbcdb6c065203c8425d2 (affected · git)bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < d5f490343c77e6708b6c4aa7dbbfbcbb9546adea (affected · git)bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < 4541004084527ce9e95a818ebbc4e6b293ffca21 (affected · git)bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < b9d760dae5b10e73369b769073525acd7b3be2bd (affected · git)bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8 (affected · git)bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < cafa992134124e785609a406da4ff2b54052aff7 (affected · git)bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa to < 4dde83569832f9377362e50f7748463340c5db6b (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.17 (affected)0 to < 4.17 (unaffected · semver)4.19.306 through 4.19.* (unaffected · semver)5.4.268 through 5.4.* (unaffected · semver)5.10.209 through 5.10.* (unaffected · semver)5.15.148 through 5.15.* (unaffected · semver)6.1.75 through 6.1.* (unaffected · semver)6.6.14 through 6.6.* (unaffected · semver)6.7.2 through 6.7.* (unaffected · semver)6.8 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
10- https://git.kernel.org/stable/c/26b4d702c44f9e5cf3c5c001ae619a4a001889db
- https://git.kernel.org/stable/c/4541004084527ce9e95a818ebbc4e6b293ffca21
- https://git.kernel.org/stable/c/4dde83569832f9377362e50f7748463340c5db6b
- https://git.kernel.org/stable/c/a0a061151a6200c13149dbcdb6c065203c8425d2
- https://git.kernel.org/stable/c/b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8
- https://git.kernel.org/stable/c/b9d760dae5b10e73369b769073525acd7b3be2bd
- https://git.kernel.org/stable/c/cafa992134124e785609a406da4ff2b54052aff7
- https://git.kernel.org/stable/c/d5f490343c77e6708b6c4aa7dbbfbcbb9546adea
- https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
Provider assertions
3Linux · cna
of: Fix double free in of_parse_phandle_with_args_map
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 47894afc5efcbdb4cc4a1f3cd6931c0921e438b51bd0284f0666def727d751ee
- Ingested
- 23 Sep 2026, 08:14:33 UTC
- Source record
- Official CVE record