In the Linux kernel, the following vulnerability has been resolved:
mtd: rawnand: intel: fix possible null-ptr-deref in ebunandprobe()
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.
[
{
"id": "CVE-2022-49487-0ebd4c02",
"target": {
"function": "ebu_nand_probe",
"file": "drivers/mtd/nand/raw/intel-nand-controller.c"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8e262eb7575a4a2412f30f7a1b293875aceba80",
"deprecated": false,
"digest": {
"length": 3026.0,
"function_hash": "40613365465548462557104243867603903120"
},
"signature_type": "Function"
},
{
"id": "CVE-2022-49487-d09d4a2f",
"target": {
"file": "drivers/mtd/nand/raw/intel-nand-controller.c"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8e262eb7575a4a2412f30f7a1b293875aceba80",
"deprecated": false,
"digest": {
"line_hashes": [
"14998794454608152297486099064210310011",
"15179322491443428624891351920376609458",
"176276037224968616468980445989148818326",
"266834349631591144355562954675914701831",
"251281123019977877157385374228694756196",
"140727775911582159033252768494975775609"
],
"threshold": 0.9
},
"signature_type": "Line"
}
]