# CVE-2022-50616: regulator: core: Use different devices for resource allocation and DT lookup

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-08T01:16:29.407Z
- **Modified:** 2026-06-17T05:23:52.433Z

## Who should check

- Anyone running Linux \>= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, \< cb29811d989bcb7ea81ca111c4b13878b344e086; \>= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, \< b0f25ca1ff9be7abd1679ae7e59a8f25dbffe67a; \>= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, \< 8f3cbcd6b440032ebc7f7d48a1689dcc70a4eb98
- Anyone running Linux 3.18

## Description

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

regulator: core: Use different devices for resource allocation and DT lookup

Following by the below discussion, there's the potential UAF issue
between regulator and mfd.
https://lore.kernel.org/all/20221128143601.1698148-1-yangyingliang@huawei.com/

From the analysis of Yingliang

CPU A				\|CPU B
mt6370\_probe()			\|
  devm\_mfd\_add\_devices()	\|
				\|mt6370\_regulator\_probe()
				\|  regulator\_register()
				\|    //allocate init\_data and add it to devres
				\|    regulator\_of\_get\_init\_data()
i2c\_unregister\_device()		\|
  device\_del()			\|
    devres\_release\_all()	\|
      // init\_data is freed	\|
      release\_nodes()		\|
				\|  // using init\_data causes UAF
				\|  regulator\_register()

It's common to use mfd core to create child device for the regulator.
In order to do the DT lookup for init data, the child that registered
the regulator would pass its parent as the parameter. And this causes
init data resource allocated to its parent, not itself. The issue happen
when parent device is going to release and regulator core is still doing
some operation of init data constraint for the regulator of child device.

To fix it, this patch expand 'regulator\_register' API to use the
different devices for init data allocation and DT lookup.

## Affected and fixed versions

- Linux: \>= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, \< cb29811d989bcb7ea81ca111c4b13878b344e086; \>= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, \< b0f25ca1ff9be7abd1679ae7e59a8f25dbffe67a; \>= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, \< 8f3cbcd6b440032ebc7f7d48a1689dcc70a4eb98 (cvelist)
- Linux: 3.18 (cvelist)

## Mitigation

- Upgrade Linux to 8f3cbcd6b440032ebc7f7d48a1689dcc70a4eb98 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-50616. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50616.md
Affected: Linux >= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, < cb29811d989bcb7ea81ca111c4b13878b344e086; >= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, < b0f25ca1ff9be7abd1679ae7e59a8f25dbffe67a; >= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, < 8f3cbcd6b440032ebc7f7d48a1689dcc70a4eb98; Linux 3.18
Fixed in: Linux 8f3cbcd6b440032ebc7f7d48a1689dcc70a4eb98

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, \< cb29811d989bcb7ea81ca111c4b13878b344e086; \>= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, \< b0f25ca1ff9be7abd1679ae7e59a8f25dbffe67a; \>= a0c7b164ad115ec0556dc0904ee2218cbc5cedfa, \< 8f3cbcd6b440032ebc7f7d48a1689dcc70a4eb98; Linux 3.18.

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

Yes. Fixed in Linux 8f3cbcd6b440032ebc7f7d48a1689dcc70a4eb98. Upgrade Linux to 8f3cbcd6b440032ebc7f7d48a1689dcc70a4eb98 or later.

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

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

- other: <https://git.kernel.org/stable/c/cb29811d989bcb7ea81ca111c4b13878b344e086>
- other: <https://git.kernel.org/stable/c/b0f25ca1ff9be7abd1679ae7e59a8f25dbffe67a>
- other: <https://git.kernel.org/stable/c/8f3cbcd6b440032ebc7f7d48a1689dcc70a4eb98>

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

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