mtd: partitions: Fix refcount leak in parse_redboot_of (Linux Linux)

CVE-2022-50158
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.20 % · percentile 9 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 6490ed7c4684caf9851a0b98e0ab17a8d693dada < f3cc27198c5d78cdda60a55ae749f815cd1fe5eb ; affected 2f8824f556a3ebea9840c53326e55cc183316611 < 55d0f7da66dec93c4d53d0886a1555618079a900 ; affected 237960880960863fb41888763d635b384cffb104 < 8ea607579d300b2f7fc997f3dd20949114565fcd ; affected 237960880960863fb41888763d635b384cffb104 < 7ec48ac18d8f9e002ce9bfbad32741086739e499 ; affected 237960880960863fb41888763d635b384cffb104 < e24af43d0cbe9f6aaa413c15ccce50bbbfd61e0e ; affected 237960880960863fb41888763d635b384cffb104 < 9f7e62815cf3cbbcb1b8cb21649fb4dfdb3aa016
Linux · Linuxaffected 5.14 ; unaffected 0 < 5.14 ; unaffected 5.4.211 ≤ 5.4.* ; unaffected 5.10.137 ≤ 5.10.* ; unaffected 5.15.61 ≤ 5.15.* ; unaffected 5.18.18 ≤ 5.18.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD