CVE-2021-47048: spi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op

Published Feb 28, 2024
·
Updated

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

spi: spi-zynqmp-gqspi: fix use-after-free in zynqmpqspiexecop

When handling op->addr, it is using the buffer "tmpbuf" which has been freed. This will trigger a use-after-free KASAN warning. Let's use temporary variables to store op->addr.val and op->cmd.opcode to fix this issue.

Affected Software

3 affected components
Linux Linux kernel>=5.10<5.10.37
Linux Linux kernel>=5.11<5.11.21
Linux Linux kernel>=5.12<5.12.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    If you can’t immediately patch, monitor for and triage KASAN use-after-free warnings triggered by the spi-zynqmp-gqspi issue while handling op->addr using the freed buffer tmpbuf; treat these warnings as indicators of exploitation attempts until patched.

Event History

Feb 28, 2024
CVE Published
via MITRE·08:13 AM
Data Sourced
via MITRE·08:13 AM
DescriptionSeverity
Data Sourced
via NVD·09:15 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-47048?

CVE-2021-47048 has a severity rating that indicates a potential for significant impact due to a use-after-free vulnerability.

2

How do I fix CVE-2021-47048?

To fix CVE-2021-47048, upgrade your Linux kernel to a version later than 5.10.37, 5.11.21, or 5.12.4.

3

Which versions of the Linux kernel are affected by CVE-2021-47048?

CVE-2021-47048 affects Linux kernel versions between 5.10 and 5.10.37, 5.11 and 5.11.21, and 5.12 and 5.12.4.

4

What type of vulnerability is CVE-2021-47048?

CVE-2021-47048 is classified as a use-after-free vulnerability in the Linux kernel.

5

Is CVE-2021-47048 exploitable remotely?

There is potential for exploitation if the vulnerability is triggered in a specific environment, but it primarily affects local operations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203