CVE-2021-4441

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

No CVSS score yet EPSS 0.22%

Published 22 Aug 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-4441

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-4441 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 67dca5e580f1e93a66177389981541cac208c817, before df14d2bed8e2455878e046e67123d9ecb2e79056
affected from 67dca5e580f1e93a66177389981541cac208c817, before 2efece1368aeee2d2552c7ec36aeb676c4d4c95f
affected from 67dca5e580f1e93a66177389981541cac208c817, before 3c32405d6474a21f7d742828e73c13e326dcae82
affected from 67dca5e580f1e93a66177389981541cac208c817, before b9dd08cbebe0c593c49bf86d2012a431494e54cb
affected from 67dca5e580f1e93a66177389981541cac208c817, before ab3824427b848da10e9fe2727f035bbeecae6ff4
Other versions: unaffected
Linux
affected 5.2
unaffected before 5.2
unaffected from 5.4.182 up to and including 5.4.*
unaffected from 5.10.103 up to and including 5.10.*
unaffected from 5.15.26 up to and including 5.15.*
unaffected from 5.16.12 up to and including 5.16.*
unaffected 5.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-4441 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-4441

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-4441
trivy image --scanners vuln IMAGE | grep CVE-2021-4441

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-4441 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.