ASoC: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_probe (Linux Linux)

CVE-2022-49244
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: mediatek: mt8192-mt6359: Fix error handling in mt8192_mt6359_dev_probe The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. This function only calls of_node_put() in the regular path. And it will cause refcount leak in error paths. Fix this by calling of_node_put() in error handling too.

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 286c6f7b28fab19d649c2e1f3bc18fdecdbadfe5 < 87e04a89c31e792eef62bcba6ebb77fd323d28a1 ; affected d1be8577f0b2f679095d237aaf281dca344f06c4 < d5a38629f1aaf397fd471b27e49d55289ddc0656 ; affected 4e28491a7a198c668437f2be8a91a76aa52f20eb < 1765787ec02e824f4f5e672cf269280a5da09d2f ; affected 4e28491a7a198c668437f2be8a91a76aa52f20eb < e45ac7831ff3e2934d58cce319c17c8ec763c95c ; affected 5.15.17 < 5.15.33 ; affected 5.16.3 < 5.16.19
Linux · Linuxaffected 5.17 ; unaffected 0 < 5.17 ; unaffected 5.15.33 ≤ 5.15.* ; unaffected 5.16.19 ≤ 5.16.* ; unaffected 5.17.2 ≤ 5.17.* ; unaffected 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