CVE-2022-50160

mtd: maps: Fix refcount leak in ap_flash_init

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

Read the record on cve.org

Description

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

mtd: maps: Fix refcount leak in ap_flash_init

of_find_matching_node() 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
  • b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 to before 995fb2874bb5696357846a91e59181c600e6aac8Affected
  • b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 to before d10855876a6f47add6ff621cef25cc0171dac162Affected
  • b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 to before 80b1465b2ae81ebb59bbe62bcb7a7f7d4e9ece6fAffected
  • b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 to before 941ef6997f9db704fe4fd62fc01e420fdd5048b2Affected
  • b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 to before d5730780e9ea84e5476752a47c749036c6a74af5Affected
  • b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 to before a74322d4b897ddc268b340c4a397f6066c2f945dAffected
  • b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 to before babd7b0124650ab71a6487e38588b8659b3aa2dcAffected
  • b0afd44bc192ff4c0e90a5fc1724350bcfc32b33 to before 77087a04c8fd554134bddcb8a9ff87b21f357926Affected
LinuxLinux
  • 4.7Affected
  • before 4.7Not affected
  • 4.14.291 through 4.14.*Not affected
  • 4.19.256 through 4.19.*Not 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.