Skip to main content

RT-Thread CVE-2026-138314

| EUVDEUVD-2026-137838 LOW
Improper Validation of Array Index (CWE-129)
2026-11-29 VulDB GHSA-86vm-4r47-m4m9
1.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Attach malicious/malformed PCI device
  2. Delivery
    Device reports out-of-range MSI-X BIR
  3. Exploit
    Driver uses BIR as raw array index
  4. Execution
    Out-of-bounds resource read and bad ioremap
  5. Impact
    Kernel memory disclosure or crash

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Array index validation
Exploitation Conditions

Requires local access to a device running RT-Thread (<=5.3.0) on a platform that has a PCI bus and uses the PCI MSI-X driver, where the attacker can present a malicious or malformed PCI endpoint whose MSI-X capability reports an out-of-range BIR (and/or inconsistent table offset/size). The vulnerable msix_table_remap() path is only reached when such a device is enumerated, so exploitation is limited to deployments that attach or emulate untrusted PCI hardware; pure microcontroller RT-Thread targets without PCI are not affected. PR:L indicates some local privilege is needed, and no network vector or user interaction applies.

Impact

This is a low-to-moderate severity local issue, not an urgent widespread threat. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N) with low impact across confidentiality, integrity and availability yields a score of 4.8, and the vuln.today Decision label is 'this_month' rather than act_now/emergency. It is NOT on CISA KEV, and no EPSS score was supplied, so there is no signal of active or widespread exploitation. The input lists an exploit reference (a GitHub issue) but explicitly marks it 'reference only, not verified as working exploit code', so a public PoC reference exists but is not confirmed working. The SSVC-style signal is E:P (proof-of-concept) in the CVSS vector, consistent with that. Crucially, the source diff shows the real mechanism: the device-controlled MSI-X BIR field was used as a raw index into pdev->resource[] with no bounds check, and the fix adds 'if (bir >= RT_ARRAY_SIZE(pdev->resource))' plus table-size validation. Exploitation therefore requires presenting a malicious or malformed PCI device to a platform running RT-Thread's PCI MSI-X driver - a precondition the raw CVSS score does not convey. Net: a real but low-priority defect for the narrow set of RT-Thread deployments that enumerate untrusted PCI hardware; patch on a normal maintenance cadence.

Exploit ScenarioDerived

An attacker with local access attaches or emulates a malicious PCI device that reports an out-of-range BIR value in its MSI-X capability. When RT-Thread's msix_table_remap() enumerates the device, it uses that attacker-controlled BIR as a raw array index into pdev->resource[], reading out of bounds and feeding an attacker-influenced base into rt_ioremap(). A public PoC reference exists (a GitHub issue) but it is not verified as working exploit code; attack complexity is low once a crafted device can be presented.

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 array index in RT-Thread's PCI MSI-X driver (components/drivers/pci/msi/msi.c, msix_table_remap) allows a local attacker who controls or emulates a PCI endpoint to make the kernel index pdev->resource[] with a device-supplied BIR value that is never bounds-checked, and to map an MSI-X table that runs past the end of its BAR. Successful triggering gives limited confidentiality, integrity and availability impact on the affected device. The issue affects RT-Thread through 5.3.0 and only on platforms with a PCI bus that enumerate untrusted hardware; pure microcontroller targets without PCI are not exposed. A patch commit (f6857f9fb0f8e1a7e6064ed3078e21587d497ea5, PR #11986) is available from the vendor, and a public issue reference exists but is not verified as working exploit code.

RemediationAI

Upgrade RT-Thread to a revision that includes the vendor patch, commit f6857f9fb0f8e1a7e6064ed3078e21587d497ea5 (merged via PR https://github.com/RT-Thread/rt-thread/pull/11986), which adds the bounds checks on the MSI-X BIR, table offset and table size; confirm the fix is present in your branch since no patched release version is confirmed in the available data. If updating is not immediately possible, reduce exposure by ensuring no untrusted or attacker-emulated PCI endpoints are enumerable on PCI-capable boards: disable PCI enumeration of hot-plug or user-accessible slots, avoid passing through untrusted devices to virtualized RT-Thread instances, and, where the build does not require MSI/MSI-X, exclude components/drivers/pci/msi from the configuration; the trade-off is loss of MSI/MSI-X interrupt support on that platform, and these measures only limit reachability of the vulnerable path rather than removing the flaw.

Affected VersionsENISA

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

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 real-time operating system; its PCI support includes an MSI/MSI-X driver built on the device's resource array (struct rt_pci_device, pdev->resource[]), which describes the Base Address Registers of an endpoint. In msix_table_remap(), the driver reads the MSI-X Table Offset/BIR register from the endpoint's MSI-X capability and uses the BIR field as an index into pdev->resource[] without any range validation. Because the BIR is entirely device-controlled, a malicious or malformed endpoint can supply an out-of-range index, producing an out-of-bounds read of the resource array that is then used to compute the physical base of the mapping. The same path also failed to verify that the table offset plus entries_nr * PCIM_MSIX_ENTRY_SIZE stays inside the selected BAR, and later did not check that a device-reported table size actually covers the number of vectors requested on repeated reads. This is CWE-129 (Improper Validation of Array Index); the underlying cause is missing sanity checking of configuration-space values supplied by untrusted PCI endpoints. The upstream fix bounds the BIR against RT_ARRAY_SIZE(pdev->resource), rejects invalid or zero-sized BARs, masks and validates the table offset and total table size against the BAR size, converts the physical address arithmetic to 64-bit, and rejects vector counts exceeding the reported table size.

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:L/VI:L/VA:L/SC:L/SI:L/SA:L/E:P
vuln.today AI 5.3 MEDIUM

Local exploitation via a malicious PCI device (AV:L, PR:L, AC:L); unchecked BIR array index yields out-of-bounds read and bad ioremap, giving limited C/I/A impact in the kernel driver (S:U).

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/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
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

Lifecycle Timeline

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

DescriptionCVE.org

A flaw has been found in RT-Thread up to 5.3.0. Affected by this issue is the function msix_table_remap of the file components/drivers/pci/msi/msi.c of the component PCI MSI Driver/MSI-X Driver. Executing a manipulation can lead to improper validation of array index. The attack requires local access. The exploit has been published and may be used. This patch is called f6857f9fb0f8e1a7e6064ed3078e21587d497ea5. A patch should be applied to remediate this issue.

Threat Intelligence Overview

EPSS Score
0.2%
Top 97% exploitable
Prevalence
Low
embedded RTOS; vulnerable PCI MSI-X path only on PCI-capable RT-Thread targets
Exploit
POC
Public exploit code exists
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 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
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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