{"id":"CVE-2021-47048","title":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op\n\nWhen handling op->addr, it is using the buffer \"tmpbuf\" which has been\nfreed","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op\n\nWhen handling op->addr, it is using the buffer \"tmpbuf\" which has been\nfreed. This will trigger a use-…","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-416"],"vendor":"linux","product":"linux_kernel","affected":["linux_kernel >= 5.10, < 5.10.37","linux_kernel >= 5.11, < 5.11.21","linux_kernel >= 5.12, < 5.12.4"],"patched":["linux_kernel 5.12.4"],"published":"2024-02-28","updated":"2026-08-04","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-47048","references":[{"url":"https://git.kernel.org/stable/c/1231279389b5e638bc3b66b9741c94077aed4b5a","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/23269ac9f123eca3aea7682d3345c02e71ed696c","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/a2c5bedb2d55dd27c642c7b9fb6886d7ad7bdb58","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/d67e0d6bd92ebbb0294e7062bbf5cdc773764e62","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/1231279389b5e638bc3b66b9741c94077aed4b5a","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.kernel.org/stable/c/23269ac9f123eca3aea7682d3345c02e71ed696c","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.kernel.org/stable/c/a2c5bedb2d55dd27c642c7b9fb6886d7ad7bdb58","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.kernel.org/stable/c/d67e0d6bd92ebbb0294e7062bbf5cdc773764e62","label":"af854a3a-2127-422b-91ae-364da2661108"}],"tags":["nvd"],"epss":0.00238,"epssPercentile":0.15107,"ingestedAt":"2026-08-04T10:39:39.567Z","slug":"CVE-2021-47048","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nspi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op\n\nWhen handling op->addr, it is using the buffer \"tmpbuf\" which has been\nfreed. This will trigger a use-after-free KASAN warning. Let's use\ntemporary variables to store op->addr.val and op->cmd.opcode to fix\nthis issue.\n\n## Affected\n\n- `linux_kernel >= 5.10, < 5.10.37`\n- `linux_kernel >= 5.11, < 5.11.21`\n- `linux_kernel >= 5.12, < 5.12.4`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `linux_kernel 5.12.4`","depth":"twilight","depthScore":43,"depthScoreParts":{"impact":42.9,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}