memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe() (Linux Linux)

CVE-2022-50480
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe() The break of for_each_available_child_of_node() needs a corresponding of_node_put() when the reference 'child' is not used anymore. Here we do not need to call of_node_put() in fail path as '!match' means no break. While the of_platform_device_create() will created a new reference by 'child' but it has considered the refcounting.

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 fee10bd2267868f2a3e7ba008ef7665aac5e4412 < b37f4a711e5d4bf3608ccbc6de82b52e92b441a0 ; affected fee10bd2267868f2a3e7ba008ef7665aac5e4412 < fde46754d5483bc398018bbec3c8ef5c55219e67 ; affected fee10bd2267868f2a3e7ba008ef7665aac5e4412 < 566b143aa5112a0c2784e20603778518bb799537 ; affected fee10bd2267868f2a3e7ba008ef7665aac5e4412 < 44db35ceb94756ba513dcf6b69bf9e949b28469c ; affected fee10bd2267868f2a3e7ba008ef7665aac5e4412 < 49605dc25e7fb33bf8b671279d4468531da90f89 ; affected fee10bd2267868f2a3e7ba008ef7665aac5e4412 < 61b3c876c1cbdb1efd1f52a1f348580e6e14efb6
Linux · Linuxaffected 5.0 ; unaffected 0 < 5.0 ; unaffected 5.4.220 ≤ 5.4.* ; unaffected 5.10.150 ≤ 5.10.* ; unaffected 5.15.75 ≤ 5.15.* ; unaffected 5.19.17 ≤ 5.19.*

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