Menu

Star on GitHub · 3.4k

CVE-2021-47047

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: spi: spi-zynqmp-gqspi: return -ENOMEM if dma_map_single fails The spi controller supports 44-bit address space on AXI in DMA mo…

Published Feb 28, 2024EPSS 0.24%

Overview

CVE-2021-47047 is a medium-severity vulnerability. It was published on February 28, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

spi: spi-zynqmp-gqspi: return -ENOMEM if dma_map_single fails

The spi controller supports 44-bit address space on AXI in DMA mode,

so set dma_addr_t width to 44-bit to avoid using a swiotlb mapping.

In addition, if dma_map_single fails, it should return immediately

instead of continuing doing the DMA operation which bases on invalid

address.

This fixes the following crash which occurs in reading a big block

from flash:

[ 123.633577] zynqmp-qspi ff0f0000.spi: swiotlb buffer is full (sz: 4194304 bytes), total 32768 (slots), used 0 (slots)

[ 123.644230] zynqmp-qspi ff0f0000.spi: ERR:rxdma:memory not mapped

[ 123.784625] Unable to handle kernel paging request at virtual address 00000000003fffc0

[ 123.792536] Mem abort info:

[ 123.795313] ESR = 0x96000145

[ 123.798351] EC = 0x25: DABT (current EL), IL = 32 bits

[ 123.803655] SET = 0, FnV = 0

[ 123.806693] EA = 0, S1PTW = 0

[ 123.809818] Data abort info:

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2021-47047?

CVE-2021-47047 is a medium-severity vulnerability. It was published on February 28, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2021-47047?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-47047?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-47047?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2021-47047 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2021

View all
LiveWatch live →