CVE-2023-52679·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.7.2
- Published
- 2024-05-17
Affected versions
From: 6.7
Until: 6.7.2
Fixed in: 6.7.2
How to fix this CVE
Update your Linux kernel to version 6.7.2 or later to fix a double-free vulnerability in the device tree parsing function of_parse_phandle_with_args_map(). This vulnerability occurs when the kernel fails to properly reset variable state between loop iterations, potentially leading to memory corruption. Systems running kernel versions 6.7 through 6.7.2 should prioritize this update.
sudo dnf upgrade kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check current kernel version with: uname -r
- Step 2: Verify if system is affected by running: cat /proc/version | grep -E '6\.7\.[0-2]'
- Step 3: Search kernel logs for memory corruption errors with: journalctl -b | grep -iE 'double free|memory corruption|kernel panic'
- Step 4: After patching, confirm the fix with: uname -r and verify it shows version 6.7.2 or later
FAQ
What is CVE-2023-52679?
This is a double-free memory corruption vulnerability in the Linux kernel's device tree parsing code where a pointer is not properly reset between loop iterations, allowing the same memory region to be freed twice and potentially enabling local privilege escalation or denial of service.
Is CVE-2023-52679 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available, though it remains a high-severity local attack vector.
What versions of Kernel are affected by CVE-2023-52679?
Linux kernel versions 6.7 through 6.7.2 are affected; version 6.7.2 and later contain the fix.
How do I check if my server is vulnerable to CVE-2023-52679?
Run 'uname -r' and compare the output to the affected range 6.7.0 through 6.7.2; if your kernel falls in this range, your system is vulnerable.
Does Defensia detect CVE-2023-52679?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2023-52679 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- 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
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52679. Free for 1 server.
Get started free