In the Linux kernel, the following vulnerability has been resolved:
net: arcnet: com20020: Fix null-ptr-deref in com20020pci_probe()
During driver initialization, the pointer of card info, i.e. the variable 'ci' is required. However, the definition of 'com20020pciidtable' reveals that this field is empty for some devices, which will cause null pointer dereference when initializing these devices.
The following log reveals it:
[ 3.973806] KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f] [ 3.973819] RIP: 0010:com20020pciprobe+0x18d/0x13e0 [com20020pci] [ 3.975181] Call Trace: [ 3.976208] localpciprobe+0x13f/0x210 [ 3.977248] pcideviceprobe+0x34c/0x6d0 [ 3.977255] ? pciuevent+0x470/0x470 [ 3.978265] reallyprobe+0x24c/0x8d0 [ 3.978273] _driverprobedevice+0x1b3/0x280 [ 3.979288] driverprobe_device+0x50/0x370
Fix this by checking whether the 'ci' is a null pointer first.
{ "vanir_signatures": [ { "signature_version": "v1", "signature_type": "Function", "target": { "file": "drivers/net/arcnet/com20020-pci.c", "function": "com20020pci_probe" }, "id": "CVE-2022-48908-0a3877f9", "digest": { "length": 3681.0, "function_hash": "332802537051689508950231893013854322411" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e50c589678e50f8d574612e473ca60ef45190896" }, { "signature_version": "v1", "signature_type": "Line", "target": { "file": "drivers/net/arcnet/com20020-pci.c" }, "id": "CVE-2022-48908-1ec5f45e", "digest": { "line_hashes": [ "153885276482793925858248328759453160496", "111285832449394250061506765352159165855", "260721284477559370997601838975008010226", "89820787810148867234215491543280394036" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bd6f1fd5d33dfe5d1b4f2502d3694a7cc13f166d" }, { "signature_version": "v1", "signature_type": "Line", "target": { "file": "drivers/net/arcnet/com20020-pci.c" }, "id": "CVE-2022-48908-21465d33", "digest": { "line_hashes": [ "153885276482793925858248328759453160496", "111285832449394250061506765352159165855", "260721284477559370997601838975008010226", "84943511836682773057661116002353139793" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b1ee6b9340a38bdb9e5c90f0eac5b22b122c3049" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "drivers/net/arcnet/com20020-pci.c", "function": "com20020pci_probe" }, "id": "CVE-2022-48908-38d9d1e5", "digest": { "length": 3777.0, "function_hash": "92607234219757155330944192840012996218" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ea372aab54903310756217d81610901a8e66cb7d" }, { "signature_version": "v1", "signature_type": "Line", "target": { "file": "drivers/net/arcnet/com20020-pci.c" }, "id": "CVE-2022-48908-58f60c6f", "digest": { "line_hashes": [ "153885276482793925858248328759453160496", "111285832449394250061506765352159165855", "260721284477559370997601838975008010226", "84943511836682773057661116002353139793" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e50c589678e50f8d574612e473ca60ef45190896" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "drivers/net/arcnet/com20020-pci.c", "function": "com20020pci_probe" }, "id": "CVE-2022-48908-78e0ff9a", "digest": { "length": 3681.0, "function_hash": "332802537051689508950231893013854322411" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b1ee6b9340a38bdb9e5c90f0eac5b22b122c3049" }, { "signature_version": "v1", "signature_type": "Line", "target": { "file": "drivers/net/arcnet/com20020-pci.c" }, "id": "CVE-2022-48908-85dae194", "digest": { "line_hashes": [ "153885276482793925858248328759453160496", "111285832449394250061506765352159165855", "260721284477559370997601838975008010226", "84943511836682773057661116002353139793" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b838add93e1dd98210482dc433768daaf752bdef" }, { "signature_version": "v1", "signature_type": "Line", "target": { "file": "drivers/net/arcnet/com20020-pci.c" }, "id": "CVE-2022-48908-8d96fd8b", "digest": { "line_hashes": [ "153885276482793925858248328759453160496", "111285832449394250061506765352159165855", "260721284477559370997601838975008010226", "89820787810148867234215491543280394036" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ea372aab54903310756217d81610901a8e66cb7d" }, { "signature_version": "v1", "signature_type": "Line", "target": { "file": "drivers/net/arcnet/com20020-pci.c" }, "id": "CVE-2022-48908-aaa838db", "digest": { "line_hashes": [ "153885276482793925858248328759453160496", "111285832449394250061506765352159165855", "260721284477559370997601838975008010226", "89820787810148867234215491543280394036" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ca0bdff4249a644f2ca7a49d410d95b8dacf1f72" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "drivers/net/arcnet/com20020-pci.c", "function": "com20020pci_probe" }, "id": "CVE-2022-48908-d851040e", "digest": { "length": 3403.0, "function_hash": "123094756402692316202725614980821534187" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8e3bc7c5bbf87e86e9cd652ca2a9166942d86206" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "drivers/net/arcnet/com20020-pci.c", "function": "com20020pci_probe" }, "id": "CVE-2022-48908-e51022de", "digest": { "length": 3772.0, "function_hash": "304536329823733463059590362539064556935" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ca0bdff4249a644f2ca7a49d410d95b8dacf1f72" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "drivers/net/arcnet/com20020-pci.c", "function": "com20020pci_probe" }, "id": "CVE-2022-48908-ea08f82c", "digest": { "length": 3772.0, "function_hash": "304536329823733463059590362539064556935" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bd6f1fd5d33dfe5d1b4f2502d3694a7cc13f166d" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "drivers/net/arcnet/com20020-pci.c", "function": "com20020pci_probe" }, "id": "CVE-2022-48908-f0f5b492", "digest": { "length": 3681.0, "function_hash": "332802537051689508950231893013854322411" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b838add93e1dd98210482dc433768daaf752bdef" }, { "signature_version": "v1", "signature_type": "Line", "target": { "file": "drivers/net/arcnet/com20020-pci.c" }, "id": "CVE-2022-48908-f682e29e", "digest": { "line_hashes": [ "153885276482793925858248328759453160496", "111285832449394250061506765352159165855", "260721284477559370997601838975008010226", "84943511836682773057661116002353139793" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5f394102ee27dbf051a4e283390cd8d1759dacea" }, { "signature_version": "v1", "signature_type": "Line", "target": { "file": "drivers/net/arcnet/com20020-pci.c" }, "id": "CVE-2022-48908-fc156f16", "digest": { "line_hashes": [ "153885276482793925858248328759453160496", "111285832449394250061506765352159165855", "260721284477559370997601838975008010226", "84943511836682773057661116002353139793" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8e3bc7c5bbf87e86e9cd652ca2a9166942d86206" }, { "signature_version": "v1", "signature_type": "Function", "target": { "file": "drivers/net/arcnet/com20020-pci.c", "function": "com20020pci_probe" }, "id": "CVE-2022-48908-fd51bcf5", "digest": { "length": 3681.0, "function_hash": "332802537051689508950231893013854322411" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5f394102ee27dbf051a4e283390cd8d1759dacea" } ] }