CVE-2026-119332

Ladybird: FinalizationRegistry::cleanup() heap use-after-free via reentrant unregister()

Published Oct 30, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
Ladybird is a truly independent web browser. Prior to 209579c96473c75bd5eba9701fcadb841a045964, FinalizationRegistry::cleanup() in Libraries/LibJS/Runtime/FinalizationRegistry.cpp removed a dead record from m_records, retained an iterator to the next FinalizationRecord, and then invoked attacker-controlled JavaScript through the cleanup callback. If that callback called unregister() for the next record, remove_by_token() freed the node referenced by the retained iterator, and the next cleanup iteration read its target and held_value fields after free. This reliably crashes instrumented WebContent builds and creates a memory-corruption primitive in production builds. This vulnerability is fixed by commit 209579c96473c75bd5eba9701fcadb841a045964.

Analysis

AI-generated

Technical impact

Ladybird’s FinalizationRegistry::cleanup() function performs a use-after-free by retaining an iterator to a registry record, freeing the node via an attacker-controlled callback, and then accessing the freed memory. This results in a reliable crash and presents a memory-corruption primitive that could be leveraged for arbitrary code execution if an attacker can control the cleanup callback. The weakness is a classic heap-based use-after-free (CWE-416).

Affected Systems

The vulnerability affects Ladybird Browser and any builds that include the pre-commit version of FinalizationRegistry.cpp exposed in commit 209579c96473c75bd5eba9701fcadb841a045964. Since the affected revision range is not explicitly versioned, any release built before that commit is vulnerable.

Risk and Exploitability

With a CVSS score of 8.8 the vulnerability is of high severity. The EPSS score is not available, and it is not listed in the CISA KEV catalog. The likely attack vector is a malicious web page that runs JavaScript in the user’s browser context; the attacker needs to be able to trigger FinalizationRegistry::cleanup() and supply a cleanup callback that calls unregister(). Thus the risk is significant for users browsing untrusted content, with the potential to crash the browser or lead to remote code execution if the memory corruption is exploited.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Ladybird Browser to the latest version that contains commit 209579c96473c75bd5eba9701fcadb841a045964, which removes the vulnerable cleanup logic.
  • If an immediate upgrade is impossible, ensure that the affected browser instance is isolated or that the user’s session is restricted to trusted sites until a patch is applied.
  • Monitor Ladybird’s security advisory channel for updates and apply future patches promptly to maintain protection.

Generated by OpenCVE AI on October 30, 2026 at 21:44 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': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ladybirdbrowser
Ladybirdbrowser ladybird
Vendors & Products Ladybirdbrowser
Ladybirdbrowser ladybird
Type Values Removed Values Added
Description Ladybird is a truly independent web browser. Prior to 209579c96473c75bd5eba9701fcadb841a045964, FinalizationRegistry::cleanup() in Libraries/LibJS/Runtime/FinalizationRegistry.cpp removed a dead record from m_records, retained an iterator to the next FinalizationRecord, and then invoked attacker-controlled JavaScript through the cleanup callback. If that callback called unregister() for the next record, remove_by_token() freed the node referenced by the retained iterator, and the next cleanup iteration read its target and held_value fields after free. This reliably crashes instrumented WebContent builds and creates a memory-corruption primitive in production builds. This vulnerability is fixed by commit 209579c96473c75bd5eba9701fcadb841a045964.
Title Ladybird: FinalizationRegistry::cleanup() heap use-after-free via reentrant unregister()
Weaknesses CWE-416
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 6, 2026, 6:00 PM
Reserved
Oct 29, 2026, 8:44 PM
Status
Deferred
Published
Oct 30, 2026, 8:17 PM
Modified
Nov 6, 2026, 7:17 PM