ALSA: aoa: i2sbus: fix possible memory leak in i2sbus_add_dev() (Linux Linux)

CVE-2022-50431
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: ALSA: aoa: i2sbus: fix possible memory leak in i2sbus_add_dev() dev_set_name() in soundbus_add_one() allocates memory for name, it need be freed when of_device_register() fails, call soundbus_dev_put() to give up the reference that hold in device_initialize(), so that it can be freed in kobject_cleanup() when the refcount hit to 0. And other resources are also freed in i2sbus_release_dev(), so it can return 0 directly.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

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 f3d9478b2ce468c3115b02ecae7e975990697f15 < fd410d24665e4efb3c1796797181265efe553e9c ; affected f3d9478b2ce468c3115b02ecae7e975990697f15 < 802532a50acf501fdafe38a84ca2aa886d68af68 ; affected f3d9478b2ce468c3115b02ecae7e975990697f15 < 027fee10e3a400cf6f3237374a1248da1082807b ; affected f3d9478b2ce468c3115b02ecae7e975990697f15 < 5bdea674534153110b90d70b02f2fbaf48b2c0eb ; affected f3d9478b2ce468c3115b02ecae7e975990697f15 < ce6fd1c382a38b75557db85a2fe99d285540a03d ; affected f3d9478b2ce468c3115b02ecae7e975990697f15 < e81d7826b8f40430a1ea1b330e24d9a9eb4512c4
Linux · Linuxaffected 2.6.18 ; unaffected 0 < 2.6.18 ; unaffected 4.9.332 ≤ 4.9.* ; unaffected 4.14.298 ≤ 4.14.* ; unaffected 4.19.264 ≤ 4.19.* ; unaffected 5.4.223 ≤ 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