# CVE-2022-50191: regulator: of: Fix refcount leak bug in of\_get\_regulation\_constraints()

> 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, NVD) `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)
- **Published:** 2025-06-18T11:03:36.928Z
- **Modified:** 2026-11-05T20:17:26.753Z

## Who should check

- Anyone running Linux \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< a23098cc32860272dc6c3200ff20c34c65b7b694; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< b9ca8585c766616563cf3c062c6878f61f83cf00; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 35f9e861d9b9434903a8ede37a3561f78985826d; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 332e555dca074c4eb2084898021c3676423814c3; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< c9df8ff290097aabd5c9200f7f729b0813d37b19; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 11ecb4f8735b0230d54a82c18b21ea778b695d61; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< fc7b19f547bc9e622060a0a9a39da2330aa21c53; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 66efb665cd5ad69b27dca8571bf89fc6b9c628a4
- Anyone running Linux 3.19

## Description

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

regulator: of: Fix refcount leak bug in of\_get\_regulation\_constraints()

We should call the of\_node\_put() for the reference returned by
of\_get\_child\_by\_name() which has increased the refcount.

## Affected and fixed versions

- Linux: \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< a23098cc32860272dc6c3200ff20c34c65b7b694; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< b9ca8585c766616563cf3c062c6878f61f83cf00; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 35f9e861d9b9434903a8ede37a3561f78985826d; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 332e555dca074c4eb2084898021c3676423814c3; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< c9df8ff290097aabd5c9200f7f729b0813d37b19; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 11ecb4f8735b0230d54a82c18b21ea778b695d61; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< fc7b19f547bc9e622060a0a9a39da2330aa21c53; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 66efb665cd5ad69b27dca8571bf89fc6b9c628a4 (cvelist)
- Linux: 3.19 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50191.md
Affected: Linux >= 40e20d68bb3fb1ce2704c886d597918988d3321d, < a23098cc32860272dc6c3200ff20c34c65b7b694; >= 40e20d68bb3fb1ce2704c886d597918988d3321d, < b9ca8585c766616563cf3c062c6878f61f83cf00; >= 40e20d68bb3fb1ce2704c886d597918988d3321d, < 35f9e861d9b9434903a8ede37a3561f78985826d; >= 40e20d68bb3fb1ce2704c88…
Fixed in: Linux 35f9e861d9b9434903a8ede37a3561f78985826d, Linux 332e555dca074c4eb2084898021c3676423814c3, Linux 11ecb4f8735b0230d54a82c18b21ea778b695d61, Linux 66efb665cd5ad69b27dca8571bf89fc6b9c628a4

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

There is no confirmed exploitation: CVE-2022-50191 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-50191?

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

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

Linux \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< a23098cc32860272dc6c3200ff20c34c65b7b694; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< b9ca8585c766616563cf3c062c6878f61f83cf00; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 35f9e861d9b9434903a8ede37a3561f78985826d; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 332e555dca074c4eb2084898021c3676423814c3; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< c9df8ff290097aabd5c9200f7f729b0813d37b19; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 11ecb4f8735b0230d54a82c18b21ea778b695d61; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< fc7b19f547bc9e622060a0a9a39da2330aa21c53; \>= 40e20d68bb3fb1ce2704c886d597918988d3321d, \< 66efb665cd5ad69b27dca8571bf89fc6b9c628a4; Linux 3.19.

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

Yes. Fixed in Linux 35f9e861d9b9434903a8ede37a3561f78985826d, Linux 332e555dca074c4eb2084898021c3676423814c3, Linux 11ecb4f8735b0230d54a82c18b21ea778b695d61, Linux 66efb665cd5ad69b27dca8571bf89fc6b9c628a4. Upgrade Linux to 66efb665cd5ad69b27dca8571bf89fc6b9c628a4 or later.

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

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/a23098cc32860272dc6c3200ff20c34c65b7b694>
- patch: <https://git.kernel.org/stable/c/b9ca8585c766616563cf3c062c6878f61f83cf00>
- patch: <https://git.kernel.org/stable/c/35f9e861d9b9434903a8ede37a3561f78985826d>
- patch: <https://git.kernel.org/stable/c/332e555dca074c4eb2084898021c3676423814c3>
- patch: <https://git.kernel.org/stable/c/c9df8ff290097aabd5c9200f7f729b0813d37b19>
- patch: <https://git.kernel.org/stable/c/11ecb4f8735b0230d54a82c18b21ea778b695d61>
- patch: <https://git.kernel.org/stable/c/fc7b19f547bc9e622060a0a9a39da2330aa21c53>
- patch: <https://git.kernel.org/stable/c/66efb665cd5ad69b27dca8571bf89fc6b9c628a4>

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

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