CVE-2023-52679

of: Fix double free in of_parse_phandle_with_args_map

HIGH
7.8
CVSS Score
Published: May 17, 2024 at 02:24 PM UTC
Updated: August 5, 2026 at 10:24 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.17 ≤ v < 4.19.3064.17 ≤ v < 5.10.2094.17 ≤ v < 5.15.1484.17 ≤ v < 5.4.2684.17 ≤ v < 6.1.754.17 ≤ v < 6.6.144.17 ≤ v < 6.7.24.17 ≤ v < 6.84.20 ≤ v < 5.4.2685.11 ≤ v < 5.15.1485.16 ≤ v < 6.1.755.5 ≤ v < 5.10.2096.2 ≤ v < 6.6.146.7 ≤ v < 6.7.24.17bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa
Vendor states this is fixed in 26b4d702c44f9e5cf3c5c001ae619a4a001889db (fixed)
Vendor states this is fixed in 4541004084527ce9e95a818ebbc4e6b293ffca21 (fixed)
Vendor states this is fixed in 4dde83569832f9377362e50f7748463340c5db6b (fixed)
Vendor states this is fixed in a0a061151a6200c13149dbcdb6c065203c8425d2 (fixed)
Vendor states this is fixed in b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8 (fixed)
Vendor states this is fixed in b9d760dae5b10e73369b769073525acd7b3be2bd (fixed)
Vendor states this is fixed in cafa992134124e785609a406da4ff2b54052aff7 (fixed)
Vendor states this is fixed in d5f490343c77e6708b6c4aa7dbbfbcbb9546adea (fixed)
Vendor states this is fixed in 4.17 (unaffected)
Vendor states this is fixed in 4.19.306 (unaffected)
Vendor states this is fixed in 5.10.209 (unaffected)
Vendor states this is fixed in 5.15.148 (unaffected)
Vendor states this is fixed in 5.4.268 (unaffected)
Vendor states this is fixed in 6.1.75 (unaffected)
Vendor states this is fixed in 6.6.14 (unaffected)
Vendor states this is fixed in 6.7.2 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/26b4d702c44f9e5cf3c5c001ae619a4a001889db
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4541004084527ce9e95a818ebbc4e6b293ffca21
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4dde83569832f9377362e50f7748463340c5db6b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a0a061151a6200c13149dbcdb6c065203c8425d2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b9d760dae5b10e73369b769073525acd7b3be2bd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cafa992134124e785609a406da4ff2b54052aff7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d5f490343c77e6708b6c4aa7dbbfbcbb9546adea

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-415

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card