ASoC: mxs: Fix error handling in mxs_sgtl5000_probe (Linux Linux)

CVE-2022-49242
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: ASoC: mxs: Fix error handling in mxs_sgtl5000_probe This function only calls of_node_put() in the regular path. And it will cause refcount leak in error paths. For example, when codec_np is NULL, saif_np[0] and saif_np[1] are not NULL, it will cause leaks. of_node_put() will check if the node pointer is NULL, so we can call it directly to release the refcount of regular pointers.

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:HCISA-ADP
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)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected e968194b45c4e8077dada75c5bae5660b37628fe < f16ad2c0e22687f80e5981c67374023f51c204b9 ; affected e968194b45c4e8077dada75c5bae5660b37628fe < 790d2628e3fcc819d8f5572eb5615113fb2e727a ; affected e968194b45c4e8077dada75c5bae5660b37628fe < f8d38056bcd220ea6f0802a5586d1a12ebcce849 ; affected e968194b45c4e8077dada75c5bae5660b37628fe < 67e12f1cb2f97468c12b59e21975eaa0f332e7d2 ; affected e968194b45c4e8077dada75c5bae5660b37628fe < 86b6cf989437e694fd0a15782b5a513853a739e0 ; affected e968194b45c4e8077dada75c5bae5660b37628fe < 44acdaf7acb60054d872bed18ce0e7db8ce900ce
Linux · Linuxaffected 3.5 ; unaffected 0 < 3.5 ; unaffected 4.9.311 ≤ 4.9.* ; unaffected 4.14.276 ≤ 4.14.* ; unaffected 4.19.238 ≤ 4.19.* ; unaffected 5.4.189 ≤ 5.4.*

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