Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttach malicious/malformed PCI device
-
DeliveryDevice reports out-of-range MSI-X BIR
-
ExploitDriver uses BIR as raw array index
-
ExecutionOut-of-bounds resource read and bad ioremap
-
ImpactKernel 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.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
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-137838
GHSA-86vm-4r47-m4m9
NVD
CVE.org
EPSS
VulDB
Exploit-DB