# CVE-2022-50524: iommu/mediatek: Check return value after calling platform_get_resource()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-07T15:19:17.251Z
- Modified: 2026-06-17T05:23:43.397Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 42d57fc58aebc5801804424082028f43bad1b73c before bfebf05883cdcf9ac983033987fae869bd59ca53; from 42d57fc58aebc5801804424082028f43bad1b73c before feca904412483b2e0a903dd1f2e2843afd445f8c; from 42d57fc58aebc5801804424082028f43bad1b73c before 73b6924cdebc899de9b719e1319aa86c6bed4acf; 5.19 (not affected: before 5.19; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.19 before 6.0.16; from 6.1 before 6.1.2

## References

- <https://git.kernel.org/stable/c/bfebf05883cdcf9ac983033987fae869bd59ca53> (patch)
- <https://git.kernel.org/stable/c/feca904412483b2e0a903dd1f2e2843afd445f8c> (patch)
- <https://git.kernel.org/stable/c/73b6924cdebc899de9b719e1319aa86c6bed4acf> (patch)

## Sources

- CVE List: [CVE-2022-50524](https://www.cve.org/CVERecord?id=CVE-2022-50524), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50524](https://nvd.nist.gov/vuln/detail/CVE-2022-50524), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50524 · Whole record: https://cve.day/CVE-2022-50524.json · Rebuilt by cve.day 2026-11-25T22:58:21.257Z
