# CVE-2022-49445: pinctrl: renesas: core: Fix possible null-ptr-deref in sh_pfc_map_resources()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.26%, higher than 19% of CVEs (2026-12-02)
- Published: 2025-02-26T02:12:57.249Z
- Modified: 2026-06-17T05:18:04.173Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

pinctrl: renesas: core: Fix possible null-ptr-deref in sh_pfc_map_resources()

It will cause null-ptr-deref when using 'res', if platform_get_resource()
returns NULL, so move using 'res' after devm_ioremap_resource() that
will check it to avoid null-ptr-deref.
And use devm_platform_get_and_ioremap_resource() to simplify code.

(As written by CVE List.)

## Affected

- Linux Linux: from c7977ec4a33633c8e8d9267dd014356cf857351c before f991879762392c19661af5b722578089a12b305f; from c7977ec4a33633c8e8d9267dd014356cf857351c before 5ed0519d425619b435150372cce2ffeec71581fa; from c7977ec4a33633c8e8d9267dd014356cf857351c before e3a1ad8fd0ac11f4fa1260c23b5db71a25473254; from c7977ec4a33633c8e8d9267dd014356cf857351c before fb4f022b3ad1f3ff3cafdbc7d51896090ae17701; from c7977ec4a33633c8e8d9267dd014356cf857351c before 5376e3d904532e657fd7ca1a9b1ff3d351527b90; 4.3 (not affected: before 4.3; from 5.10.121 up to 5.10.*; from 5.15.46 up to 5.15.*; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 4.3 before 5.10.121; from 5.11 before 5.15.46; from 5.16 before 5.17.14; from 5.18 before 5.18.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/f991879762392c19661af5b722578089a12b305f> (patch)
- <https://git.kernel.org/stable/c/5ed0519d425619b435150372cce2ffeec71581fa> (patch)
- <https://git.kernel.org/stable/c/e3a1ad8fd0ac11f4fa1260c23b5db71a25473254> (patch)
- <https://git.kernel.org/stable/c/fb4f022b3ad1f3ff3cafdbc7d51896090ae17701> (patch)
- <https://git.kernel.org/stable/c/5376e3d904532e657fd7ca1a9b1ff3d351527b90> (patch)

## Sources

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

---

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