CVE-2021-47047
Zynqmp-Qspi DMA Mapping Memory Corruption
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: [ 123.812683] ISV = 0, ISS = 0x00000145 [ 123.816503] CM = 1, WnR = 1 [ 123.819455] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000805047000 [ 123.825887] [00000000003fffc0] pgd=0000000803b45003, p4d=0000000803b45003, pud=0000000000000000 [ 123.834586] Internal error: Oops: 96000145 [#1] PREEMPT SMP
INFO
Published Date :
Feb. 28, 2024, 9:15 a.m.
Last Modified :
Jan. 10, 2025, 6:26 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-47047
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-47047
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-47047
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Jan. 10, 2025
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NIST NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.10 up to (excluding) 5.10.37 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.11.21 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.12 up to (excluding) 5.12.4 Changed Reference Type https://git.kernel.org/stable/c/126bdb606fd2802454e6048caef1be3e25dd121e No Types Assigned https://git.kernel.org/stable/c/126bdb606fd2802454e6048caef1be3e25dd121e Patch Changed Reference Type https://git.kernel.org/stable/c/126bdb606fd2802454e6048caef1be3e25dd121e No Types Assigned https://git.kernel.org/stable/c/126bdb606fd2802454e6048caef1be3e25dd121e Patch Changed Reference Type https://git.kernel.org/stable/c/5980a3b9c933408bc22b0e349b78c3ebd7cbf880 No Types Assigned https://git.kernel.org/stable/c/5980a3b9c933408bc22b0e349b78c3ebd7cbf880 Patch Changed Reference Type https://git.kernel.org/stable/c/5980a3b9c933408bc22b0e349b78c3ebd7cbf880 No Types Assigned https://git.kernel.org/stable/c/5980a3b9c933408bc22b0e349b78c3ebd7cbf880 Patch Changed Reference Type https://git.kernel.org/stable/c/bad5a23cf2b477fa78b85fd392736dae09a1e818 No Types Assigned https://git.kernel.org/stable/c/bad5a23cf2b477fa78b85fd392736dae09a1e818 Patch Changed Reference Type https://git.kernel.org/stable/c/bad5a23cf2b477fa78b85fd392736dae09a1e818 No Types Assigned https://git.kernel.org/stable/c/bad5a23cf2b477fa78b85fd392736dae09a1e818 Patch Changed Reference Type https://git.kernel.org/stable/c/c26c026eb496261dbc0adbf606cc81989cd2038c No Types Assigned https://git.kernel.org/stable/c/c26c026eb496261dbc0adbf606cc81989cd2038c Patch Changed Reference Type https://git.kernel.org/stable/c/c26c026eb496261dbc0adbf606cc81989cd2038c No Types Assigned https://git.kernel.org/stable/c/c26c026eb496261dbc0adbf606cc81989cd2038c Patch -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/126bdb606fd2802454e6048caef1be3e25dd121e Added Reference https://git.kernel.org/stable/c/5980a3b9c933408bc22b0e349b78c3ebd7cbf880 Added Reference https://git.kernel.org/stable/c/bad5a23cf2b477fa78b85fd392736dae09a1e818 Added Reference https://git.kernel.org/stable/c/c26c026eb496261dbc0adbf606cc81989cd2038c -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 28, 2024
Action Type Old Value New Value -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
May. 14, 2024
Action Type Old Value New Value -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Feb. 28, 2024
Action Type Old Value New Value Added 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: [ 123.812683] ISV = 0, ISS = 0x00000145 [ 123.816503] CM = 1, WnR = 1 [ 123.819455] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000805047000 [ 123.825887] [00000000003fffc0] pgd=0000000803b45003, p4d=0000000803b45003, pud=0000000000000000 [ 123.834586] Internal error: Oops: 96000145 [#1] PREEMPT SMP Added Reference Linux https://git.kernel.org/stable/c/5980a3b9c933408bc22b0e349b78c3ebd7cbf880 [No types assigned] Added Reference Linux https://git.kernel.org/stable/c/c26c026eb496261dbc0adbf606cc81989cd2038c [No types assigned] Added Reference Linux https://git.kernel.org/stable/c/bad5a23cf2b477fa78b85fd392736dae09a1e818 [No types assigned] Added Reference Linux https://git.kernel.org/stable/c/126bdb606fd2802454e6048caef1be3e25dd121e [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-47047
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-47047
weaknesses.