arcnet: Add NULL check in com20020pci_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6b17a597fc2f13aaaa0a2780eb7edb9ae7ac9aea · < ebebeb58d48e25525fa654f2c53a24713fe141c3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
arcnet: Add NULL check in com20020pci_probe()
devm_kasprintf() returns NULL when memory allocation fails. Currently, com20020pci_probe() does not check for this case, which results in a NULL pointer dereference.
Add NULL check after devm_kasprintf() to prevent this issue and ensure no resources are left allocated.
From the CVE record · Linux
The Linux kernel's arcnet com20020pci_probe() function can dereference a NULL pointer if devm_kasprintf() fails to allocate memory. The input does not specify whether an attacker can trigger the failure, what access would be needed, or whether user interaction is required.
Anyone running a Linux kernel with the affected arcnet code should check their kernel version; affected versions are not specified.