CVE-2025-62526
Linux Ubuntu vulnerability analysis and mitigation

Overview

CVE-2025-62526 is a heap-based buffer overflow vulnerability in the ubusd event registration parsing code of OpenWrt, a Linux operating system for embedded devices (e.g., routers). It affects all OpenWrt versions prior to 24.10.4, including end-of-life branches 23.05 and 22.03. The vulnerability was reported by Karsten Sperling from Apple, disclosed on October 22, 2025, and fixed in OpenWrt 24.10.4 (and snapshot builds since October 18, 2025). It carries a CVSS v3.1 base score of 7.8–7.9 (High), depending on the scoring authority (GitHub Advisory, Feedly).

Technical details

The root cause is a heap-based buffer overflow (CWE-122) in ubusd_event.c, specifically in the ubusd_alloc_event_pattern() function responsible for parsing event registration messages. The vulnerable code runs before ACL checks are applied, meaning any authenticated ubus client — regardless of privilege level — can send a crafted event subscription message that triggers an out-of-bounds write on the heap. A secondary issue exists in the ACL check logic: a wildcard event match (pattern[0]) was incorrectly gating the UBUS_ACL_LISTEN check, allowing a crafted subscription to bypass the listen ACL entirely. Three separate commits address the issues: fixing the out-of-bounds access (d31effb), fixing additional missing length checks for patterns (aa4a7ee), and correcting the ACL bypass (60e0404) (GitHub Advisory, ubus commit 60e0404, ubus commit aa4a7ee).

Impact

Successful exploitation allows a low-privileged local ubus client to corrupt heap memory in the ubus daemon (ubusd) and potentially execute arbitrary code in the daemon's security context, which typically runs with elevated privileges on OpenWrt devices. Additionally, the ACL bypass component allows the attacker to subscribe to events they are not authorized to receive, potentially exposing sensitive system event data. On embedded devices like routers, compromise of ubusd can lead to full device takeover, persistent backdoor installation, traffic interception, and lateral movement within the network managed by the device (GitHub Advisory, Feedly).

Exploitability

As of the time of disclosure, no public proof-of-concept exploit code has been released, and there is no evidence of in-the-wild exploitation. A PoC was provided privately to the OpenWrt project by the reporter (Karsten Sperling, Apple) as part of responsible disclosure. The EPSS score is approximately 0.012% (0.000120), indicating a low current probability of exploitation in the wild. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires local access as a ubus client, which limits the attack surface compared to network-accessible vulnerabilities (GitHub Advisory, Feedly).

Exploitation steps

  1. Gain local ubus client access: Obtain low-privilege local access to an OpenWrt device running a version prior to 24.10.4 (e.g., via a compromised service, SSH access, or a malicious package). Any process that can connect to the ubus socket qualifies as a ubus client.
  2. Craft a malicious event registration message: Construct a ubus event subscription message with a specially crafted pattern field that triggers an out-of-bounds write in ubusd_alloc_event_pattern(). The pattern must be designed to overflow the heap buffer allocated for the event pattern structure.
  3. Send the message before ACL evaluation: Because the vulnerable parsing code executes before ACL checks, the malicious message is processed regardless of the client's permissions. This also enables the ACL bypass for wildcard event subscriptions.
  4. Achieve heap corruption: The crafted message causes the ubus daemon to write beyond the allocated heap buffer, corrupting adjacent heap metadata or data structures (e.g., modifying the heap head pointer).
  5. Execute arbitrary code: Leverage the heap corruption to redirect execution flow within the ubusd process, potentially achieving arbitrary code execution in the daemon's context and full device compromise (GitHub Advisory, ubus commit d31effb).

Indicators of compromise

  • Logs: Unexpected crashes or restarts of the ubusd process visible in system logs (/var/log/messages or logread output); kernel messages indicating heap corruption (e.g., Oops, BUG, or memory fault traces).
  • Process: Unusual child processes spawned by ubusd; unexpected processes running with elevated privileges on the device.
  • File System: New or modified files in /tmp, /etc, or other writable directories that could indicate post-exploitation persistence (e.g., modified init scripts, new cron entries, or dropped binaries).
  • Network: Unexpected outbound connections from the router to external IPs, particularly on non-standard ports, which may indicate a reverse shell or C2 beacon established after exploitation.
  • ubus: Unexpected event subscriptions from low-privilege clients visible via ubus monitor or ubus logging, particularly wildcard subscriptions that should be ACL-restricted.

Mitigation and workarounds

The only available fix is upgrading to OpenWrt 24.10.4 or later (including snapshot builds dated October 18, 2025 or later); the OpenWrt project has confirmed there are no workarounds for this vulnerability. End-of-life versions (23.05, 22.03) will not receive patches and should be migrated to a supported release. As a defense-in-depth measure, administrators should restrict local system access to trusted users and processes, and implement network segmentation to limit the blast radius of a compromised device (GitHub Advisory, OpenWrt Advisory).

Community reactions

The vulnerability received coverage from Heise Online, which reported on the OpenWrt security updates closing vulnerabilities in the router operating system (Heise). Security community members discussed the issue on Mastodon (infosec.exchange) and Bluesky shortly after disclosure. A community blog post highlighted the RCE risk and urged immediate patching. The OpenWrt project credited Karsten Sperling from Apple for responsible disclosure and provision of a PoC, reflecting a well-coordinated disclosure process (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Linux Ubuntu vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-50538HIGH8.8
  • Linux Debian logoLinux Debian
  • veyon
NoYesAug 21, 2026
CVE-2026-53525HIGH7.4
  • Linux Debian logoLinux Debian
  • weechat
NoYesAug 21, 2026
CVE-2026-53524MEDIUM6.5
  • Linux Debian logoLinux Debian
  • weechat
NoYesAug 21, 2026
CVE-2026-56136NONEN/A
  • Linux Debian logoLinux Debian
  • libntfs-3g-devel
NoYesAug 24, 2026
CVE-2026-56135NONEN/A
  • Linux Debian logoLinux Debian
  • libntfs-3g87
NoYesAug 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management