iio: adc: men_z188_adc: Fix a resource leak in an error handling path (Linux Linux)

CVE-2022-48928
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: iio: adc: men_z188_adc: Fix a resource leak in an error handling path If iio_device_register() fails, a previous ioremap() is left unbalanced. Update the error handling path and add the missing iounmap() call, as already done in the remove function.

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 74aeac4da66fbfa246edbfc849002eac9b5af9ca < 0f88722313645a903f4d420ba61ddc690ec2481d ; affected 74aeac4da66fbfa246edbfc849002eac9b5af9ca < c5723b422f564af15f2e3bc0592fd6376a0a6c45 ; affected 74aeac4da66fbfa246edbfc849002eac9b5af9ca < 53d43a9c8dd224e66559fe86af1e473802c7130e ; affected 74aeac4da66fbfa246edbfc849002eac9b5af9ca < ce1076b33e299dc8d270e4450a420a18bfb3e190 ; affected 74aeac4da66fbfa246edbfc849002eac9b5af9ca < 1aa12ecfdcbafebc218910ec47acf6262e600cf5 ; affected 74aeac4da66fbfa246edbfc849002eac9b5af9ca < fe73477802981bd0d0d70f2b22f109bcca801bdb
Linux · Linuxaffected 3.15 ; unaffected 0 < 3.15 ; unaffected 4.9.304 ≤ 4.9.* ; unaffected 4.14.269 ≤ 4.14.* ; unaffected 4.19.232 ≤ 4.19.* ; unaffected 5.4.182 ≤ 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