In the Linux kernel, the following vulnerability has been resolved:
spi: spi-zynq-qspi: Fix a NULL pointer dereference in zynq_qspi_exec_mem_op()
In zynq_qspi_exec_mem_op(), kzalloc() is directly used in memset(), which could lead to a NULL pointer dereference on failure of kzalloc().
Fix this bug by adding a check of tmpbuf.
This bug was found by a static analyzer. The analysis employs differential checking to identify inconsistent security operations (e.g., checks or kfrees) between two code paths and confirms that the inconsistent operations are not recovered in the current function or the callers, so they constitute bugs.
Note that, as a bug found by static analysis, it can be a false positive or hard to trigger. Multiple researchers have cross-reviewed the bug.
Builds with CONFIG_SPI_ZYNQ_QSPI=m show no new warnings, and our static analyzer no longer warns about this code.
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux | Aug 23, 2024 | Aug 22, 2024 |
| Ubuntu | — | Upgrade linux-raspi-5.4Upgrade linux-bluefieldUpgrade linux-azure-5.4Upgrade linux-intel-iotg-5.15Upgrade linux-kvmUpgrade linux-gcpUpgrade linux-awsUpgrade linux-gcp-fipsUpgrade linux-oracle-5.4Upgrade linux-aws-fipsUpgrade linux-azureUpgrade linux-ibm-5.4Upgrade linux-aws-5.4Upgrade linux-hwe-5.4Upgrade linux-iotUpgrade linux-ibmUpgrade linuxUpgrade linux-azure-fipsUpgrade linux-fipsUpgrade linux-gcp-5.4Upgrade linux-raspiUpgrade linux-oracleUpgrade linux-gkeop | Nov 19, 2024 | Aug 22, 2024 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | May 27, 2026 | Aug 22, 2024 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub