CVE-2022-49494 Details
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.
A null pointer dereference vulnerability has been identified in the Linux kernel's MTD raw NAND Cadence driver. The issue arises in the 'cadence_nand_dt_probe()' function when 'platform_get_resource()' returns NULL, leading to a potential dereference of a null pointer. This vulnerability can be mitigated by rearranging the code to use the resource after it has been properly mapped, and by utilizing 'devm_platform_get_and_ioremap_resource()' to streamline the resource handling.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/069af5e27c1b0f7677ef76d8d3102e503ca4f80b | kernel.org | Patch |
| https://git.kernel.org/stable/c/0cfee868b89ffa945f3d535ee5c985cb40c5a0f8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/13b60d3dc84b47307669edb66b633b18466014b4 | kernel.org | Patch |
| https://git.kernel.org/stable/c/81f1ddffdc22ca5789e33b9d4712914e302090c1 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a28ed09dafee20da51eb26452950839633afd824 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
| CWE-476 | NULL Pointer Dereference | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.5, < 5.10.121 >= 5.11, < 5.15.46 >= 5.16, < 5.17.14 >= 5.18, < 5.18.3 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Mar 17, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |