NULL pointer dereference in spi-zynq-qspi
Summary
GSD-2022-1000887: spi: spi-zynq-qspi: Fix a NULL pointer dereference in zynq_qspi_exec_mem_op(). Affects Kernel versions >= 67dca5e580f1e93a66177389981541cac208c817, < df14d2bed8e2455878e046e67123d9ecb2e79056. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The spi-zynq-qspi package is a component of the Linux Kernel, specifically designed for the Zynq Quad-SPI controller. It provides support for SPI flash devices on Xilinx Zynq platforms. The vulnerability in question involves a NULL pointer dereference in the zynq_qspi_exec_mem_op() function.
Vulnerability Detail
The vulnerability occurs when the zynq_qspi_exec_mem_op() function dereferences a NULL pointer. This can lead to a system crash or potential privilege escalation if exploited by an attacker. The vulnerability was introduced in Linux Kernel version v5.2 and is fixed in version v5.4.182 by commit df14d2bed8e2455878e046e67123d9ecb2e79056.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
The NULL pointer dereference vulnerability in spi-zynq-qspi can lead to system crashes or potential privilege escalation. It is recommended to update the Linux Kernel to version v5.4.182 or later to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to a system crash or potential privilege escalation if exploited by an attacker.
You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file and it will provide real-time alerts for open-source vulnerabilities.
Yes, the vulnerability is fixed in Linux Kernel version v5.4.182. It is recommended to update to this version or later.
The vulnerability requires local access to the system to exploit it.
There are no known instances of this vulnerability being exploited in the wild.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.