CVE-2022-49494
published 2025-02-26CVE-2022-49494: 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…
PriorityP420medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.26%
18.0th percentile
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.
Affected
15 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 5.18.5-1 (bookworm) | linux 5.18.5-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= ec4ba01e894d3165e4d1ccbef782ef5593b708b4 < 81f1ddffdc22ca5789e33b9d4712914e302090c1 | 81f1ddffdc22ca5789e33b9d4712914e302090c1 |
| linux | linux | >= ec4ba01e894d3165e4d1ccbef782ef5593b708b4 < 0cfee868b89ffa945f3d535ee5c985cb40c5a0f8 | 0cfee868b89ffa945f3d535ee5c985cb40c5a0f8 |
| linux | linux | >= ec4ba01e894d3165e4d1ccbef782ef5593b708b4 < 069af5e27c1b0f7677ef76d8d3102e503ca4f80b | 069af5e27c1b0f7677ef76d8d3102e503ca4f80b |
| linux | linux | >= ec4ba01e894d3165e4d1ccbef782ef5593b708b4 < 13b60d3dc84b47307669edb66b633b18466014b4 | 13b60d3dc84b47307669edb66b633b18466014b4 |
| linux | linux | >= ec4ba01e894d3165e4d1ccbef782ef5593b708b4 < a28ed09dafee20da51eb26452950839633afd824 | a28ed09dafee20da51eb26452950839633afd824 |
| linux | linux_kernel | >= 0 < 5.10.127-1 | 5.10.127-1 |
| linux | linux_kernel | >= 0 < 5.18.5-1 | 5.18.5-1 |
| linux | linux_kernel | >= 0 < 5.18.5-1 | 5.18.5-1 |
| linux | linux_kernel | >= 0 < 5.18.5-1 | 5.18.5-1 |
| linux | linux_kernel | >= 5.11 < 5.15.46 | 5.15.46 |
| linux | linux_kernel | >= 5.16 < 5.17.14 | 5.17.14 |
| linux | linux_kernel | >= 5.18 < 5.18.3 | 5.18.3 |
| linux | linux_kernel | >= 5.5 < 5.10.121 | 5.10.121 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
kernel: mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()
vendor_redhat·2025-02-26·CVSS 5.5
CVE-2022-49494 [MEDIUM] CWE-476 kernel: mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()
kernel: 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.
Package: kernel (Red Hat Enterprise Linux 10) - Not affected
Package: kernel (Red Hat Enterprise Linux 6) - Not affected
Package: kernel (Red Hat Enterprise Linux 7) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 7) - Not affected
Package: kernel (Red Hat Enterprise Linux 8) - Not affected
Package:
Debian
CVE-2022-49494: linux - In the Linux kernel, the following vulnerability has been resolved: mtd: rawnan...
vendor_debian·2022·CVSS 5.5
CVE-2022-49494 [MEDIUM] CVE-2022-49494: linux - In the Linux kernel, the following vulnerability has been resolved: mtd: rawnan...
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.
Scope: local
bookworm: resolved (fixed in 5.18.5-1)
bullseye: resolved (fixed in 5.10.127-1)
forky: resolved (fixed in 5.18.5-1)
sid: resolved (fixed in 5.18.5-1)
trixie: resolved (fixed in 5.18.5-1)
GHSA
GHSA-r8c7-cxqw-v5hj: In the Linux kernel, the following vulnerability has been resolved:
mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()
It
ghsa_unreviewed·2025-03-17
CVE-2022-49494 [MEDIUM] CWE-476 GHSA-r8c7-cxqw-v5hj: In the Linux kernel, the following vulnerability has been resolved:
mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe()
It
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.
OSV
CVE-2022-49494: In the Linux kernel, the following vulnerability has been resolved: mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe() It w
osv·2025-02-26·CVSS 5.5
CVE-2022-49494 [MEDIUM] CVE-2022-49494: In the Linux kernel, the following vulnerability has been resolved: mtd: rawnand: cadence: fix possible null-ptr-deref in cadence_nand_dt_probe() It w
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.
No detection rules found.
No public exploits indexed.
https://git.kernel.org/stable/c/069af5e27c1b0f7677ef76d8d3102e503ca4f80bhttps://git.kernel.org/stable/c/0cfee868b89ffa945f3d535ee5c985cb40c5a0f8https://git.kernel.org/stable/c/13b60d3dc84b47307669edb66b633b18466014b4https://git.kernel.org/stable/c/81f1ddffdc22ca5789e33b9d4712914e302090c1https://git.kernel.org/stable/c/a28ed09dafee20da51eb26452950839633afd824
2025-02-26
Published