CVE-2024-31225 Lack of size check and buffer overflow in RIOT
Attackers can trigger a buffer overflow in RIOT OS via unchecked input, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-31225?
CVE-2024-31225 is a high-severity memory corruption vulnerability in RIOT-OS RIOT, published on 1 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
RIOT is a real-time multi-threading operating system that supports a range of devices that are typically 8-bit, 16-bit and 32-bit microcontrollers. The `_on_rd_init()` function does not implement a size check before copying data to the `_result_buf` static buffer. If an attacker can craft a long enough payload, they could cause a buffer overflow. If the unchecked input above is attacker-controlled and crosses a security boundary, the impact of the buffer overflow vulnerability could range from denial of service to arbitrary code execution. This issue has yet to be patched. Users are advised to add manual bounds checking.
Weakness: CWE-120
Which versions are affected by CVE-2024-31225?
It affects 1 product.
Products include Riot-Os Riot.
How do I fix CVE-2024-31225?
No fix has been published for CVE-2024-31225 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-31225 being exploited?
There is no known exploitation of CVE-2024-31225 in the wild and no public exploit code.
Other vulnerabilities in RIOT-OS RIOT
Sources
Also known as GHSA-2572-7q7c-3965.