Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
9838c182471ee5532824bae7f2669d3539719f78 to < 9e5cb7e67fbdb8320d68d87db882a92b36f6a1d9affected9838c182471ee5532824bae7f2669d3539719f78 to < 2c538a0b3472e99c892c26f4940da38b7d87f632affected9838c182471ee5532824bae7f2669d3539719f78 to < 0f93a80eb3fd596ddc5730d05e0e8c88e1aa2891affected9838c182471ee5532824bae7f2669d3539719f78 to < cb9b2dc34a9eef0855edb00ae9c9b7f72394281baffected9838c182471ee5532824bae7f2669d3539719f78 to < 888a0a802c467bbe34a42167bdf9d7331333440aaffected
Linux Linux
Default version status: affected
6.2affected0 to < 6.2unaffected6.6.128 to ≤ 6.6.*unaffected6.12.75 to ≤ 6.12.*unaffected6.18.14 to ≤ 6.18.*unaffected6.19.4 to ≤ 6.19.*unaffected7.0 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/9e5cb7e67fbdb8320d68d87db882a92b36f6a1d9 ↗
- https://git.kernel.org/stable/c/2c538a0b3472e99c892c26f4940da38b7d87f632 ↗
- https://git.kernel.org/stable/c/0f93a80eb3fd596ddc5730d05e0e8c88e1aa2891 ↗
- https://git.kernel.org/stable/c/cb9b2dc34a9eef0855edb00ae9c9b7f72394281b ↗
- https://git.kernel.org/stable/c/888a0a802c467bbe34a42167bdf9d7331333440a ↗