# CVE-2022-49449: pinctrl: renesas: rzn1: 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.27%, higher than 20% of CVEs (2026-12-02)
- Published: 2025-02-26T02:12:59.709Z
- Modified: 2026-06-17T05:18:05.000Z
- 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: rzn1: 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 4e53b5004745ef26a37bca4933b2d3ea71313f2a before b646e0cfeb38bf5f1944fd548f1dfa9b129fa00c; from 4e53b5004745ef26a37bca4933b2d3ea71313f2a before c16b59d445135c8026a04e388d8b2762feaa3b3b; from 4e53b5004745ef26a37bca4933b2d3ea71313f2a before 34c719b8fdfbd0c7c54cae56e6b0f16e9f8bf03e; from 4e53b5004745ef26a37bca4933b2d3ea71313f2a before 01f9e02e0f13df3fd291676dc80054e977be1601; from 4e53b5004745ef26a37bca4933b2d3ea71313f2a before 2f661477c2bb8068194dbba9738d05219f111c6e; 4.20 (not affected: before 4.20; 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: 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/b646e0cfeb38bf5f1944fd548f1dfa9b129fa00c> (patch)
- <https://git.kernel.org/stable/c/c16b59d445135c8026a04e388d8b2762feaa3b3b> (patch)
- <https://git.kernel.org/stable/c/34c719b8fdfbd0c7c54cae56e6b0f16e9f8bf03e> (patch)
- <https://git.kernel.org/stable/c/01f9e02e0f13df3fd291676dc80054e977be1601> (patch)
- <https://git.kernel.org/stable/c/2f661477c2bb8068194dbba9738d05219f111c6e> (patch)

## Sources

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

---

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