CVE-2022-49475Published Feb 26, 2025 · Feb 26Updated Oct 28
spi: spi-fsl-qspi: check return value after calling platform_get_resource_byname()
Linux
Medium5.5Fix available
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: spi-fsl-qspi: check return value after calling platform_get_resource_byname()
It will cause null-ptr-deref if platform_get_resource_byname() returns NULL, we need check the return value.
From the CVE record · Linux
The Linux kernel’s spi-fsl-qspi driver can dereference a null pointer if platform_get_resource_byname() returns NULL. The input does not establish how an attacker could trigger this condition or whether authentication or user interaction is required.
Engineers running Linux kernels with the spi-fsl-qspi driver should check their versions; affected versions are not specified.