CVE-2022-49515·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ASoC: cs35l41: Fix an out-of-bounds access in otp_packed_element_t The CS35L41_NUM_OTP_ELEM is 100, but only 99 entries are defined in the array otp_map_1/2[CS35L41_NUM_OTP_ELEM], this will trigger UBSAN to report a shift-out-of-bounds warning in the cs35l41_otp_unpack() since the last entry in the array will result in GENMASK(-1, 0). UBSAN reports this problem: UBSAN: shift-out-of-bounds in /home/hwang4/build/jammy/jammy/sound/soc/codecs/cs35l41-lib.c:836:8 shift exponent 64 is too large for 64-bit type 'long unsigned int' CPU: 10 PID: 595 Comm: systemd-udevd Not tainted 5.15.0-23-generic #23 Hardware name: LENOVO \x02MFG_IN_GO/\x02MFG_IN_GO, BIOS N3GET19W (1.00 ) 03/11/2022 Call Trace: <TASK> show_stack+0x52/0x58 dump_stack_lvl+0x4a/0x5f dump_stack+0x10/0x12 ubsan_epilogue+0x9/0x45 __ubsan_handle_shift_out_of_bounds.cold+0x61/0xef ? regmap_unlock_mutex+0xe/0x10 cs35l41_otp_unpack.cold+0x1c6/0x2b2 [snd_soc_cs35l41_lib] cs35l41_hda_probe+0x24f/0x33a [snd_hda_scodec_cs35l41] cs35l41_hda_i2c_probe+0x65/0x90 [snd_hda_scodec_cs35l41_i2c] ? cs35l41_hda_i2c_remove+0x20/0x20 [snd_hda_scodec_cs35l41_i2c] i2c_device_probe+0x252/0x2b0
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.18.3
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 9% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2022-49515 scores 7.1 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 5.18
Until: 5.18.3
Fixed in: 5.18.3
How to fix this CVE
Update your Linux kernel to version 5.18.3 or later to patch the out-of-bounds memory access vulnerability in the CS35L41 audio codec driver. This fix corrects an array boundary condition that could cause kernel crashes or undefined behavior during audio device initialization. Reboot your system after applying the kernel update to complete the remediation.
sudo dnf check-update kernel && sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r (compare against 5.18.3)
- Verify CS35L41 codec presence: grep -i cs35l41 /proc/asound/cards or lsmod | grep cs35l41
- Search kernel logs for UBSAN warnings: dmesg | grep -i 'shift-out-of-bounds\|cs35l41'
- Confirm patch application: grep -A 5 'CS35L41_NUM_OTP_ELEM' /boot/config-$(uname -r) and verify kernel build date is after the fix commit timestamp
FAQ
What is CVE-2022-49515?
This vulnerability is an out-of-bounds memory access in the Linux kernel's CS35L41 audio codec driver, where an array is declared with 100 elements but only 99 are initialized, causing a shift overflow when the kernel attempts to unpack OTP (One-Time Programmable) memory data during audio device initialization.
Is CVE-2022-49515 being actively exploited?
No, this vulnerability is not documented as being actively exploited in the wild. It primarily triggers kernel warnings and potential crashes on systems with CS35L41 audio hardware, but does not provide a direct attack vector for remote exploitation.
What versions of Kernel are affected by CVE-2022-49515?
Linux kernel versions 5.18 through 5.18.2 are affected. The vulnerability was patched in kernel version 5.18.3 and later stable releases.
How do I check if my server is vulnerable to CVE-2022-49515?
Run 'uname -r' to check your kernel version—if it shows 5.18.0, 5.18.1, or 5.18.2, you are vulnerable. Additionally, check if the CS35L41 codec driver is loaded with 'lsmod | grep cs35l41'—vulnerability only impacts systems with this audio hardware.
Does Defensia detect CVE-2022-49515?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server and runs version 5.18.0–5.18.2, CVE-2022-49515 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2022-49515. Free for 1 server.
Get started free