iommu/mediatek: Check return value after calling platform_get_resource() (Linux Linux)

CVE-2022-50524
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: iommu/mediatek: Check return value after calling platform_get_resource() platform_get_resource() may return NULL pointer, we need check its return value to avoid null-ptr-deref in resource_size().

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

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 42d57fc58aebc5801804424082028f43bad1b73c < bfebf05883cdcf9ac983033987fae869bd59ca53 ; affected 42d57fc58aebc5801804424082028f43bad1b73c < feca904412483b2e0a903dd1f2e2843afd445f8c ; affected 42d57fc58aebc5801804424082028f43bad1b73c < 73b6924cdebc899de9b719e1319aa86c6bed4acf
Linux · Linuxaffected 5.19 ; unaffected 0 < 5.19 ; unaffected 6.0.16 ≤ 6.0.* ; unaffected 6.1.2 ≤ 6.1.* ; unaffected 6.2 ≤ *

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