# CVE-2022-50724: regulator: core: fix resource leak in regulator\_register()

> 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.31% (percentile 16, 2026-11-26)
- **Published:** 2025-12-24T12:22:46.251Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= 0120ec32a7774b5061ced1a9a7ff833edd8b4cb6, \< 35593d60b1622834984c43add7646d4069671aa9; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< 6a03c31d08f95dca9633a552de167b9e625833a8; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< c4c64d8abd656b9807b63178750fa91454602b86; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< 90b713aadc1240bf2dd03d610d6c1d016a9123a2; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< f86b2f216636790d5922458578825e4628fb570f; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< ba62319a42c50e6254e98b3f316464fac8e77968; 1d58235c062309d51660fd04182d7a8ab6a48ad6; 167c3b1f9793a1fb23e75e693f078420850306d4; 3fc99e38fdbf6b693693f861aa55a50a74c2d202; 96c6b5d5775637b3095ef934f871044811fd4db7; …
- Anyone running Linux 5.10

## Description

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

regulator: core: fix resource leak in regulator\_register()

I got some resource leak reports while doing fault injection test:

  OF: ERROR: memory leak, expected refcount 1 instead of 100,
  of\_node\_get()/of\_node\_put() unbalanced - destroy cset entry:
  attach overlay node /i2c/pmic@64/regulators/buck1

unreferenced object 0xffff88810deea000 (size 512):
  comm "490-i2c-rt5190a", pid 253, jiffies 4294859840 (age 5061.046s)
  hex dump (first 32 bytes):
    00 00 00 00 ad 4e ad de ff ff ff ff 00 00 00 00  .....N..........
    ff ff ff ff ff ff ff ff a0 1e 00 a1 ff ff ff ff  ................
  backtrace:
    \[\<00000000d78541e2\>\] kmalloc\_trace+0x21/0x110
    \[\<00000000b343d153\>\] device\_private\_init+0x32/0xd0
    \[\<00000000be1f0c70\>\] device\_add+0xb2d/0x1030
    \[\<00000000e3e6344d\>\] regulator\_register+0xaf2/0x12a0
    \[\<00000000e2f5e754\>\] devm\_regulator\_register+0x57/0xb0
    \[\<000000008b898197\>\] rt5190a\_probe+0x52a/0x861 \[rt5190a\_regulator\]

unreferenced object 0xffff88810b617b80 (size 32):
  comm "490-i2c-rt5190a", pid 253, jiffies 4294859904 (age 5060.983s)
  hex dump (first 32 bytes):
    72 65 67 75 6c 61 74 6f 72 2e 32 38 36 38 2d 53  regulator.2868-S
    55 50 50 4c 59 00 ff ff 29 00 00 00 2b 00 00 00  UPPLY...)...+...
  backtrace:
    \[\<000000009da9280d\>\] \_\_kmalloc\_node\_track\_caller+0x44/0x1b0
    \[\<0000000025c6a4e5\>\] kstrdup+0x3a/0x70
    \[\<00000000790efb69\>\] create\_regulator+0xc0/0x4e0
    \[\<0000000005ed203a\>\] regulator\_resolve\_supply+0x2d4/0x440
    \[\<0000000045796214\>\] regulator\_register+0x10b3/0x12a0
    \[\<00000000e2f5e754\>\] devm\_regulator\_register+0x57/0xb0
    \[\<000000008b898197\>\] rt5190a\_probe+0x52a/0x861 \[rt5190a\_regulator\]

After calling regulator\_resolve\_supply(), the 'rdev-\>supply' is set
by set\_supply(), after this set, in the error path, the resources
need be released, so call regulator\_put() to avoid the leaks.

## Affected and fixed versions

- Linux: \>= 0120ec32a7774b5061ced1a9a7ff833edd8b4cb6, \< 35593d60b1622834984c43add7646d4069671aa9; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< 6a03c31d08f95dca9633a552de167b9e625833a8; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< c4c64d8abd656b9807b63178750fa91454602b86; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< 90b713aadc1240bf2dd03d610d6c1d016a9123a2; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< f86b2f216636790d5922458578825e4628fb570f; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< ba62319a42c50e6254e98b3f316464fac8e77968; 1d58235c062309d51660fd04182d7a8ab6a48ad6; 167c3b1f9793a1fb23e75e693f078420850306d4; 3fc99e38fdbf6b693693f861aa55a50a74c2d202; 96c6b5d5775637b3095ef934f871044811fd4db7; … (cvelist)
- Linux: 5.10 (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-50724. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50724.md
Affected: Linux >= 0120ec32a7774b5061ced1a9a7ff833edd8b4cb6, < 35593d60b1622834984c43add7646d4069671aa9; >= aea6cb99703e17019e025aa71643b4d3e0a24413, < 6a03c31d08f95dca9633a552de167b9e625833a8; >= aea6cb99703e17019e025aa71643b4d3e0a24413, < c4c64d8abd656b9807b63178750fa91454602b86; >= aea6cb99703e17019e025aa…
Fixed in: Linux 35593d60b1622834984c43add7646d4069671aa9, Linux 6a03c31d08f95dca9633a552de167b9e625833a8, Linux 90b713aadc1240bf2dd03d610d6c1d016a9123a2

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 0120ec32a7774b5061ced1a9a7ff833edd8b4cb6, \< 35593d60b1622834984c43add7646d4069671aa9; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< 6a03c31d08f95dca9633a552de167b9e625833a8; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< c4c64d8abd656b9807b63178750fa91454602b86; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< 90b713aadc1240bf2dd03d610d6c1d016a9123a2; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< f86b2f216636790d5922458578825e4628fb570f; \>= aea6cb99703e17019e025aa71643b4d3e0a24413, \< ba62319a42c50e6254e98b3f316464fac8e77968; 1d58235c062309d51660fd04182d7a8ab6a48ad6; 167c3b1f9793a1fb23e75e693f078420850306d4; 3fc99e38fdbf6b693693f861aa55a50a74c2d202; 96c6b5d5775637b3095ef934f871044811fd4db7; …; Linux 5.10.

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

Yes. Fixed in Linux 35593d60b1622834984c43add7646d4069671aa9, Linux 6a03c31d08f95dca9633a552de167b9e625833a8, Linux 90b713aadc1240bf2dd03d610d6c1d016a9123a2. No fix listed yet: follow the vendor advisory.

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

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/35593d60b1622834984c43add7646d4069671aa9>
- other: <https://git.kernel.org/stable/c/6a03c31d08f95dca9633a552de167b9e625833a8>
- other: <https://git.kernel.org/stable/c/c4c64d8abd656b9807b63178750fa91454602b86>
- other: <https://git.kernel.org/stable/c/90b713aadc1240bf2dd03d610d6c1d016a9123a2>
- other: <https://git.kernel.org/stable/c/f86b2f216636790d5922458578825e4628fb570f>
- other: <https://git.kernel.org/stable/c/ba62319a42c50e6254e98b3f316464fac8e77968>

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

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