CVE-2022-48716·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ASoC: codecs: wcd938x: fix incorrect used of portid Mixer controls have the channel id in mixer->reg, which is not same as port id. port id should be derived from chan_info array. So fix this. Without this, its possible that we could corrupt struct wcd938x_sdw_priv by accessing port_map array out of range with channel id instead of port id.
- Severity
- critical
- Software
- Kernel
- Fixed in
- 5.16.8
- Published
- 2024-06-20
Affected versions
From: 5.16
Until: 5.16.8
Fixed in: 5.16.8
How to fix this CVE
Update your Linux kernel to version 5.16.8 or later to resolve a critical memory corruption vulnerability in the WCD938x audio codec driver. The vulnerability stems from incorrect port ID mapping in mixer controls, which could allow out-of-bounds array access and kernel memory corruption. Systems running kernel versions 5.16 through 5.16.7 should prioritize this patch immediately.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version with: uname -r
- Verify if your system uses the WCD938x audio codec by running: lspci | grep -i audio or cat /proc/asound/cards
- Review kernel logs for audio subsystem errors or crashes: dmesg | grep -i wcd938x
- Confirm the fix by comparing your kernel version against 5.16.8 or later: uname -r | awk -F. '{print ($1*10000 + $2*100 + $3)}' and verify it returns a value >= 51608
FAQ
What is CVE-2022-48716?
This vulnerability affects the Linux kernel's WCD938x audio codec driver, where mixer control channel IDs are incorrectly used as port IDs. This causes out-of-bounds memory access in the port_map array, potentially corrupting kernel data structures.
Is CVE-2022-48716 being actively exploited?
No, this vulnerability is not listed on the CISA KEV catalog and has no known public exploits. However, its critical CVSS score (9.8) warrants immediate patching due to potential for local privilege escalation.
What versions of Kernel are affected by CVE-2022-48716?
Linux kernel versions 5.16 through 5.16.7 are vulnerable. The fix was introduced in kernel 5.16.8.
How do I check if my server is vulnerable to CVE-2022-48716?
Run 'uname -r' to retrieve your kernel version. If it reports 5.16.0 through 5.16.7 and your system has a WCD938x audio codec (verified via 'cat /proc/asound/cards'), your system is vulnerable.
Does Defensia detect CVE-2022-48716?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2022-48716 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/9167f2712dc8c24964840a4d1e2ebf130e846b95
- https://git.kernel.org/stable/c/aa7152f9f117b3e66b3c0d4158ca4c6d46ab229f
- https://git.kernel.org/stable/c/c5c1546a654f613e291a7c5d6f3660fc1eb6d0c7
- https://git.kernel.org/stable/c/9167f2712dc8c24964840a4d1e2ebf130e846b95
- https://git.kernel.org/stable/c/aa7152f9f117b3e66b3c0d4158ca4c6d46ab229f
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-48716. Free for 1 server.
Get started free