# CVE-2022-49507: regulator: da9121: Fix uninit-value in da9121\_assign\_chip\_model()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; 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.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2025-02-26T02:13:38.821Z
- **Modified:** 2026-06-17T05:18:16.493Z

## Who should check

- Anyone running Linux \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< be96baa0c79588084e0d7a4fa21c574cec9a57f4; \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< 7da64c7c82c9b29b628a62c88a8c2fb06990563d; \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< 60f21eda69f1b5727a97d2077da766eb27fcc21f; \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< bab76514aca36bc513224525d5598da676938218
- Anyone running Linux 5.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

regulator: da9121: Fix uninit-value in da9121\_assign\_chip\_model()

KASAN report slab-out-of-bounds in \_\_regmap\_init as follows:

BUG: KASAN: slab-out-of-bounds in \_\_regmap\_init drivers/base/regmap/regmap.c:841
Read of size 1 at addr ffff88803678cdf1 by task xrun/9137

CPU: 0 PID: 9137 Comm: xrun Tainted: G        W         5.18.0-rc2
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0xe8/0x15a lib/dump\_stack.c:88
 print\_report.cold+0xcd/0x69b mm/kasan/report.c:313
 kasan\_report+0x8e/0xc0 mm/kasan/report.c:491
 \_\_regmap\_init+0x4540/0x4ba0 drivers/base/regmap/regmap.c:841
 \_\_devm\_regmap\_init+0x7a/0x100 drivers/base/regmap/regmap.c:1266
 \_\_devm\_regmap\_init\_i2c+0x65/0x80 drivers/base/regmap/regmap-i2c.c:394
 da9121\_i2c\_probe+0x386/0x6d1 drivers/regulator/da9121-regulator.c:1039
 i2c\_device\_probe+0x959/0xac0 drivers/i2c/i2c-core-base.c:563

This happend when da9121 device is probe by da9121\_i2c\_id, but with
invalid dts. Thus, chip-\>subvariant\_id is set to -EINVAL, and later
da9121\_assign\_chip\_model() will access 'regmap' without init it.

Fix it by return -EINVAL from da9121\_assign\_chip\_model() if
'chip-\>subvariant\_id' is invalid.

## Affected and fixed versions

- Linux: \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< be96baa0c79588084e0d7a4fa21c574cec9a57f4; \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< 7da64c7c82c9b29b628a62c88a8c2fb06990563d; \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< 60f21eda69f1b5727a97d2077da766eb27fcc21f; \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< bab76514aca36bc513224525d5598da676938218 (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49507.md
Affected: Linux >= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, < be96baa0c79588084e0d7a4fa21c574cec9a57f4; >= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, < 7da64c7c82c9b29b628a62c88a8c2fb06990563d; >= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, < 60f21eda69f1b5727a97d2077da766eb27fcc21f; >= f3fbd5566f6a8cdb7c48ab2…
Fixed in: Linux 7da64c7c82c9b29b628a62c88a8c2fb06990563d, Linux 60f21eda69f1b5727a97d2077da766eb27fcc21f

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-49507 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< be96baa0c79588084e0d7a4fa21c574cec9a57f4; \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< 7da64c7c82c9b29b628a62c88a8c2fb06990563d; \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< 60f21eda69f1b5727a97d2077da766eb27fcc21f; \>= f3fbd5566f6a8cdb7c48ab29bd1096205b7fbcaf, \< bab76514aca36bc513224525d5598da676938218; Linux 5.11.

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

Yes. Fixed in Linux 7da64c7c82c9b29b628a62c88a8c2fb06990563d, Linux 60f21eda69f1b5727a97d2077da766eb27fcc21f. No fix listed yet: follow the vendor advisory.

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

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/be96baa0c79588084e0d7a4fa21c574cec9a57f4>
- patch: <https://git.kernel.org/stable/c/7da64c7c82c9b29b628a62c88a8c2fb06990563d>
- patch: <https://git.kernel.org/stable/c/60f21eda69f1b5727a97d2077da766eb27fcc21f>
- patch: <https://git.kernel.org/stable/c/bab76514aca36bc513224525d5598da676938218>

## 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-49507>

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