| Titre | RT-Thread RT-Thread Smart 5.3.0; master before commit 3277e831bfcef03c26158b110f0e925e9c5e71ee Memory Corruption |
|---|
| Description | Summary:
The RT-Thread Smart graphic device driver accepts a signed file offset without checking that the offset is within the framebuffer. An unprivileged local process with access to a framebuffer device can use a negative offset through pread64 or pwrite64 to read from or write to memory outside the framebuffer.
Affected component:
components/drivers/graphic/graphic.c
Functions _graphic_read() and _graphic_write().
Technical details:
RT-Smart passes the file offset through the DFS and device dispatch layers to the graphic driver. The driver performs pointer arithmetic with the signed offset before validating it. A negative offset can therefore place the source or destination pointer before the framebuffer. The issue was reproduced through the RT-Smart user-to-kernel boundary and through the public graphic device API on RP2350 hardware.
Impact:
An unprivileged local attacker can read or modify mapped kernel memory. This can disclose sensitive data, corrupt kernel state, cause a denial of service, or potentially lead to kernel code execution.
Attack requirements:
The affected build must enable the graphic subsystem and expose a framebuffer device such as /dev/fb0. The attacker must be able to execute an unprivileged local process.
Weakness:
CWE-787 Out-of-bounds Write
CWE-125 Out-of-bounds Read
CWE-823 Use of Out-of-range Pointer Offset
CVSS 3.1:
8.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Fix:
Commit 3277e831bfcef03c26158b110f0e925e9c5e71ee rejects negative offsets and offsets at or beyond the framebuffer length in both graphic read and write operations. No numbered fixed release was identified when this report was prepared. Affected users should update to a release containing this commit or backport the patch.
Public disclosure:
The vulnerability was publicly reported in the RT-Thread GitHub issue tracker on 2026-11-02. The upstream fix was merged on 2026-11-05.
References:
https://github.com/RT-Thread/rt-thread/issues/11969
https://github.com/RT-Thread/rt-thread/pull/11970
https://github.com/RT-Thread/rt-thread/commit/3277e831bfcef03c26158b110f0e925e9c5e71ee
Reporter:
XueDugu (https://github.com/XueDugu)
|
|---|
| La source | ⚠️ https://github.com/RT-Thread/rt-thread/issues/11969 |
|---|
| Utilisateur | BenSmith (UID 102206) |
|---|
| Soumission | 05/11/2026 06:51 (il y a 24 jours) |
|---|
| Modérer | 28/11/2026 22:15 (24 days later) |
|---|
| Statut | Accepté |
|---|
| Entrée VulDB | 445138 [RT-Thread jusqu’à 5.3.0 Graphic Device Driver graphic.c _graphic_read/_graphic_write pos buffer overflow] |
|---|
| Points | 20 |
|---|