iio: adc: at91_adc: fix possible memory leak in at91_adc_allocate_trigger() (Linux Linux)

CVE-2022-49794
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: iio: adc: at91_adc: fix possible memory leak in at91_adc_allocate_trigger() If iio_trigger_register() returns error, it should call iio_trigger_free() to give up the reference that hold in iio_trigger_alloc(), so that it can call iio_trig_release() to free memory when the refcount hit to 0.

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 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d < c3ce73f60599a483dca7becd4112508833a40ef9 ; affected 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d < a0d98ae5a62a7bbad8fcf9fa22e0a1274197bbc4 ; affected 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d < 2b29a7f2d52fb5281b30cf61c947d88bab18a29b ; affected 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d < 7b75515728b628a9a7540f201efdeb8ca7299385 ; affected 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d < 85d2a8b287a89853c0dcfc5a97b5e9d36376fe37 ; affected 0e589d5fb3172b0dde7fdad3a4829ce5352dd30d < 1bf8c0aff8fb5c4edf3ba6728e6bedbd610d7f4b
Linux · Linuxaffected 3.5 ; unaffected 0 < 3.5 ; unaffected 4.9.334 ≤ 4.9.* ; unaffected 4.14.300 ≤ 4.14.* ; unaffected 4.19.267 ≤ 4.19.* ; unaffected 5.4.225 ≤ 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