CVE-2021-47048 spi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op
A use-after-free vulnerability in the Linux kernel's ZynqMP GQSPI driver allows attackers to potentially execute code or cause a system crash.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47048?
CVE-2021-47048 is a high-severity use after free vulnerability in Linux kernel, published on 28 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
spi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op
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.
Weakness: CWE-416
Which versions are affected by CVE-2021-47048?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47048?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2021-47048 being exploited?
There is no known exploitation of CVE-2021-47048 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47048, GHSA-hhq7-4gxq-q8mp, UBUNTU-CVE-2021-47048.