CVE-2022-49494: mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()
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.
Security readout for executives and security teams
Plain-English summary
CVE-2022-49494 is a Linux kernel null pointer dereference in the Cadence raw NAND driver. On affected systems, a missing platform resource can trigger a crash during driver probing. The documented impact is availability, not data theft or tampering.
Executive priority
Treat this as a moderate availability risk for specialized Linux and embedded systems. It is not currently evidenced as exploited in the supplied sources, but kernel crashes on storage-controller paths can create operational outages where affected hardware is deployed.
Technical view
In cadence_nand_dt_probe(), platform_get_resource() may return NULL, but the code could still use the resource pointer. The kernel fix moves resource use behind checked mapping logic and simplifies it with devm_platform_get_and_ioremap_resource(). CVSS is 5.5: local, low complexity, low privileges, high availability impact.
Likely exposure
Exposure is most likely on Linux systems or embedded platforms that include the Cadence raw NAND controller driver and run affected kernel builds listed by the CVE source. General servers without this driver or hardware path are less likely exposed.
Exploitation context
The source bundle does not show CISA KEV listing or active exploitation. The CVSS vector indicates local access with low privileges and no user interaction, with impact limited to availability through a potential kernel crash.
Researcher notes
Evidence is limited to the CVE record and Linux stable commit references. Validate exposure by mapping vendor kernels to the upstream fix, because distribution kernels may backport patches without changing upstream version numbers.
Mitigation direction
Update to a kernel or vendor package containing the referenced stable fixes.
Check Linux distribution advisories for backported fixes before relying on version strings.
Prioritize embedded or appliance systems using Cadence raw NAND storage paths.
Avoid direct wrangler or deployment assumptions; follow normal vendor kernel update processes.
Validation and detection
Inventory kernel versions against the CVE affected-version data.
Identify systems with the Cadence raw NAND driver enabled or built in.
Confirm vendor kernel changelogs include the referenced stable commit fix.
Regression test boot and NAND storage access after kernel updates.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.