| 标题 | RT-Thread 5.3.0; master before commit 47831b738626b93c6d5700f41b7d52f9253f9625 Denial of Service |
|---|
| 描述 | Summary:
The RT-Thread 9PFS client parses packed Rstat reply fields by casting unaligned buffer addresses to 64-bit pointers and dereferencing them. On ARMv7-A, the compiler can emit an unaligned LDRD instruction. A normal Rstat response from a 9P server can therefore cause a kernel data abort while opening or inspecting a 9P file.
Affected component:
components/dfs/dfs_v1/filesystems/9pfs/dfs_9pfs.c
Functions get_rx_value64_of(), dfs_9pfs_open(), and dfs_9pfs_stat().
Technical details:
The allocated p9_connection structure causes the receive buffer to be misaligned relative to the Rstat size field. The parser accesses that field as a 64-bit value without first copying it into an aligned local variable. Testing with an ordinary 9P server produced an ARMv7-A alignment fault in the stat or open path and caused the kernel to shut down. A malformed reply is not required to trigger the reported fault.
Impact:
A remote 9P server can trigger a kernel data abort in an affected client, resulting in denial of service.
Attack requirements:
The client must run on an affected 32-bit ARM target with DFS v1 and 9PFS enabled and must interact with a 9P server.
Weakness:
CWE-704 Incorrect Type Conversion or Cast
CVSS 3.1:
7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fix:
Commit 47831b738626b93c6d5700f41b7d52f9253f9625 changes the packed-field accessors to copy values into aligned local variables before decoding them. 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-10-15. The upstream fix was merged on 2026-11-05.
References:
https://github.com/RT-Thread/rt-thread/issues/11868
https://github.com/RT-Thread/rt-thread/pull/11876
https://github.com/RT-Thread/rt-thread/commit/47831b738626b93c6d5700f41b7d52f9253f9625
Reporter:
XueDugu (https://github.com/XueDugu)
|
|---|
| 来源 | ⚠️ https://github.com/RT-Thread/rt-thread/issues/11868 |
|---|
| 用户 | BenSmith (UID 102206) |
|---|
| 提交 | 2026-11-05 06時49分 (24 日前) |
|---|
| 管理 | 2026-11-28 22時15分 (24 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 445136 [RT-Thread 5.3.0 9PFS Filesystem Driver dfs_9pfs.c get_rx_value64_of 权限提升] |
|---|
| 积分 | 20 |
|---|