# CVE-2023-52679: of: Fix double free in of\_parse\_phandle\_with\_args\_map

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2024-05-17T14:24:43.380Z
- **Modified:** 2026-08-05T09:11:00.798Z

## Who should check

- Anyone running Linux \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< 26b4d702c44f9e5cf3c5c001ae619a4a001889db; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< a0a061151a6200c13149dbcdb6c065203c8425d2; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< d5f490343c77e6708b6c4aa7dbbfbcbb9546adea; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< 4541004084527ce9e95a818ebbc4e6b293ffca21; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< b9d760dae5b10e73369b769073525acd7b3be2bd; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< cafa992134124e785609a406da4ff2b54052aff7; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< 4dde83569832f9377362e50f7748463340c5db6b
- Anyone running Linux 4.17

## 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.

## Affected and fixed versions

- Linux: \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< 26b4d702c44f9e5cf3c5c001ae619a4a001889db; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< a0a061151a6200c13149dbcdb6c065203c8425d2; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< d5f490343c77e6708b6c4aa7dbbfbcbb9546adea; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< 4541004084527ce9e95a818ebbc4e6b293ffca21; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< b9d760dae5b10e73369b769073525acd7b3be2bd; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< cafa992134124e785609a406da4ff2b54052aff7; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< 4dde83569832f9377362e50f7748463340c5db6b (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

- Upgrade Linux to 4dde83569832f9377362e50f7748463340c5db6b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52679. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52679.md
Affected: Linux >= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, < 26b4d702c44f9e5cf3c5c001ae619a4a001889db; >= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, < a0a061151a6200c13149dbcdb6c065203c8425d2; >= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, < d5f490343c77e6708b6c4aa7dbbfbcbb9546adea; >= bd6f2fd5a1d52198468c5cd…
Fixed in: Linux 26b4d702c44f9e5cf3c5c001ae619a4a001889db, Linux 4541004084527ce9e95a818ebbc4e6b293ffca21, Linux 4dde83569832f9377362e50f7748463340c5db6b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52679 being exploited?

There is no confirmed exploitation: CVE-2023-52679 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52679?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52679?

Linux \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< 26b4d702c44f9e5cf3c5c001ae619a4a001889db; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< a0a061151a6200c13149dbcdb6c065203c8425d2; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< d5f490343c77e6708b6c4aa7dbbfbcbb9546adea; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< 4541004084527ce9e95a818ebbc4e6b293ffca21; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< b9d760dae5b10e73369b769073525acd7b3be2bd; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< cafa992134124e785609a406da4ff2b54052aff7; \>= bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa, \< 4dde83569832f9377362e50f7748463340c5db6b; Linux 4.17.

### Is there a fix for CVE-2023-52679?

Yes. Fixed in Linux 26b4d702c44f9e5cf3c5c001ae619a4a001889db, Linux 4541004084527ce9e95a818ebbc4e6b293ffca21, Linux 4dde83569832f9377362e50f7748463340c5db6b. Upgrade Linux to 4dde83569832f9377362e50f7748463340c5db6b or later.

### How do I check if I'm affected by CVE-2023-52679?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/26b4d702c44f9e5cf3c5c001ae619a4a001889db>
- patch: <https://git.kernel.org/stable/c/a0a061151a6200c13149dbcdb6c065203c8425d2>
- patch: <https://git.kernel.org/stable/c/d5f490343c77e6708b6c4aa7dbbfbcbb9546adea>
- patch: <https://git.kernel.org/stable/c/4541004084527ce9e95a818ebbc4e6b293ffca21>
- patch: <https://git.kernel.org/stable/c/b9d760dae5b10e73369b769073525acd7b3be2bd>
- patch: <https://git.kernel.org/stable/c/b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8>
- patch: <https://git.kernel.org/stable/c/cafa992134124e785609a406da4ff2b54052aff7>
- patch: <https://git.kernel.org/stable/c/4dde83569832f9377362e50f7748463340c5db6b>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52679>

HTML: <https://flawdb.com/CVE-2023-52679> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52679>
