CVE-2022-50158

mtd: partitions: Fix refcount leak in parse_redboot_of

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 23, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

Description

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

mtd: partitions: Fix refcount leak in parse_redboot_of

of_get_child_by_name() 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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6490ed7c4684caf9851a0b98e0ab17a8d693dada to before f3cc27198c5d78cdda60a55ae749f815cd1fe5ebAffected
  • 2f8824f556a3ebea9840c53326e55cc183316611 to before 55d0f7da66dec93c4d53d0886a1555618079a900Affected
  • 237960880960863fb41888763d635b384cffb104 to before 8ea607579d300b2f7fc997f3dd20949114565fcdAffected
  • 237960880960863fb41888763d635b384cffb104 to before 7ec48ac18d8f9e002ce9bfbad32741086739e499Affected
  • 237960880960863fb41888763d635b384cffb104 to before e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0eAffected
  • 237960880960863fb41888763d635b384cffb104 to before 9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016Affected
  • fa132c7ea108eacc67357ffe3172d3e68fcd71a2Affected
  • d5023eb76f0dc651558b0c7ba04565891ff18435Affected
  • 5.4.132 to before 5.4.211Affected
  • 5.10.50 to before 5.10.137Affected
  • 5.12.17 to before 5.13Affected
  • 5.13.2 to before 5.14Affected
LinuxLinux
  • 5.14Affected
  • before 5.14Not affected
  • 5.4.211 through 5.4.*Not affected
  • 5.10.137 through 5.10.*Not affected
  • 5.15.61 through 5.15.*Not affected
  • 5.18.18 through 5.18.*Not affected
  • 5.19.2 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.