CVE-2025-5865 RT-Thread Parameter lwp_syscall.c sys_select memory corruption

High 8.6 Published Updated

Attackers can trigger memory corruption in RT-Thread via the sys_select timeout parameter, 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
None listed

What is CVE-2025-5865?

CVE-2025-5865 is a high-severity memory corruption vulnerability in RT-Thread, published on 9 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was found in RT-Thread 5.1.0. It has been rated as critical. Affected by this issue is the function sys_select of the file rt-thread/components/lwp/lwp_syscall.c of the component Parameter Handler. The manipulation of the argument timeout leads to memory corruption. The vendor explains, that "[t]he timeout parameter should be checked to check if it can be accessed correctly in kernel mode and used temporarily in kernel memory."

Weakness: CWE-119

Which versions are affected by CVE-2025-5865?

It affects 1 product.

Products include Rt-Thread Rt-Thread.

How do I fix CVE-2025-5865?

No fix has been published for CVE-2025-5865 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-2025-5865 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5865 exists.

Sources

Also known as GHSA-4xh2-4xwh-6pgr.

Is CVE-2025-5865 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free