CVE-2022-50524Published Oct 7, 2025 · Oct 7Updated Oct 28
iommu/mediatek: Check return value after calling platform_get_resource()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Original 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().
From the CVE record · Linux
References
- git.kernel.org/stable/c/bfebf05883cdcf9ac983033987fae869bd59ca53Patch
- git.kernel.org/stable/c/feca904412483b2e0a903dd1f2e2843afd445f8cPatch
- git.kernel.org/stable/c/73b6924cdebc899de9b719e1319aa86c6bed4acfPatch
- github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50524.json
- nvd.nist.gov/vuln/detail/CVE-2022-50524
- git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git