In the Linux kernel, the following vulnerability has been resolved:
pinctrl: single: fix potential NULL dereference
Added checking of pointer "function" in pcssetmux(). pinmuxgenericget_function() can return NULL and the pointer "function" was dereferenced without checking against NULL.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"186875178751407834302390568409409778430",
"227442466147464160748668762984589354100",
"273132240007863800067107229882830794377",
"248410241654507074434331229712809464380"
]
},
"id": "CVE-2022-48708-2e72a4ac",
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6e2a0521e4e84a2698f2da3950fb5c5496a4d208"
},
{
"digest": {
"length": 776.0,
"function_hash": "162717863998255486546680934152656044591"
},
"id": "CVE-2022-48708-c547946a",
"signature_version": "v1",
"signature_type": "Function",
"target": {
"function": "pcs_set_mux",
"file": "drivers/pinctrl/pinctrl-single.c"
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6e2a0521e4e84a2698f2da3950fb5c5496a4d208"
}
]