spi: wpcm-fiu: Fix potential NULL pointer dereference in wpcm_fiu_probe()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
spi: wpcm-fiu: Fix potential NULL pointer dereference in wpcm_fiu_probe()
platform_get_resource_byname() can return NULL, which would cause a crash when passed the pointer to resource_size().
Move the fiu->memory_size assignment after the error check for devm_ioremap_resource() to prevent the potential NULL pointer dereference.
From the CVE record · Linux
In the Linux kernel’s wpcm-fiu driver, platform_get_resource_byname() can return NULL, causing a crash when that pointer is passed to resource_size() during probe. The input does not establish whether an attacker can trigger the crash or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the wpcm-fiu driver should check their versions; affected versions are not specified.