net: ll_temac: platform_get_resource replaced by wrong function
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bd69058f50d5ffa659423bcfa6fe6280ce9c760a · < 92c0c29f667870f17c0b764544bdf22ce0e886a1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ll_temac: platform_get_resource replaced by wrong function
The function platform_get_resource was replaced with devm_platform_ioremap_resource_byname and is called using 0 as name.
This eventually ends up in platform_get_resource_byname in the call stack, where it causes a null pointer in strcmp.
if (type == resource_type(r) && !strcmp(r->name, name))
It should have been replaced with devm_platform_ioremap_resource.
From the CVE record · Linux
The Linux kernel ll_temac driver passes a null name to a resource lookup, causing a null-pointer dereference in strcmp. The input does not specify whether an attacker can trigger it or what access or interaction would be required.
Engineers running Linux kernels with the ll_temac driver should check their versions; affected versions are not specified.