Skip to main content

RT-Thread EUVDEUVD-2026-137826

| CVE-2026-138312 LOW
Out-of-bounds Write (CWE-787)
2026-11-29 VulDB GHSA-m44v-m978-5ffg
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Local process opens POSIX pipe fd
  2. Exploit
    Issue FIONREAD/FIONWRITE ioctl with crafted pointer
  3. Execution
    Kernel writes ring-buffer length without validating destination
  4. Impact
    Out-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).

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

RT-Thread 5.2
RT-Thread 5.1
RT-Thread 5.0
RT-Thread 5.3.0

Affected Packages

euvd rt_thread no fix

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

Vendor (VulDB) PRIMARY 1.9 MEDIUM
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
vuln.today AI 4.4 MEDIUM

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.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Nov 29, 2026 - 21:22 NVD
MEDIUM LOW
CVSS changed
Nov 29, 2026 - 21:22 NVD
4.8 (MEDIUM) 1.9 (LOW)
CVE Published
Nov 29, 2026 - 20:45 cve.org
MEDIUM 4.8

DescriptionCVE.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

EPSS Score
0.2%
Top 97% exploitable
Prevalence
Low
open-source embedded RTOS, niche IoT/embedded footprint, not enterprise-ubiquitous
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2025-5865 HIGH POC
8.0 Jun 09

Critical memory corruption vulnerability in RT-Thread 5.1.0's sys_select syscall handler that allows authenticated local

CVE-2025-5867 HIGH POC
8.0 Jun 09

Critical null pointer dereference vulnerability in RT-Thread 5.1.0's lwp_syscall.c csys_sendto function, allowing authen

CVE-2025-5869 HIGH POC
8.0 Jun 09

Critical memory corruption vulnerability in RT-Thread 5.1.0's sys_recvfrom syscall handler that allows authenticated loc

CVE-2025-5866 HIGH POC
8.0 Jun 09

A security vulnerability in A vulnerability classified as critical (CVSS 8.0). Risk factors: public PoC available.

CVE-2025-5868 HIGH POC
8.0 Jun 09

Critical array index validation vulnerability in RT-Thread 5.1.0's signal mask syscall handler that allows authenticated

CVE-2025-6693 HIGH POC
7.8 Jun 26

A vulnerability, which was classified as critical, was found in RT-Thread up to 5.1.0. This affects the function sys_dev

CVE-2026-14606 HIGH POC
7.1 Jul 03

Stack-based buffer overflow in RT-Thread RTOS (versions up to and including 5.0.2) affects the CAN_Receive function with

CVE-2026-14605 HIGH POC
7.1 Jul 03

Stack-based buffer overflow in RT-Thread RTOS (versions up to and including 5.0.2) affects the recvmsg function within t

CVE-2024-25393 CRITICAL
9.8 Mar 27

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),

CVE-2026-14607 MEDIUM POC
5.4 Jul 03

Memory corruption in RT-Thread's Linux-compatible process (lwp) syscall layer allows a local low-privileged user to cras

CVE-2026-137620 MEDIUM POC
5.2 Nov 26

Divide-by-zero in RT-Thread's DM365 DaVinci SPI driver (bsp/dm365/drivers/spi-davinci.c) crashes or faults the system wh

CVE-2025-1115 MEDIUM POC
4.8 Feb 08

A vulnerability classified as problematic was found in RT-Thread up to 5.1.0. Rated medium severity (CVSS 4.8), this vul

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy