CVE-2026-119332: Ladybird: FinalizationRegistry::cleanup() heap use-after-free via reentrant unregister()
Ladybird is a truly independent web browser. Prior to 209579c96473c75bd5eba9701fcadb841a045964, FinalizationRegistry::cleanup() in Libraries/LibJS/Runtime/FinalizationRegistry.cpp removed a dead record from mrecords, 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, removebytoken() freed the node referenced by the retained iterator, and the next cleanup iteration read its target and heldvalue 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Ladybirdto a version that resolves this vulnerability.Patch 209579c96473c75bd5eba9701fcadb841a045964
Event History
Frequently Asked Questions
What does an attacker need to exploit this issue?
An attacker needs to cause JavaScript to use a FinalizationRegistry cleanup callback that reentrantly calls unregister() for the next finalization record. No privileges are required, but user interaction is required according to the supplied CVSS vector.
What impact can exploitation have?
The issue reliably crashes instrumented WebContent builds. In production builds, it creates a memory-corruption primitive with potential confidentiality, integrity, and availability impact.
How can this be remediated?
Update to a Ladybird revision that includes commit 209579c96473c75bd5eba9701fcadb841a045964. The provided data does not identify a release version containing the fix.