Closed Bug 2013777 Opened 9 months ago Closed 9 months ago

UAF due to GC freeing trial inlined ICScript which is still alive

Categories

(Core :: JavaScript: GC, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 2013583

People

(Reporter: x0e, Unassigned)

Details

(Keywords: csectype-uaf, reporter-external, sec-high)

Steps to reproduce:

The regressor for this bug appears to be bug 1960433. The issue is that the trial inlined ICScript is not being correctly determined to be alive, causing it to be freed by the GC and, consequently, causing the call IC to jump to a freed pointer.

engine version             : e11224bc34678000338c265c9053253cf7edf9cc
engine version date    : 2026-01-31T14:52:00

Args: js --fuzzing-safe <...>

gczeal(10);

function a() { this.b; }
c = [a];

for (f = 0; ; f++) {
    d = f == 1000;
    a();
    e = c[d | 0];
    a.prototype = e;
    new a;
}
Group: firefox-core-security → core-security
Component: Untriaged → JavaScript: GC
Flags: sec-bounty?
Product: Firefox → Core
Group: core-security → javascript-core-security

Thanks for the report.

This is a duplicate of bug 2013583 and fixed by the patch for that bug.

Status: NEW → RESOLVED
Closed: 9 months ago
Duplicate of bug: CVE-2026-2766
Resolution: --- → DUPLICATE

This bug was filed within the bounty collision window with duplicate bug 2013583 so we are splitting the bounty award between the two bugs.

Flags: sec-bounty? → sec-bounty+
Group: javascript-core-security
You need to log in before you can comment on or make changes to this bug.