Skip to content
Memory corruption Advisory Advanced CVE-2026-9992

Use after free in Network (CVE-2026-9992)

A use-after-free write was reported in the Network Service's Private State Token issuance handling: an empty token response header causes a synchronous callback that can delete the URLLoader and its response headers while the helper still holds a reference. A malicious issuer could then trigger memory corruption inside the sandboxed Network Service process.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 14 days

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential Use-After-Free (UAF) write vulnerability exists in the Network Service when processing Private State Token issuance responses. Synchronous re-entrancy during response finalization can lead to the destruction of the URLLoader and its headers while they are still being accessed. This could allow a malicious issuer to trigger memory corruption in the sandboxed Network Service process.

Affected files:

  • services/network/trust_tokens/trust_token_request_issuance_helper.cc
  • services/network/url_loader.cc
  • net/http/http_response_headers.cc

Estimated timestamp from git blame: 2024-10-08

Description

A potential Heap Use-After-Free (UAF) vulnerability with a write primitive has been identified in the Network Service's Private State Token (PST) issuance logic. The issue arises from a synchronous re-entrancy path in TrustTokenRequestIssuanceHelper::Finalize that allows the underlying URLLoader and its associated HttpResponseHeaders object to be destroyed before the helper completes its execution.

Technical Details

In services/network/trust_tokens/trust_token_request_issuance_helper.cc, the Finalize method processes the Sec-Private-State-Token response header. If this header is present but empty, the code executes a synchronous path:

C++
// services/network/trust_tokens/trust_token_request_issuance_helper.cc
void TrustTokenRequestIssuanceHelper::Finalize(
    net::HttpResponseHeaders& response_headers,
    base::OnceCallback<void(mojom::TrustTokenOperationStatus)> done) {
  ...
  ProcessIssuanceResponse(std::string(*header_value), std::move(done));
  // ...
  response_headers.RemoveHeader(kTrustTokensSecTrustTokenHeader); // POTENTIAL UAF
}

When the header value is empty, ProcessIssuanceResponse immediately invokes the done completion callback synchronously. This callback chain propagates back to the URLLoader, which continues its response processing. If the response contains certain headers (e.g., Ad-Auction-Only: true in a non-trusted request or a CORP violation), the URLLoader may call DeleteSelf() synchronously.

Because the URLLoader (and its net::URLRequest) owns the net::HttpResponseHeaders object via scoped_refptr, the synchronous deletion of the loader results in the destruction of the headers. When the stack unwinds back to the Finalize method, the subsequent call to response_headers.RemoveHeader accesses a deallocated object. This call leads to MergeWithHeaders and Parse, which perform multiple writes to the freed memory.

Potential Impact

If exploitable, this would allow deterministic memory corruption (UAF write) within the sandboxed Network Service process. The vulnerability is not protected by MiraclePtr because the dangling reference is held as a C++ reference on the stack during the re-entrant call, not as a raw_ptr member.

Suggested Reproduction Steps (Potential)

An attacker might attempt to trigger this via the following steps:

  1. Host a page that initiates a PST issuance request: fetch(url, {privateToken:{version:1, operation:'token-request'}}).
  2. The target origin must be a registered PST issuer controlled by the attacker.
  3. The issuer returns a response with:
    • Sec-Private-State-Token: (header present with an empty value)
    • Ad-Auction-Only: true (to trigger the synchronous DeleteSelf path in URLLoader for a renderer-initiated request).
  4. In a build with ASAN, this is expected to trigger a heap-use-after-free report in net::HttpResponseHeaders::RemoveHeader.

Recommended Fix

Ensure that the header removal occurs before the potentially synchronous ProcessIssuanceResponse call, or ensure that the completion callback is always invoked asynchronously (e.g., via base::SequencedTaskRunner::GetCurrentDefault()->PostTask) to prevent re-entrancy into the URLLoader while the helper is still using the headers reference.

Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the header removal happens after a callback that can run synchronously and destroy the object owning the headers, leaving a dangling reference on the stack.

Impact

If exploitable, this could allow deterministic memory corruption within the sandboxed Network Service process; the report does not claim a sandbox escape.

What the attacker needed

Attacker-controlled registered PST issuer; victim visits attacker page; Chromium build with PST enabled

The fix

The header should be removed before the synchronous processing call, or the completion callback should always be posted asynchronously to avoid re-entrancy.

How it was found

  1. Host a page that starts a Private State Token issuance request.
  2. Make the target origin an attacker-controlled registered issuer.
  3. Return a response with an empty token header and a header that forces synchronous loader deletion.
  4. Observe a heap-use-after-free in an ASAN build.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a program frees a chunk of memory but keeps using it, that is a use-after-free. Here, a response header triggers a callback that tears down the object holding the headers, and the code then writes into that freed memory, which can corrupt the browser's network process.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.