CVE-2026-77641

NULL Write After Free in Tor Relay Leading to Crash

Published Aug 20, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
tor before 0.4.9.9 was prone to a NULL write after free when sending a CONFLUX_SWITCH cell fails. The return value of relay_send_command_from_edge() was ignored, so a send failure (which calls circuit_mark_for_close() and removes the leg via cfx_del_leg()) would go undetected, causing the caller to write to the now-freed current leg and resulting in a crash. This is TROVE-2026-017.

Analysis

AI-generated

Technical impact

A NULL write after free occurs in the tor relay when a CONFLUX_SWITCH cell fails to send. The failure is not detected because the function relay_send_command_from_edge ignores its return value, causing the relay to attempt to write to a leg that has already been freed. This overwrite leads to a crash, disrupting the relay and potentially any clients relying on it. The weakness is a classic example of unchecked return value misuse, identified as CWE-252.

Affected Systems

Tor versions prior to 0.4.9.9 are affected. The issue applies to all builds of the tor project that use the relay_send_command_from_edge code path. No specific patch version was listed beyond the fact that tor 0.4.9.9 fixed the bug.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate to high severity for disruption. No EPSS data is available, and the vulnerability is not listed in the CISA KEV catalog. The most likely attack vector requires an attacker able to send or influence a CONFLUX_SWITCH cell to a targeted relay; this could be achieved by a malicious network participant or by forcing a send failure. While the vulnerability does not expose confidentiality or integrity, it can enable a denial of service against the Tor network by crashing a relay.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade tor to version 0.4.9.9 or later.
  • Restart the tor process so that the updated code takes effect.
  • Monitor relay logs and restart patterns for signs of crashes and consider automating failover for high‑availability relays.

Generated by OpenCVE AI on August 21, 2026 at 01:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title NULL Write After Free in Tor Relay Leading to Crash
Type Values Removed Values Added
Description tor before 0.4.9.9 was prone to a NULL write after free when sending a CONFLUX_SWITCH cell fails. The return value of relay_send_command_from_edge() was ignored, so a send failure (which calls circuit_mark_for_close() and removes the leg via cfx_del_leg()) would go undetected, causing the caller to write to the now-freed current leg and resulting in a crash. This is TROVE-2026-017.
First Time appeared Torproject
Torproject tor
Weaknesses CWE-252
CPEs cpe:2.3:a:torproject:tor:*:*:*:*:*:*:*:*
Vendors & Products Torproject
Torproject tor
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 27, 2026, 4:06 PM
Reserved
Aug 20, 2026, 9:09 PM
Status
Analyzed
Published
Aug 20, 2026, 9:17 PM
Modified
Oct 18, 2026, 8:10 PM