CVE-2021-47485 IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields
A local attacker can trigger a kernel buffer overflow in the IB/qib driver via crafted user-space inputs, potentially leading to code execution or privilege escalation.
- 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-47485?
CVE-2021-47485 is a high-severity memory corruption vulnerability in Linux kernel, published on 22 May 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:
IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields
Overflowing either addrlimit or bytes_togo can allow userspace to trigger a buffer overflow of kernel memory. Check for overflows in all the places doing math on user controlled buffers.
Weakness: CWE-120
Which versions are affected by CVE-2021-47485?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47485?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-47485 being exploited?
There is no known exploitation of CVE-2021-47485 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47485, GHSA-rcc5-r3m3-9rvc, UBUNTU-CVE-2021-47485.