{
    "dataType": "CVE_RECORD",
    "cveMetadata": {
        "cveId": "CVE-2023-52679",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-03-07T14:49:46.887Z",
        "datePublished": "2024-05-17T14:24:43.380Z",
        "dateUpdated": "2026-08-05T09:11:00.798Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T09:11:00.798Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nof: Fix double free in of_parse_phandle_with_args_map\n\nIn of_parse_phandle_with_args_map() the inner loop that\niterates through the map entries calls of_node_put(new)\nto free the reference acquired by the previous iteration\nof the inner loop. This assumes that the value of \"new\" is\nNULL on the first iteration of the inner loop.\n\nMake sure that this is true in all iterations of the outer\nloop by setting \"new\" to NULL after its value is assigned to \"cur\".\n\nExtend the unittest to detect the double free and add an additional\ntest case that actually triggers this path."
                }
            ],
            "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 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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/of/base.c",
                        "drivers/of/unittest-data/tests-phandle.dtsi",
                        "drivers/of/unittest.c"
                    ],
                    "versions": [
                        {
                            "version": "bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa",
                            "lessThan": "26b4d702c44f9e5cf3c5c001ae619a4a001889db",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa",
                            "lessThan": "a0a061151a6200c13149dbcdb6c065203c8425d2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa",
                            "lessThan": "d5f490343c77e6708b6c4aa7dbbfbcbb9546adea",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa",
                            "lessThan": "4541004084527ce9e95a818ebbc4e6b293ffca21",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa",
                            "lessThan": "b9d760dae5b10e73369b769073525acd7b3be2bd",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa",
                            "lessThan": "b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa",
                            "lessThan": "cafa992134124e785609a406da4ff2b54052aff7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "bd6f2fd5a1d52198468c5cdc3c2472362dff5aaa",
                            "lessThan": "4dde83569832f9377362e50f7748463340c5db6b",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/of/base.c",
                        "drivers/of/unittest-data/tests-phandle.dtsi",
                        "drivers/of/unittest.c"
                    ],
                    "versions": [
                        {
                            "version": "4.17",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.17",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.306",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.268",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.209",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.148",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.75",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.14",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.7.2",
                            "lessThanOrEqual": "6.7.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.8",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "4.19.306"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "5.4.268"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "5.10.209"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "5.15.148"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "6.1.75"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "6.6.14"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "6.7.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.17",
                                    "versionEndExcluding": "6.8"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/26b4d702c44f9e5cf3c5c001ae619a4a001889db"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a0a061151a6200c13149dbcdb6c065203c8425d2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d5f490343c77e6708b6c4aa7dbbfbcbb9546adea"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4541004084527ce9e95a818ebbc4e6b293ffca21"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b9d760dae5b10e73369b769073525acd7b3be2bd"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8"
                },
                {
                    "url": "https://git.kernel.org/stable/c/cafa992134124e785609a406da4ff2b54052aff7"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4dde83569832f9377362e50f7748463340c5db6b"
                }
            ],
            "title": "of: Fix double free in of_parse_phandle_with_args_map",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "title": "CISA ADP Vulnrichment",
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2023-52679",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-05-20T14:12:32.015310Z"
                            }
                        }
                    }
                ],
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-04T17:23:37.773Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T23:11:34.539Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://git.kernel.org/stable/c/26b4d702c44f9e5cf3c5c001ae619a4a001889db",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/a0a061151a6200c13149dbcdb6c065203c8425d2",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/d5f490343c77e6708b6c4aa7dbbfbcbb9546adea",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/4541004084527ce9e95a818ebbc4e6b293ffca21",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/b9d760dae5b10e73369b769073525acd7b3be2bd",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/b64d09a4e8596f76d27f4b4a90a1cf6baf6a82f8",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/cafa992134124e785609a406da4ff2b54052aff7",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/4dde83569832f9377362e50f7748463340c5db6b",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00016.html",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    },
    "dataVersion": "5.2"
}