CVE-2023-52697·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ASoC: Intel: sof_sdw_rt_sdca_jack_common: ctx->headset_codec_dev = NULL sof_sdw_rt_sdca_jack_exit() are used by different codecs, and some of them use the same dai name. For example, rt712 and rt713 both use "rt712-sdca-aif1" and sof_sdw_rt_sdca_jack_exit(). As a result, sof_sdw_rt_sdca_jack_exit() will be called twice by mc_dailink_exit_loop(). Set ctx->headset_codec_dev = NULL; after put_device(ctx->headset_codec_dev); to avoid ctx->headset_codec_dev being put twice.
- 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 resolve a double-device-release vulnerability in the Intel ASoC jack exit handler. This issue occurs when multiple audio codecs share the same DAI name, causing device references to be freed twice and potentially leading to kernel memory corruption or system instability. Apply the kernel update through your distribution's package manager immediately.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version by running: uname -r
- Verify if you are running kernel 6.7.0, 6.7.1, or 6.7.2 (affected range is 6.7 to 6.7.2)
- Check dmesg logs for double-free or use-after-free errors related to sof_sdw or rt712/rt713 codecs: grep -i 'double free\|use after free\|rt712\|rt713' /var/log/kern.log
- After patching, confirm the new kernel version is active with: uname -r (should show 6.7.2 or later)
FAQ
What is CVE-2023-52697?
This CVE is a kernel memory management flaw in Intel's Sound Open Firmware (SOF) audio driver where device references are incorrectly released twice when multiple audio codecs like rt712 and rt713 share the same DAI identifier, causing potential kernel memory corruption.
Is CVE-2023-52697 being actively exploited?
No, there is no evidence of active exploitation in the wild or public exploits available. This is primarily a local privilege escalation and denial-of-service risk for systems with Intel audio hardware.
What versions of Kernel are affected by CVE-2023-52697?
Linux kernel versions 6.7 through 6.7.2 are affected. Kernel 6.7.2 contains the fix.
How do I check if my server is vulnerable to CVE-2023-52697?
Run uname -r to check your kernel version. If it shows 6.7.0, 6.7.1, or 6.7.2 and you have Intel audio hardware (check lspci | grep -i audio), your system requires the patch.
Does Defensia detect CVE-2023-52697?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2023-52697 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/582231a8c4f73ac153493687ecc1bed853e9c9ef
- https://git.kernel.org/stable/c/a410d58117d6da4b7d41f3c91365f191d006bc3d
- https://git.kernel.org/stable/c/e38e252dbceeef7d2f848017132efd68e9ae1416
- https://git.kernel.org/stable/c/582231a8c4f73ac153493687ecc1bed853e9c9ef
- https://git.kernel.org/stable/c/a410d58117d6da4b7d41f3c91365f191d006bc3d
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2023-52697. Free for 1 server.
Get started free