{"id":"CVE-2022-49494","aliases":["CVE-2022-49494"],"related":[],"kind":"vulnerability","state":"published","title":"mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()\n\nIt will cause null-ptr-deref when using 'res', if platform_get_resource()\nreturns NULL, so move using 'res' after devm_ioremap_resource() that\nwill check it to avoid null-ptr-deref.\nAnd use devm_platform_get_and_ioremap_resource() to simplify code.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()\n\nIt will cause null-ptr-deref when using 'res', if platform_get_resource()\nreturns NULL, so move using 'res' after devm_ioremap_resource() that\nwill check it to avoid null-ptr-deref.\nAnd use devm_platform_get_and_ioremap_resource() to simplify code.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mtd: rawnand: cadence: se corrige un posible null-ptr-deref en cadence_nand_dt_probe(). Provocará un null-ptr-deref al usar 'res', si platform_get_resource() devuelve NULL, así que pase a usar 'res' después de devm_ioremap_resource() que lo comprobará para evitar un null-ptr-deref. Y use devm_platform_get_and_ioremap_resource() para simplificar el código.","source":"nvd"}],"published":"2025-02-26T02:13:30.184Z","modified":"2026-06-17T05:18:13.830Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"ec4ba01e894d3165e4d1ccbef782ef5593b708b4","fixed":"81f1ddffdc22ca5789e33b9d4712914e302090c1","status":"affected"},{"type":"git","introduced":"ec4ba01e894d3165e4d1ccbef782ef5593b708b4","fixed":"0cfee868b89ffa945f3d535ee5c985cb40c5a0f8","status":"affected"},{"type":"git","introduced":"ec4ba01e894d3165e4d1ccbef782ef5593b708b4","fixed":"069af5e27c1b0f7677ef76d8d3102e503ca4f80b","status":"affected"},{"type":"git","introduced":"ec4ba01e894d3165e4d1ccbef782ef5593b708b4","fixed":"13b60d3dc84b47307669edb66b633b18466014b4","status":"affected"},{"type":"git","introduced":"ec4ba01e894d3165e4d1ccbef782ef5593b708b4","fixed":"a28ed09dafee20da51eb26452950839633afd824","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"5.10.121","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.46","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.14","lastAffected":"5.17.*","status":"unaffected"},{"type":"semver","introduced":"5.18.3","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.5","fixed":"5.10.121"},{"status":"affected","introduced":"5.11","fixed":"5.15.46"},{"status":"affected","introduced":"5.16","fixed":"5.17.14"},{"status":"affected","introduced":"5.18","fixed":"5.18.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/81f1ddffdc22ca5789e33b9d4712914e302090c1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0cfee868b89ffa945f3d535ee5c985cb40c5a0f8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/069af5e27c1b0f7677ef76d8d3102e503ca4f80b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/13b60d3dc84b47307669edb66b633b18466014b4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a28ed09dafee20da51eb26452950839633afd824","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:38:52.763Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49494","url":"https://www.cve.org/CVERecord?id=CVE-2022-49494","licence":"CVE Terms of Use","modified":"2026-05-11T19:00:59.213Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49494","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49494","licence":"Public domain","modified":"2026-06-17T05:18:13.830Z"}],"updatedAt":"2026-11-25T22:58:20.689Z","epss":{"score":0.00268,"percentile":0.20284,"date":"2026-12-01T12:00:22.000Z"}}