CVE-2023-52679: of: Fix double free in of_parse_phandle_with_args_map
In the Linux kernel, the following vulnerability has been resolved:
of: Fix double free in ofparsephandlewithargsmap
In ofparsephandlewithargsmap() the inner loop that iterates through the map entries calls ofnodeput(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.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
of: Fix double free in ofparsephandlewithargsmap
The Linux kernel CVE team has assigned CVE-2023-52679 to this issue.
Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024051750-CVE-2023-52679-948f@gregkh/T
— Red Hat
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2023-52679?
CVE-2023-52679 is classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2023-52679?
To fix CVE-2023-52679, you should upgrade to the recommended kernel versions such as 4.19.306, 5.4.268, or later as specified in the advisory.
What systems are affected by CVE-2023-52679?
CVE-2023-52679 affects various versions of the Linux kernel, including versions between 4.17 and 6.8.
What does CVE-2023-52679 involve?
CVE-2023-52679 involves a double free vulnerability in the of_parse_phandle_with_args_map function within the Linux kernel.
Is there a patch available for CVE-2023-52679?
Yes, patches for CVE-2023-52679 are included in kernel updates that address the issue in affected versions.