# CVE-2022-50283: mtd: core: add missing of\_node\_get() in dynamic partitions code

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.22% (percentile 8, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2025-09-15T14:21:19.574Z
- **Modified:** 2026-08-05T08:58:02.384Z

## Who should check

- Anyone running Linux \>= ad9b10d1eaada169bd764abcab58f08538877e26, \< 9e54ce00505d291ef88f2c05e5eef46269daf83c; \>= ad9b10d1eaada169bd764abcab58f08538877e26, \< 12b58961de0bd88b3c7dfa5d21f6d67f4678b780
- Anyone running Linux 6.0

## Description

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

mtd: core: add missing of\_node\_get() in dynamic partitions code

This fixes unbalanced of\_node\_put():
\[    1.078910\] 6 cmdlinepart partitions found on MTD device gpmi-nand
\[    1.085116\] Creating 6 MTD partitions on "gpmi-nand":
\[    1.090181\] 0x000000000000-0x000008000000 : "nandboot"
\[    1.096952\] 0x000008000000-0x000009000000 : "nandfit"
\[    1.103547\] 0x000009000000-0x00000b000000 : "nandkernel"
\[    1.110317\] 0x00000b000000-0x00000c000000 : "nanddtb"
\[    1.115525\] ------------\[ cut here \]------------
\[    1.120141\] refcount\_t: addition on 0; use-after-free.
\[    1.125328\] WARNING: CPU: 0 PID: 1 at lib/refcount.c:25 refcount\_warn\_saturate+0xdc/0x148
\[    1.133528\] Modules linked in:
\[    1.136589\] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.0.0-rc7-next-20220930-04543-g8cf3f7
\[    1.146342\] Hardware name: Freescale i.MX8DXL DDR3L EVK (DT)
\[    1.151999\] pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
\[    1.158965\] pc : refcount\_warn\_saturate+0xdc/0x148
\[    1.163760\] lr : refcount\_warn\_saturate+0xdc/0x148
\[    1.168556\] sp : ffff800009ddb080
\[    1.171866\] x29: ffff800009ddb080 x28: ffff800009ddb35a x27: 0000000000000002
\[    1.179015\] x26: ffff8000098b06ad x25: ffffffffffffffff x24: ffff0a00ffffff05
\[    1.186165\] x23: ffff00001fdf6470 x22: ffff800009ddb367 x21: 0000000000000000
\[    1.193314\] x20: ffff00001fdfebe8 x19: ffff00001fdfec50 x18: ffffffffffffffff
\[    1.200464\] x17: 0000000000000000 x16: 0000000000000118 x15: 0000000000000004
\[    1.207614\] x14: 0000000000000fff x13: ffff800009bca248 x12: 0000000000000003
\[    1.214764\] x11: 00000000ffffefff x10: c0000000ffffefff x9 : 4762cb2ccb52de00
\[    1.221914\] x8 : 4762cb2ccb52de00 x7 : 205d313431303231 x6 : 312e31202020205b
\[    1.229063\] x5 : ffff800009d55c1f x4 : 0000000000000001 x3 : 0000000000000000
\[    1.236213\] x2 : 0000000000000000 x1 : ffff800009954be6 x0 : 000000000000002a
\[    1.243365\] Call trace:
\[    1.245806\]  refcount\_warn\_saturate+0xdc/0x148
\[    1.250253\]  kobject\_get+0x98/0x9c
\[    1.253658\]  of\_node\_get+0x20/0x34
\[    1.257072\]  of\_fwnode\_get+0x3c/0x54
\[    1.260652\]  fwnode\_get\_nth\_parent+0xd8/0xf4
\[    1.264926\]  fwnode\_full\_name\_string+0x3c/0xb4
\[    1.269373\]  device\_node\_string+0x498/0x5b4
\[    1.273561\]  pointer+0x41c/0x5d0
\[    1.276793\]  vsnprintf+0x4d8/0x694
\[    1.280198\]  vprintk\_store+0x164/0x528
\[    1.283951\]  vprintk\_emit+0x98/0x164
\[    1.287530\]  vprintk\_default+0x44/0x6c
\[    1.291284\]  vprintk+0xf0/0x134
\[    1.294428\]  \_printk+0x54/0x7c
\[    1.297486\]  of\_node\_release+0xe8/0x128
\[    1.301326\]  kobject\_put+0x98/0xfc
\[    1.304732\]  of\_node\_put+0x1c/0x28
\[    1.308137\]  add\_mtd\_device+0x484/0x6d4
\[    1.311977\]  add\_mtd\_partitions+0xf0/0x1d0
\[    1.316078\]  parse\_mtd\_partitions+0x45c/0x518
\[    1.320439\]  mtd\_device\_parse\_register+0xb0/0x274
\[    1.325147\]  gpmi\_nand\_probe+0x51c/0x650
\[    1.329074\]  platform\_probe+0xa8/0xd0
\[    1.332740\]  really\_probe+0x130/0x334
\[    1.336406\]  \_\_driver\_probe\_device+0xb4/0xe0
\[    1.340681\]  driver\_probe\_device+0x3c/0x1f8
\[    1.344869\]  \_\_driver\_attach+0xdc/0x1a4
\[    1.348708\]  bus\_for\_each\_dev+0x80/0xcc
\[    1.352548\]  driver\_attach+0x24/0x30
\[    1.356127\]  bus\_add\_driver+0x108/0x1f4
\[    1.359967\]  driver\_register+0x78/0x114
\[    1.363807\]  \_\_platform\_driver\_register+0x24/0x30
\[    1.368515\]  gpmi\_nand\_driver\_init+0x1c/0x28
\[    1.372798\]  do\_one\_initcall+0xbc/0x238
\[    1.376638\]  do\_initcall\_level+0x94/0xb4
\[    1.380565\]  do\_initcalls+0x54/0x94
\[    1.384058\]  do\_basic\_setup+0x1c/0x28
\[    1.387724\]  kernel\_init\_freeable+0x110/0x188
\[    1.392084\]  kernel\_init+0x20/0x1a0
\[    1.395578\]  ret\_from\_fork+0x10/0x20
\[    1.399157\] ---\[ end trace 0000000000000000 \]---
\[    1.403782\] ------------\[ cut here \]------------

## Affected and fixed versions

- Linux: \>= ad9b10d1eaada169bd764abcab58f08538877e26, \< 9e54ce00505d291ef88f2c05e5eef46269daf83c; \>= ad9b10d1eaada169bd764abcab58f08538877e26, \< 12b58961de0bd88b3c7dfa5d21f6d67f4678b780 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50283.md
Affected: Linux >= ad9b10d1eaada169bd764abcab58f08538877e26, < 9e54ce00505d291ef88f2c05e5eef46269daf83c; >= ad9b10d1eaada169bd764abcab58f08538877e26, < 12b58961de0bd88b3c7dfa5d21f6d67f4678b780; Linux 6.0
Fixed in: Linux 9e54ce00505d291ef88f2c05e5eef46269daf83c, Linux 12b58961de0bd88b3c7dfa5d21f6d67f4678b780

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

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

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

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

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

Linux \>= ad9b10d1eaada169bd764abcab58f08538877e26, \< 9e54ce00505d291ef88f2c05e5eef46269daf83c; \>= ad9b10d1eaada169bd764abcab58f08538877e26, \< 12b58961de0bd88b3c7dfa5d21f6d67f4678b780; Linux 6.0.

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

Yes. Fixed in Linux 9e54ce00505d291ef88f2c05e5eef46269daf83c, Linux 12b58961de0bd88b3c7dfa5d21f6d67f4678b780. Upgrade Linux to 12b58961de0bd88b3c7dfa5d21f6d67f4678b780 or later.

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

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/9e54ce00505d291ef88f2c05e5eef46269daf83c>
- patch: <https://git.kernel.org/stable/c/12b58961de0bd88b3c7dfa5d21f6d67f4678b780>

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

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