CVE-2022-49494

Source
https://cve.org/CVERecord?id=CVE-2022-49494
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49494.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49494
Downstream
Related
Published
2025-02-26T02:13:30.184Z
Modified
2026-03-20T12:24:34.781369Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()
Details

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

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

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

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49494.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ec4ba01e894d3165e4d1ccbef782ef5593b708b4
Fixed
81f1ddffdc22ca5789e33b9d4712914e302090c1
Fixed
0cfee868b89ffa945f3d535ee5c985cb40c5a0f8
Fixed
069af5e27c1b0f7677ef76d8d3102e503ca4f80b
Fixed
13b60d3dc84b47307669edb66b633b18466014b4
Fixed
a28ed09dafee20da51eb26452950839633afd824

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49494.json"