Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocal process opens POSIX pipe fd
-
ExploitIssue FIONREAD/FIONWRITE ioctl with crafted pointer
-
ExecutionKernel writes ring-buffer length without validating destination
-
ImpactOut-of-bounds write corrupts memory or crashes
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a build with RT_USING_LWP (userspace process support) enabled - the vulnerable copyout path triggers only when lwp_self() is non-NULL (a userspace caller); kernel-only builds and kernel callers take the direct-write path and are not the attack surface. An attacker needs local code execution as a low-privileged userspace process (PR:L) that has already opened a POSIX pipe file descriptor, then invokes the FIONREAD or FIONWRITE ioctl with an attacker-chosen args pointer. Limiting factors: local access only (AV:L, no remote/network reachability), the written value is the ring-buffer data/space length rather than fully attacker-controlled data (so the primitive is a controlled-destination but limited-content write), and no confidentiality impact. No user interaction is required. |
| Impact | This is a genuinely low-to-moderate priority issue rather than a high-severity emergency, and the supplied signals are internally consistent. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N) scores 4.8 (Medium) and correctly reflects a local, low-privilege flaw with no confidentiality impact and only low integrity/availability impact (VC:N/VI:L/VA:L). The source diff confirms the mechanism: pipe_fops_ioctl handled FIONREAD/FIONWRITE by writing an int directly to the caller-supplied args pointer with no user-pointer validation, so a userspace (LWP) caller controls the destination of a kernel write - a limited out-of-bounds/arbitrary-location write primitive (CWE-787). EPSS is not provided and the CVE is not in CISA KEV, so there is no evidence of widespread automated exploitation; the SSVC/exploitation maturity is E:P (Proof-of-Concept) and the vuln.today decision label is 'this_month', not 'act_now' or 'emergency'. The PoC is an upstream issue reference, not verified working exploit code, so active exploitation should not be assumed. Net: a real but bounded local-privilege memory-corruption bug whose practical risk is gated by needing local code execution on an RT_USING_LWP build; patch within the normal monthly cycle. |
| Exploit ScenarioDerived | On an RT-Thread build with userspace (LWP) support, a local low-privileged process opens a POSIX pipe and issues an FIONREAD or FIONWRITE ioctl passing a crafted pointer as args; the kernel writes the ring-buffer length to that pointer without validating that it is accessible user memory, yielding an out-of-bounds write. A public PoC reference exists (upstream GitHub issue); it is not verified as working exploit code. Attack complexity is low but local access and a pre-existing pipe handle are required (AV:L/PR:L). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 29, 2026
An out-of-bounds write in the POSIX pipe IPC driver of RT-Thread (components/drivers/ipc/pipe.c, pipe_fops_ioctl) allows a local userspace process to make the kernel write a ring-buffer length value to an arbitrary pointer it supplies, corrupting memory outside the intended destination. RT-Thread builds up to and including 5.3.0 are affected, but only when RT_USING_LWP userspace support is enabled - kernel-only builds and kernel-originated ioctl calls take the direct-write path and are not part of the attack surface. Exploitation requires local code execution as a low-privileged process that already holds an open POSIX pipe file descriptor and then calls FIONREAD or FIONWRITE with a crafted args pointer; integrity and availability impact are limited and there is no confidentiality impact. A public PoC reference exists in the upstream issue tracker, but it is not verified as working exploit code; no confirmed active exploitation was reported, and the vendor patch is available as commit 7b0edb49799630b56aec5c24d639ff530ebcf1a8 (PR #11971).
RemediationAI
Apply the upstream fix commit 7b0edb49799630b56aec5c24d639ff530ebcf1a8 (merged as PR https://github.com/RT-Thread/rt-thread/pull/11971), which adds NULL checks for args, pipe and pipe->fifo and, for userspace callers, validates the destination with lwp_user_accessable() and copies the FIONREAD/FIONWRITE value through lwp_put_to_user(), returning -EFAULT on failure. No tagged release version containing the fix is independently confirmed in the supplied data, so teams tracking release builds should verify that the commit is present in their chosen RT-Thread branch before relying on it; backporting these hunks to a pinned 5.3.0 tree is the practical route for products frozen on that release. Where LWP userspace support is not required, building with RT_USING_LWP disabled removes the vulnerable copyout path, since kernel callers take the direct-write branch - the trade-off is loss of userspace process support and the POSIX/LWP features that depend on it. As a compensating control for systems that must stay unpatched and need LWP, restrict which local processes may open and ioctl POSIX pipe descriptors, since the flaw requires an already-open pipe file descriptor plus a caller-chosen args pointer to reach the handler.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
RT-Thread is a small-footprint real-time operating system whose device layer is built around the DFS (device file system) abstraction; the POSIX pipe IPC driver in components/drivers/ipc/pipe.c implements FIFOs on top of rt_ringbuffer and exposes an ioctl handler, pipe_fops_ioctl, that services FIONREAD and FIONWRITE by returning the ring buffer's data length and free space respectively. In the vulnerable code those values are written by a raw cast - *((int*)args) = rt_ringbuffer_data_len(pipe->fifo) - without validating that the destination pointer is a legitimate, accessible userspace address and without checking that pipe or pipe->fifo are non-NULL. The root cause class, CWE-787 (out-of-bounds write), is therefore a missing-validation-of-destination problem: the handler trusts an attacker-supplied pointer. The exposure window is specific to builds with RT_USING_LWP enabled, where a userspace (LWP) caller can pass an arbitrary address into the ioctl; the fix guards the handler with NULL checks and, when lwp_self() is non-NULL, validates the buffer with lwp_user_accessable() and performs the copy through lwp_put_to_user() instead of a direct dereference, returning -EFAULT otherwise. Because the written content is the ring-buffer length rather than attacker-controlled bytes, the primitive is a controlled-destination write of limited, semi-predictable content rather than a fully arbitrary write.
Know when Rt Thread gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Local userspace process with an open pipe fd is required (AV:L, PR:L), trigger is a simple ioctl (AC:L); write corrupts caller memory with no info disclosure, giving I:L/A:L and C:N, scope unchanged.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A security vulnerability has been detected in RT-Thread up to 5.3.0. Affected is the function pipe_fops_ioctl of the file components/drivers/ipc/pipe.c of the component POSIX Pipe IPC Driver. Such manipulation leads to out-of-bounds write. The attack needs to be performed locally. The exploit has been disclosed publicly and may be used. The name of the patch is 7b0edb49799630b56aec5c24d639ff530ebcf1a8. Applying a patch is advised to resolve this issue.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Critical memory corruption vulnerability in RT-Thread 5.1.0's sys_select syscall handler that allows authenticated local
Critical null pointer dereference vulnerability in RT-Thread 5.1.0's lwp_syscall.c csys_sendto function, allowing authen
Critical memory corruption vulnerability in RT-Thread 5.1.0's sys_recvfrom syscall handler that allows authenticated loc
A security vulnerability in A vulnerability classified as critical (CVSS 8.0). Risk factors: public PoC available.
Critical array index validation vulnerability in RT-Thread 5.1.0's signal mask syscall handler that allows authenticated
A vulnerability, which was classified as critical, was found in RT-Thread up to 5.1.0. This affects the function sys_dev
Stack-based buffer overflow in RT-Thread RTOS (versions up to and including 5.0.2) affects the CAN_Receive function with
Stack-based buffer overflow in RT-Thread RTOS (versions up to and including 5.0.2) affects the recvmsg function within t
A stack buffer overflow occurs in net/at/src/at_server.c in RT-Thread through 5.0.2. Rated critical severity (CVSS 9.8),
Memory corruption in RT-Thread's Linux-compatible process (lwp) syscall layer allows a local low-privileged user to cras
Divide-by-zero in RT-Thread's DM365 DaVinci SPI driver (bsp/dm365/drivers/spi-davinci.c) crashes or faults the system wh
A vulnerability classified as problematic was found in RT-Thread up to 5.1.0. Rated medium severity (CVSS 4.8), this vul
EUVD-2026-137826
GHSA-m44v-m978-5ffg
NVD
CVE.org
EPSS
VulDB
Exploit-DB