Skip to main content
Network Thinking Solutions Logo

CVE-2021-4441

Linux kernel: spi: spi-zynq-qspi: Fix a NULL pointer dereference in zynq_qspi_exec_mem_op()

All CVEs
CVE-2021-4441Published 8/22/2024

Linux kernel: spi: spi-zynq-qspi: Fix a NULL pointer dereference in zynq_qspi_exec_mem_op()

Vendor advisory
CVSS5.5Medium

Overview

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.

Published
8/22/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.2, < 5.4.182

Verify advisory

Source
linux kernel
linux
≥ 5.5, < 5.10.103

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.26

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 5.16.12

Verify advisory

Source
linux kernel
linux
5.17

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 67dca5e580f1e93a66177389981541cac208c817, < df14d2bed8e2455878e046e67123d9ecb2e79056

Verify advisory

Source
Linux
Linux
≥ 67dca5e580f1e93a66177389981541cac208c817, < 2efece1368aeee2d2552c7ec36aeb676c4d4c95f

Verify advisory

Source
Linux
Linux
≥ 67dca5e580f1e93a66177389981541cac208c817, < 3c32405d6474a21f7d742828e73c13e326dcae82

Verify advisory

Source
Linux
Linux
≥ 67dca5e580f1e93a66177389981541cac208c817, < b9dd08cbebe0c593c49bf86d2012a431494e54cb

Verify advisory

Source
Linux
Linux
≥ 67dca5e580f1e93a66177389981541cac208c817, < ab3824427b848da10e9fe2727f035bbeecae6ff4

Verify advisory

Source
Linux
Linux
5.2

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.