# CVE-2022-49515: ASoC: cs35l41: Fix an out-of-bounds access in otp\_packed\_element\_t

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-02-26T02:13:43.888Z
- **Modified:** 2026-06-17T05:18:17.810Z

## Who should check

- Anyone running Linux \>= 6450ef55905688602175fae4ed1bfbfef6a14dde, \< dbc35268e14d5d89c7a9db72009ad4dcd9ede646; \>= 6450ef55905688602175fae4ed1bfbfef6a14dde, \< a59b9958416096dd21dc4f62b0c5be525d459ca8; \>= 6450ef55905688602175fae4ed1bfbfef6a14dde, \< 9f342904216f378e88008bb0ce1ae200a4b99fe8
- Anyone running Linux 5.16

## Description

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

## Affected and fixed versions

- Linux: \>= 6450ef55905688602175fae4ed1bfbfef6a14dde, \< dbc35268e14d5d89c7a9db72009ad4dcd9ede646; \>= 6450ef55905688602175fae4ed1bfbfef6a14dde, \< a59b9958416096dd21dc4f62b0c5be525d459ca8; \>= 6450ef55905688602175fae4ed1bfbfef6a14dde, \< 9f342904216f378e88008bb0ce1ae200a4b99fe8 (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- Upgrade Linux to 9f342904216f378e88008bb0ce1ae200a4b99fe8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49515. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49515.md
Affected: Linux >= 6450ef55905688602175fae4ed1bfbfef6a14dde, < dbc35268e14d5d89c7a9db72009ad4dcd9ede646; >= 6450ef55905688602175fae4ed1bfbfef6a14dde, < a59b9958416096dd21dc4f62b0c5be525d459ca8; >= 6450ef55905688602175fae4ed1bfbfef6a14dde, < 9f342904216f378e88008bb0ce1ae200a4b99fe8; Linux 5.16
Fixed in: Linux 9f342904216f378e88008bb0ce1ae200a4b99fe8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49515 being exploited?

There is no confirmed exploitation: CVE-2022-49515 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49515?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49515?

Linux \>= 6450ef55905688602175fae4ed1bfbfef6a14dde, \< dbc35268e14d5d89c7a9db72009ad4dcd9ede646; \>= 6450ef55905688602175fae4ed1bfbfef6a14dde, \< a59b9958416096dd21dc4f62b0c5be525d459ca8; \>= 6450ef55905688602175fae4ed1bfbfef6a14dde, \< 9f342904216f378e88008bb0ce1ae200a4b99fe8; Linux 5.16.

### Is there a fix for CVE-2022-49515?

Yes. Fixed in Linux 9f342904216f378e88008bb0ce1ae200a4b99fe8. Upgrade Linux to 9f342904216f378e88008bb0ce1ae200a4b99fe8 or later.

### How do I check if I'm affected by CVE-2022-49515?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/dbc35268e14d5d89c7a9db72009ad4dcd9ede646>
- patch: <https://git.kernel.org/stable/c/a59b9958416096dd21dc4f62b0c5be525d459ca8>
- patch: <https://git.kernel.org/stable/c/9f342904216f378e88008bb0ce1ae200a4b99fe8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49515>

HTML: <https://flawdb.com/CVE-2022-49515> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49515>
