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.
[
{
"deprecated": false,
"target": {
"function": "ebu_nand_probe",
"file": "drivers/mtd/nand/raw/intel-nand-controller.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8e262eb7575a4a2412f30f7a1b293875aceba80",
"digest": {
"function_hash": "40613365465548462557104243867603903120",
"length": 3026.0
},
"id": "CVE-2022-49487-0ebd4c02",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"function": "ebu_nand_probe",
"file": "drivers/mtd/nand/raw/intel-nand-controller.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e5b1e419cdb6dd8709eb05ed34039a3ded8e6003",
"digest": {
"function_hash": "40613365465548462557104243867603903120",
"length": 3026.0
},
"id": "CVE-2022-49487-39f7e376",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "drivers/mtd/nand/raw/intel-nand-controller.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e5b1e419cdb6dd8709eb05ed34039a3ded8e6003",
"digest": {
"threshold": 0.9,
"line_hashes": [
"14998794454608152297486099064210310011",
"15179322491443428624891351920376609458",
"176276037224968616468980445989148818326",
"266834349631591144355562954675914701831",
"251281123019977877157385374228694756196",
"140727775911582159033252768494975775609"
]
},
"id": "CVE-2022-49487-3ebdf184",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "drivers/mtd/nand/raw/intel-nand-controller.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ddf66aefd685fd46500b9917333e1b1e118276dc",
"digest": {
"threshold": 0.9,
"line_hashes": [
"14998794454608152297486099064210310011",
"15179322491443428624891351920376609458",
"176276037224968616468980445989148818326",
"266834349631591144355562954675914701831",
"251281123019977877157385374228694756196",
"140727775911582159033252768494975775609"
]
},
"id": "CVE-2022-49487-40a790e8",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"function": "ebu_nand_probe",
"file": "drivers/mtd/nand/raw/intel-nand-controller.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ddf66aefd685fd46500b9917333e1b1e118276dc",
"digest": {
"function_hash": "40613365465548462557104243867603903120",
"length": 3026.0
},
"id": "CVE-2022-49487-697641f0",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "drivers/mtd/nand/raw/intel-nand-controller.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@daa5166450b447415aeeaac0199e445bae7bd0f2",
"digest": {
"threshold": 0.9,
"line_hashes": [
"14998794454608152297486099064210310011",
"15179322491443428624891351920376609458",
"176276037224968616468980445989148818326",
"266834349631591144355562954675914701831",
"251281123019977877157385374228694756196",
"140727775911582159033252768494975775609"
]
},
"id": "CVE-2022-49487-b63af550",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"file": "drivers/mtd/nand/raw/intel-nand-controller.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8e262eb7575a4a2412f30f7a1b293875aceba80",
"digest": {
"threshold": 0.9,
"line_hashes": [
"14998794454608152297486099064210310011",
"15179322491443428624891351920376609458",
"176276037224968616468980445989148818326",
"266834349631591144355562954675914701831",
"251281123019977877157385374228694756196",
"140727775911582159033252768494975775609"
]
},
"id": "CVE-2022-49487-d09d4a2f",
"signature_version": "v1"
},
{
"deprecated": false,
"target": {
"function": "ebu_nand_probe",
"file": "drivers/mtd/nand/raw/intel-nand-controller.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@daa5166450b447415aeeaac0199e445bae7bd0f2",
"digest": {
"function_hash": "40613365465548462557104243867603903120",
"length": 3026.0
},
"id": "CVE-2022-49487-e63fc1c9",
"signature_version": "v1"
}
]