Skip to main content

RT-Thread CVE-2026-138311

| EUVDEUVD-2026-137825 HIGH
Incorrect Type Conversion or Cast (CWE-704)
2026-11-29 VulDB GHSA-5wm9-pv8h-rm9w
8.7
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Device mounts attacker-controlled 9P server
  2. Delivery
    Server sends crafted 9P reply
  3. Exploit
    64-bit field lands at unaligned offset
  4. Execution
    Driver reads via casted pointer (LDRD)
  5. Impact
    Alignment fault crashes system

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Correct type conversion
Exploitation Conditions

Exploitation requires the target to run RT-Thread 5.3.0 with the 9PFS filesystem driver enabled and to establish a 9P connection to an attacker-controlled or intercepted 9P server, since the vulnerable get_rx_value64_of parses server-supplied reply buffers. The decisive limiting factor is hardware architecture: the PR explains the fault only manifests where unaligned 64-bit access is illegal - notably ARMv7-A, where GCC emits LDRD/STRD that fault on non-8-byte-aligned addresses (e.g. the Rstat length field at offset 42); architectures that tolerate unaligned access would not crash. There is no authentication qualifier beyond the CVSS PR:N, but the device must be configured to mount a 9P share, and impact is limited to availability (device crash), not data exposure or code execution.

Impact

The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores 8.7 and describes a network-reachable, low-complexity, unauthenticated issue, but the only impact metric set is availability (VA:H; VC:N, VI:N) - this is a crash/denial-of-service bug, not a code-execution or disclosure flaw. The source-code evidence confirms the mechanism: the 9PFS driver dereferences a cast pointer into an unaligned buffer, so GCC emits LDRD/STRD on ARMv7-A that faults on any non-8-byte-aligned address, causing a fault; this matches VA:H and contradicts the 'Information Disclosure' tag. No EPSS score and no KEV listing are provided, and no exploit reference is present, so there is no public exploit identified at time of analysis; the vuln.today decision label is 'this_week', i.e. prioritized but not an emergency. Net: a genuine but availability-only, architecture-dependent DoS against devices that actually mount 9PFS - real priority for affected embedded fleets, lower urgency for the many deployments that do not use the 9PFS driver or do not run ARMv7-A. Key missing data: no EPSS, no independent confirmation of affected version range beyond RT-Thread 5.3.0, and the 'Information Disclosure' tag conflicts with the CVSS/code evidence.

Exploit ScenarioDerived

An RT-Thread 5.3.0 device mounts a 9P file system from an attacker-controlled (or intercepted) 9P server using the 9PFS driver. The server returns a crafted reply - e.g. an Rstat response whose 64-bit length field sits at the unaligned offset 42 - and when the driver's get_rx_value64_of reads it, the compiler-generated LDRD on an ARMv7-A target faults and crashes the device. No public exploit is identified at time of analysis; triggering requires only a malicious server response.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 29, 2026

A crafted or intercepted 9P server reply can crash RT-Thread 5.3.0 devices that have the DFS v1 9PFS filesystem driver enabled, as the driver's get_rx_value64_of accessor dereferences unaligned 64-bit fields inside the raw receive buffer. The fault is architecture-dependent: it manifests where misaligned 64-bit access is illegal, notably ARMv7-A, where GCC emits LDRD/STRD instructions that fault on addresses that are not 8-byte aligned (for example the Rstat length field at offset 42). Impact is availability only - device crash/denial of service, not data disclosure or code execution - and no public exploit has been identified at time of analysis; an upstream fix is available as PR #11876 / commit 47831b738626b93c6d5700f41b7d52f9253f9625.

RemediationAI

Apply the upstream fix - merge or cherry-pick commit 47831b738626b93c6d5700f41b7d52f9253f9625 (PR https://github.com/RT-Thread/rt-thread/pull/11876), which rewrites the P9_OF_OPS_GET/P9_OF_OPS_PUT accessors to copy through an aligned local variable with rt_memcpy instead of dereferencing a casted buffer pointer, and additionally bounds-checks the p9_err[] table in p9_to_fs_err() and initialises rc in p9_walk_subpath(); note this is an upstream commit/PR, so a tagged RT-Thread release containing it was not independently confirmed and downstream vendors should confirm their BSP tracks it. If the fix cannot be applied immediately, the practical mitigation is to build without the 9PFS filesystem driver at components/dfs/dfs_v1/filesystems/9pfs/ (or remove the 9p mount from the DFS mount table), accepting loss of 9P share access on that device, and to only mount 9P shares from servers on a trusted, non-interceptable transport, since the crash is triggered by server-supplied reply buffers on the receive path. Updating per the vendor advisory is the only complete fix; configuration workarounds only remove reachability.

Affected VersionsENISA

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

The 9PFS driver implements the Plan 9 Filesystem Protocol (9P), commonly used to mount host-exported shares into an RTOS guest, inside components/dfs/dfs_v1/filesystems/9pfs/dfs_9pfs.c. The root cause class is CWE-704 (incorrect type conversion): the P9_OF_OPS_GET/P9_OF_OPS_PUT macro families cast byte offsets into conn->rx_buffer / conn->tx_buffer directly to rt_uintN_t pointers and dereference them, so field access depends on the buffer happening to satisfy the type's alignment. 9P message fields are packed and unaligned by design - the upstream fix notes the Rstat reply's length field always starts at P9_MSG_STAT_LEN == 42 - so on ARMv7-A the compiler emits LDRD/STRD for the 64-bit case, which raises a fault on any address that is not 8-byte aligned and takes the device down. Architectures that tolerate unaligned access would not fault, which is the decisive limiting factor in the assessed risk. The same patch also replaces the raw pointer stores on the transmit path with memcpy through an aligned local, sizes the p9_err[] lookup table so the negative index is in range, adds an explicit bounds check in p9_to_fs_err() returning -EIO, and initialises rc in p9_walk_subpath(). The CPE cpe:2.3:a:n/a:rt-thread:*:*:*:*:*:*:*:* does not pin a version, but the report and the touched source identify RT-Thread 5.3.0 as the affected release.

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 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

A malicious 9P server reply reliably triggers an alignment fault on affected ARMv7-A targets; impact is an availability-only crash with no confidentiality or integrity effect, so C:N/I:N/A:H.

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

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

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

DescriptionCVE.org

A weakness has been identified in RT-Thread 5.3.0. This impacts the function get_rx_value64_of of the file components/dfs/dfs_v1/filesystems/9pfs/dfs_9pfs.c of the component 9PFS Filesystem Driver. This manipulation causes incorrect type conversion. Remote exploitation of the attack is possible. Patch name: 47831b738626b93c6d5700f41b7d52f9253f9625. It is recommended to apply a patch to fix this issue.

Executive ViewAI

Why It Matters

A high-severity availability vulnerability in RT-Thread 5.3.0 (CVE-2026-138311) can cause device crashes for products using the 9PFS filesystem driver, disrupting operations and requiring recovery actions. Leadership should prioritize remediation because affected devices may experience downtime, impacting service delivery and customer trust, particularly in ARMv7-A deployments.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 51% exploitable
Prevalence
Low
embedded RTOS with optional, rarely-enabled 9PFS driver; niche deployment
Social Media
4
Sightings
Data Quality
6 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 HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
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