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.
{ "vanir_signatures": [ { "target": { "function": "pcs_set_mux", "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b763f7de108cb1a5ad5ed08e617d677341947cb", "digest": { "length": 776.0, "function_hash": "162717863998255486546680934152656044591" }, "id": "CVE-2022-48708-1061ec5d", "deprecated": false, "signature_type": "Function", "signature_version": "v1" }, { "target": { "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1177bdafe87cbe543a2dc48a9bbac265aa5864db", "digest": { "threshold": 0.9, "line_hashes": [ "186875178751407834302390568409409778430", "227442466147464160748668762984589354100", "273132240007863800067107229882830794377", "248410241654507074434331229712809464380" ] }, "id": "CVE-2022-48708-112c5fff", "deprecated": false, "signature_type": "Line", "signature_version": "v1" }, { "target": { "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@71668706fbe7d20e6f172fa3287fa8aac1b56c26", "digest": { "threshold": 0.9, "line_hashes": [ "186875178751407834302390568409409778430", "227442466147464160748668762984589354100", "273132240007863800067107229882830794377", "248410241654507074434331229712809464380" ] }, "id": "CVE-2022-48708-19c0ac09", "deprecated": false, "signature_type": "Line", "signature_version": "v1" }, { "target": { "function": "pcs_set_mux", "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bcc487001a15f71f103d102cba4ac8145d7a68f2", "digest": { "length": 776.0, "function_hash": "162717863998255486546680934152656044591" }, "id": "CVE-2022-48708-2280d33a", "deprecated": false, "signature_type": "Function", "signature_version": "v1" }, { "target": { "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bcc487001a15f71f103d102cba4ac8145d7a68f2", "digest": { "threshold": 0.9, "line_hashes": [ "186875178751407834302390568409409778430", "227442466147464160748668762984589354100", "273132240007863800067107229882830794377", "248410241654507074434331229712809464380" ] }, "id": "CVE-2022-48708-2e3b8773", "deprecated": false, "signature_type": "Line", "signature_version": "v1" }, { "target": { "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6e2a0521e4e84a2698f2da3950fb5c5496a4d208", "digest": { "threshold": 0.9, "line_hashes": [ "186875178751407834302390568409409778430", "227442466147464160748668762984589354100", "273132240007863800067107229882830794377", "248410241654507074434331229712809464380" ] }, "id": "CVE-2022-48708-2e72a4ac", "deprecated": false, "signature_type": "Line", "signature_version": "v1" }, { "target": { "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b763f7de108cb1a5ad5ed08e617d677341947cb", "digest": { "threshold": 0.9, "line_hashes": [ "186875178751407834302390568409409778430", "227442466147464160748668762984589354100", "273132240007863800067107229882830794377", "248410241654507074434331229712809464380" ] }, "id": "CVE-2022-48708-3840b4d0", "deprecated": false, "signature_type": "Line", "signature_version": "v1" }, { "target": { "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2d73e6d4822140445ad4a7b1c6091e0f5fe703b", "digest": { "threshold": 0.9, "line_hashes": [ "186875178751407834302390568409409778430", "227442466147464160748668762984589354100", "273132240007863800067107229882830794377", "248410241654507074434331229712809464380" ] }, "id": "CVE-2022-48708-5a9de0d1", "deprecated": false, "signature_type": "Line", "signature_version": "v1" }, { "target": { "function": "pcs_set_mux", "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1177bdafe87cbe543a2dc48a9bbac265aa5864db", "digest": { "length": 776.0, "function_hash": "162717863998255486546680934152656044591" }, "id": "CVE-2022-48708-6332b4a0", "deprecated": false, "signature_type": "Function", "signature_version": "v1" }, { "target": { "function": "pcs_set_mux", "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e671e63587c92b3fd767cf82e73129f6d5feeb33", "digest": { "length": 776.0, "function_hash": "162717863998255486546680934152656044591" }, "id": "CVE-2022-48708-72eb8ee4", "deprecated": false, "signature_type": "Function", "signature_version": "v1" }, { "target": { "function": "pcs_set_mux", "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@71668706fbe7d20e6f172fa3287fa8aac1b56c26", "digest": { "length": 776.0, "function_hash": "162717863998255486546680934152656044591" }, "id": "CVE-2022-48708-90dfedd1", "deprecated": false, "signature_type": "Function", "signature_version": "v1" }, { "target": { "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e671e63587c92b3fd767cf82e73129f6d5feeb33", "digest": { "threshold": 0.9, "line_hashes": [ "186875178751407834302390568409409778430", "227442466147464160748668762984589354100", "273132240007863800067107229882830794377", "248410241654507074434331229712809464380" ] }, "id": "CVE-2022-48708-a37c0d51", "deprecated": false, "signature_type": "Line", "signature_version": "v1" }, { "target": { "function": "pcs_set_mux", "file": "drivers/pinctrl/pinctrl-single.c" }, "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", "deprecated": false, "signature_type": "Function", "signature_version": "v1" }, { "target": { "function": "pcs_set_mux", "file": "drivers/pinctrl/pinctrl-single.c" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d2d73e6d4822140445ad4a7b1c6091e0f5fe703b", "digest": { "length": 776.0, "function_hash": "162717863998255486546680934152656044591" }, "id": "CVE-2022-48708-f7a50ef7", "deprecated": false, "signature_type": "Function", "signature_version": "v1" } ] }