# CVE-2022-49494: mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()

- 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-01)
- Published: 2025-02-26T02:13:30.184Z
- Modified: 2026-06-17T05:18:13.830Z
- 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:

mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()

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 ec4ba01e894d3165e4d1ccbef782ef5593b708b4 before 81f1ddffdc22ca5789e33b9d4712914e302090c1; from ec4ba01e894d3165e4d1ccbef782ef5593b708b4 before 0cfee868b89ffa945f3d535ee5c985cb40c5a0f8; from ec4ba01e894d3165e4d1ccbef782ef5593b708b4 before 069af5e27c1b0f7677ef76d8d3102e503ca4f80b; from ec4ba01e894d3165e4d1ccbef782ef5593b708b4 before 13b60d3dc84b47307669edb66b633b18466014b4; from ec4ba01e894d3165e4d1ccbef782ef5593b708b4 before a28ed09dafee20da51eb26452950839633afd824; 5.5 (not affected: before 5.5; 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 5.5 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/81f1ddffdc22ca5789e33b9d4712914e302090c1> (patch)
- <https://git.kernel.org/stable/c/0cfee868b89ffa945f3d535ee5c985cb40c5a0f8> (patch)
- <https://git.kernel.org/stable/c/069af5e27c1b0f7677ef76d8d3102e503ca4f80b> (patch)
- <https://git.kernel.org/stable/c/13b60d3dc84b47307669edb66b633b18466014b4> (patch)
- <https://git.kernel.org/stable/c/a28ed09dafee20da51eb26452950839633afd824> (patch)

## Sources

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

---

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