In the Linux kernel, the following vulnerability has been resolved:
pinctrl: single: fix potential NULL dereference in pcsgetfunction()
pinmuxgenericgetfunction() can return NULL and the pointer 'function' was dereferenced without checking against NULL. Add checking of pointer 'function' in pcsget_function().
Found by code review.
[
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 489.0,
"function_hash": "3870412590669672342071398620815392849"
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a2bab5ed161318f57134716accba0a30f3af191",
"signature_version": "v1",
"id": "CVE-2024-46685-114b5e3f"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 489.0,
"function_hash": "3870412590669672342071398620815392849"
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8f0bd526921b6867c2f10a83cd4fd14139adcd92",
"signature_version": "v1",
"id": "CVE-2024-46685-73a90d11"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 489.0,
"function_hash": "3870412590669672342071398620815392849"
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4ed45fe99ec9e3c9478bd634624cd05a57d002f7",
"signature_version": "v1",
"id": "CVE-2024-46685-73e2ff02"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4ed45fe99ec9e3c9478bd634624cd05a57d002f7",
"signature_version": "v1",
"id": "CVE-2024-46685-7b1fbf13"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 489.0,
"function_hash": "3870412590669672342071398620815392849"
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1c38a62f15e595346a1106025722869e87ffe044",
"signature_version": "v1",
"id": "CVE-2024-46685-8098addc"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@292151af6add3e5ab11b2e9916cffa5f52859a1f",
"signature_version": "v1",
"id": "CVE-2024-46685-9ac0b60c"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e9436375fcc9bd2a60ee96aba6ed53f7a377d10",
"signature_version": "v1",
"id": "CVE-2024-46685-a19e6711"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a2bab5ed161318f57134716accba0a30f3af191",
"signature_version": "v1",
"id": "CVE-2024-46685-ab606f59"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2cea369a5c2e85ab14ae716da1d1cc6d25c85e11",
"signature_version": "v1",
"id": "CVE-2024-46685-af758b99"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6341c2856785dca7006820b127278058a180c075",
"signature_version": "v1",
"id": "CVE-2024-46685-b44a5b9b"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 489.0,
"function_hash": "3870412590669672342071398620815392849"
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@292151af6add3e5ab11b2e9916cffa5f52859a1f",
"signature_version": "v1",
"id": "CVE-2024-46685-b5df1f0d"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8f0bd526921b6867c2f10a83cd4fd14139adcd92",
"signature_version": "v1",
"id": "CVE-2024-46685-d303d666"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 489.0,
"function_hash": "3870412590669672342071398620815392849"
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2cea369a5c2e85ab14ae716da1d1cc6d25c85e11",
"signature_version": "v1",
"id": "CVE-2024-46685-dcc92a17"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1c38a62f15e595346a1106025722869e87ffe044",
"signature_version": "v1",
"id": "CVE-2024-46685-e33f0520"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 489.0,
"function_hash": "3870412590669672342071398620815392849"
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6341c2856785dca7006820b127278058a180c075",
"signature_version": "v1",
"id": "CVE-2024-46685-f0d02000"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 489.0,
"function_hash": "3870412590669672342071398620815392849"
},
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e9436375fcc9bd2a60ee96aba6ed53f7a377d10",
"signature_version": "v1",
"id": "CVE-2024-46685-f17fcce8"
}
]