# CVE-2022-50155: mtd: parsers: ofpart: Fix refcount leak in bcm4908_partitions_fw_offset

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-06-18T11:03:13.268Z
- Modified: 2026-06-17T05:22:52.280Z
- Assigned by: Linux

## Description

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

mtd: parsers: ofpart: Fix refcount leak in bcm4908_partitions_fw_offset

of_find_node_by_path() returns a node pointer with refcount incremented,
we should use of_node_put() on it when not need anymore.
Add missing of_node_put() to avoid refcount leak.

(As written by CVE List.)

## Affected

- Linux Linux: from bb17230c61a6424b622e92006ec52ba23aa5a967 before 762475464982b15014f364ec0cf2a843407f5af1; from bb17230c61a6424b622e92006ec52ba23aa5a967 before 3193c3a3f4fca65cb06d9d48d07fb96bc1f5b2bd; from bb17230c61a6424b622e92006ec52ba23aa5a967 before 01bc3840d943cf725dea6ca13e11ffda82bad49a; from bb17230c61a6424b622e92006ec52ba23aa5a967 before e607879b0da18c451de5e91daf239cc2f2f8ff2d; 5.13 (not affected: before 5.13; from 5.15.61 up to 5.15.*; from 5.18.18 up to 5.18.*; from 5.19.2 up to 5.19.*; from 6.0 up to *)
- linux linux_kernel: from 5.13 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2

## References

- <https://git.kernel.org/stable/c/762475464982b15014f364ec0cf2a843407f5af1> (patch)
- <https://git.kernel.org/stable/c/3193c3a3f4fca65cb06d9d48d07fb96bc1f5b2bd> (patch)
- <https://git.kernel.org/stable/c/01bc3840d943cf725dea6ca13e11ffda82bad49a> (patch)
- <https://git.kernel.org/stable/c/e607879b0da18c451de5e91daf239cc2f2f8ff2d> (patch)

## Sources

- CVE List: [CVE-2022-50155](https://www.cve.org/CVERecord?id=CVE-2022-50155), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50155](https://nvd.nist.gov/vuln/detail/CVE-2022-50155), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50155 · Whole record: https://cve.day/CVE-2022-50155.json · Rebuilt by cve.day 2026-11-25T22:58:21.079Z
