Skip to content
Heist/ feed
Back to feed
High

RT-Thread Parameter lwp_syscall.c sys_select memory corruption

Type: advisorySources: OSV

A vulnerability was found in RT-Thread 5.1.0. It has been rated as critical. Affected by this issue is the function sys_select of the file rt-thread/components/lwp/lwp_syscall.c of the component Parameter Handler. The manipulation of the argument timeout leads to memory corruption. The vendor explains, that "[t]he timeout parameter should be checked to check if it can be accessed correctly in kernel mode and used temporarily in kernel memory."

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-5865
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:04 UTC · Revision 1

Source evidence

RT-Thread Parameter lwp_syscall.c sys_select memory corruption

core-osv · Original source

Published 9 Jun 2025, 06:31 UTC

A vulnerability was found in RT-Thread 5.1.0. It has been rated as critical. Affected by this issue is the function sys_select of the file rt-thread/components/lwp/lwp_syscall.c of the component Parameter Handler. The manipulation of the argument timeout leads to memory corruption. The vendor explains, that "[t]he timeout parameter should be checked to check if it can be accessed correctly in kernel mode and used temporarily in kernel memory."

osv:CVE-2025-5865
Complete source record
{
  "id": "77b5f99d37014b4fb2aa720d8cdf85d032c2a61d46f7d8c2499db570a27f7d3d",
  "url": "https://osv.dev/vulnerability/CVE-2025-5865",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "RT-Thread Parameter lwp_syscall.c sys_select memory corruption",
    "summary": "A vulnerability was found in RT-Thread 5.1.0. It has been rated as critical. Affected by this issue is the function sys_select of the file rt-thread/components/lwp/lwp_syscall.c of the component Parameter Handler. The manipulation of the argument timeout leads to memory corruption. The vendor explains, that \"[t]he timeout parameter should be checked to check if it can be accessed correctly in kernel mode and used temporarily in kernel memory.\"",
    "evidence": "osv:CVE-2025-5865",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-5865",
      "aliases": [
        "CVE-2025-5865"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/rt-thread/rt-thread",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4f7940167d172858e37373bc330c7093e8765d5b"
                },
                {
                  "last_affected": "4f7940167d172858e37373bc330c7093e8765d5b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "5.1.0"
                      },
                      {
                        "last_affected": "5.1.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "cpe": "cpe:2.3:a:rt-thread:rt-thread:5.1.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "5.1.0"
                      },
                      {
                        "last_affected": "5.1.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.1.0",
            "v5.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-5865.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.094138102Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5865.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-5865",
        "https://vuldb.com/?id.311624",
        "https://vuldb.com/?submit.584124",
        "https://github.com/RT-Thread/rt-thread/issues/10298",
        "https://github.com/RT-Thread/rt-thread/issues/10298#issuecomment-2894952150",
        "https://vuldb.com/?ctiid.311624"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-119"
        ],
        "cna_assigner": "VulDB",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5865.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-5865",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497108,
  "published_at": "2025-06-09T06:31:23.53+00:00"
}