In the Linux kernel, the following vulnerability has been resolved:
net: dsa: mv88e6060: prevent crash on an unused port
If the port isn't a CPU port nor a user port, 'cpudp' is a null pointer and a crash happened on dereferencing it in mv88e6060setup_port():
[ 9.575872] Unable to handle kernel NULL pointer dereference at virtual address 00000014 ... [ 9.942216] mv88e6060setup from dsaregisterswitch+0x814/0xe84 [ 9.948616] dsaregisterswitch from mdioprobe+0x2c/0x54 [ 9.954433] mdioprobe from reallyprobe.part.0+0x98/0x2a0 [ 9.960375] reallyprobe.part.0 from driverprobedevice+0x30/0x10c [ 9.967029] driverprobedevice from _deviceattachdriver+0xb8/0x13c [ 9.973946] _deviceattachdriver from busforeachdrv+0x90/0xe0 [ 9.980509] busforeachdrv from _deviceattach+0x110/0x184 [ 9.986632] _deviceattach from busprobedevice+0x8c/0x94 [ 9.992577] busprobedevice from deferredprobeworkfunc+0x78/0xa8 [ 9.999311] deferredprobeworkfunc from processonework+0x290/0x73c [ 10.006292] processonework from workerthread+0x30/0x4b8 [ 10.012155] workerthread from kthread+0xd4/0x10c [ 10.017238] kthread from retfrom_fork+0x14/0x3c
[
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@246bbf2f977ea36aaf41f5d24370fef433250728",
"target": {
"function": "mv88e6060_setup_port",
"file": "drivers/net/dsa/mv88e6060.c"
},
"deprecated": false,
"id": "CVE-2022-50047-1b8e320b",
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"length": 656.0,
"function_hash": "115885596816952062631750716925645726383"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dd236b62d25e44ecfa26b0910a12f8d8251aff00",
"target": {
"file": "drivers/net/dsa/mv88e6060.c"
},
"deprecated": false,
"id": "CVE-2022-50047-2d12004a",
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"112674266648977786449095690353502103114",
"203059488151203673701446414295799630138",
"279599613598763933178689048810329872842"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92dc64e8f591425ce4dabf7d479ebf6e67fb8853",
"target": {
"function": "mv88e6060_setup_port",
"file": "drivers/net/dsa/mv88e6060.c"
},
"deprecated": false,
"id": "CVE-2022-50047-6ec75e91",
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"length": 656.0,
"function_hash": "115885596816952062631750716925645726383"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@dd236b62d25e44ecfa26b0910a12f8d8251aff00",
"target": {
"function": "mv88e6060_setup_port",
"file": "drivers/net/dsa/mv88e6060.c"
},
"deprecated": false,
"id": "CVE-2022-50047-7a54a172",
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"length": 656.0,
"function_hash": "115885596816952062631750716925645726383"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f3a4b55829617cad2d36fa6524367ef629566ba6",
"target": {
"file": "drivers/net/dsa/mv88e6060.c"
},
"deprecated": false,
"id": "CVE-2022-50047-8f1db189",
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"112674266648977786449095690353502103114",
"203059488151203673701446414295799630138",
"279599613598763933178689048810329872842"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cb1753bc689c7a7f94da6eee7efc1ae6d8abb36c",
"target": {
"function": "mv88e6060_setup_port",
"file": "drivers/net/dsa/mv88e6060.c"
},
"deprecated": false,
"id": "CVE-2022-50047-a275d9e1",
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"length": 656.0,
"function_hash": "115885596816952062631750716925645726383"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f3a4b55829617cad2d36fa6524367ef629566ba6",
"target": {
"function": "mv88e6060_setup_port",
"file": "drivers/net/dsa/mv88e6060.c"
},
"deprecated": false,
"id": "CVE-2022-50047-a5fcd1f5",
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"length": 656.0,
"function_hash": "115885596816952062631750716925645726383"
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cb1753bc689c7a7f94da6eee7efc1ae6d8abb36c",
"target": {
"file": "drivers/net/dsa/mv88e6060.c"
},
"deprecated": false,
"id": "CVE-2022-50047-ae8a90fa",
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"112674266648977786449095690353502103114",
"203059488151203673701446414295799630138",
"279599613598763933178689048810329872842"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92dc64e8f591425ce4dabf7d479ebf6e67fb8853",
"target": {
"file": "drivers/net/dsa/mv88e6060.c"
},
"deprecated": false,
"id": "CVE-2022-50047-ba8e5c8e",
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"112674266648977786449095690353502103114",
"203059488151203673701446414295799630138",
"279599613598763933178689048810329872842"
]
}
},
{
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@246bbf2f977ea36aaf41f5d24370fef433250728",
"target": {
"file": "drivers/net/dsa/mv88e6060.c"
},
"deprecated": false,
"id": "CVE-2022-50047-ff7b2698",
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"112674266648977786449095690353502103114",
"203059488151203673701446414295799630138",
"279599613598763933178689048810329872842"
]
}
}
]