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.
[
{
"id": "CVE-2024-46685-114b5e3f",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"digest": {
"function_hash": "3870412590669672342071398620815392849",
"length": 489.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a2bab5ed161318f57134716accba0a30f3af191"
},
{
"id": "CVE-2024-46685-73a90d11",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"digest": {
"function_hash": "3870412590669672342071398620815392849",
"length": 489.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8f0bd526921b6867c2f10a83cd4fd14139adcd92"
},
{
"id": "CVE-2024-46685-73e2ff02",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"digest": {
"function_hash": "3870412590669672342071398620815392849",
"length": 489.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4ed45fe99ec9e3c9478bd634624cd05a57d002f7"
},
{
"id": "CVE-2024-46685-7b1fbf13",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4ed45fe99ec9e3c9478bd634624cd05a57d002f7"
},
{
"id": "CVE-2024-46685-8098addc",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"digest": {
"function_hash": "3870412590669672342071398620815392849",
"length": 489.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1c38a62f15e595346a1106025722869e87ffe044"
},
{
"id": "CVE-2024-46685-9ac0b60c",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@292151af6add3e5ab11b2e9916cffa5f52859a1f"
},
{
"id": "CVE-2024-46685-a19e6711",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e9436375fcc9bd2a60ee96aba6ed53f7a377d10"
},
{
"id": "CVE-2024-46685-ab606f59",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a2bab5ed161318f57134716accba0a30f3af191"
},
{
"id": "CVE-2024-46685-af758b99",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2cea369a5c2e85ab14ae716da1d1cc6d25c85e11"
},
{
"id": "CVE-2024-46685-b44a5b9b",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6341c2856785dca7006820b127278058a180c075"
},
{
"id": "CVE-2024-46685-b5df1f0d",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"digest": {
"function_hash": "3870412590669672342071398620815392849",
"length": 489.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@292151af6add3e5ab11b2e9916cffa5f52859a1f"
},
{
"id": "CVE-2024-46685-d303d666",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8f0bd526921b6867c2f10a83cd4fd14139adcd92"
},
{
"id": "CVE-2024-46685-dcc92a17",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"digest": {
"function_hash": "3870412590669672342071398620815392849",
"length": 489.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2cea369a5c2e85ab14ae716da1d1cc6d25c85e11"
},
{
"id": "CVE-2024-46685-e33f0520",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c"
},
"digest": {
"line_hashes": [
"192733975227186293455339484821329651633",
"21190340924564271877527083110471021852",
"97343876286120846996282143356256128338",
"137403548530796602658568815295253962484"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1c38a62f15e595346a1106025722869e87ffe044"
},
{
"id": "CVE-2024-46685-f0d02000",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"digest": {
"function_hash": "3870412590669672342071398620815392849",
"length": 489.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6341c2856785dca7006820b127278058a180c075"
},
{
"id": "CVE-2024-46685-f17fcce8",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/pinctrl/pinctrl-single.c",
"function": "pcs_get_function"
},
"digest": {
"function_hash": "3870412590669672342071398620815392849",
"length": 489.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e9436375fcc9bd2a60ee96aba6ed53f7a377d10"
}
]