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

Use after free in PDF (CVE-2026-10945)

A use-after-free exists in PDFium's progressive rendering when the Ink2 annotation feature appends new strokes to the page's object list during an asynchronous rendering yield, invalidating a saved iterator. An attacker could potentially hijack control flow by resuming rendering and triggering a virtual call on a wild pointer.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 44 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 go/chrome-ai-generated-security-bugs-faq for more information.

Overview: CPDF_ProgressiveRenderer persists a deque iterator across asynchronous rendering yields. The Ink2 feature permits mutating the underlying deque during these yields, leading to map reallocation and a Use-After-Free when rendering resumes.

Affected files:

  • third_party/pdfium/core/fpdfapi/render/cpdf_progressiverenderer.cpp
  • pdf/pdfium/pdfium_engine.cc
  • third_party/pdfium/core/fpdfapi/page/cpdf_pageobjectholder.cpp
  • pdf/pdf_ink_module.cc
  • third_party/pdfium/core/fpdfapi/render/cpdf_progressiverenderer.h

Estimated timestamp from git blame: 2025-07-29

Summary

A potential Use-After-Free (UAF) exists in PDFium's progressive rendering pipeline when combined with the Ink2 annotation feature.

Technical Details

Initial logic and parameters are validated: CPDF_ProgressiveRenderer::Continue() saves a std::deque::const_iterator (last_object_rendered_) across task yields to allow for asynchronous page rendering.

Standard processing applied during the yield window: The Ink2 feature processes user input and appends new strokes to the page's object list via PDFiumEngine::ApplyStroke. This modifies the std::deque without cancelling ongoing progressive paints.

Pushing to the deque forces an internal map reallocation. When rendering resumes, CPDF_ProgressiveRenderer::Continue() increments the stale iterator. This reads directly from the freed map array, yielding an arbitrary CPDF_PageObject*. The subsequent virtual call to IsActive() on this wild pointer results in immediate control flow hijacking.

Potential Reproduction Steps

  1. Initialize a PDF layout near the deque map boundary.
  2. Trigger a progressive rendering yield.
  3. Apply an Ink2 stroke to force reallocation.
  4. Resume rendering to trigger the virtual function call on the controlled pointer.

(Note: These are suggested/potential steps; our tooling agent does not yet have the ability to run code.)

Suggested Fix

Introduce state guards in PDFiumEngine::ApplyStroke (similar to RequestThumbnail) to cancel or properly synchronize active progressive paints before appending to page_object_list_.

Evaluated with Chrome root at commit: 7353d249d9cacf9c7218e1d7b8a39cf39c72d646


Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 progressive renderer stores an iterator into a deque across asynchronous yields, and the Ink2 feature mutates that deque without cancelling or synchronising the ongoing rendering, causing the iterator to become stale.

Impact

The stale iterator yields an arbitrary CPDF_PageObject pointer, and the subsequent virtual call to IsActive() on this wild pointer could result in immediate control flow hijacking.

What the attacker needed

PDF with Ink2 annotation feature; Attacker can supply a crafted PDF; Victim opens the PDF in affected Chrome

The fix

State guards should be introduced in PDFiumEngine::ApplyStroke to cancel or synchronise active progressive paints before appending to the page object list.

How it was found

  1. Initialise a PDF layout near the deque map boundary.
  2. Trigger a progressive rendering yield.
  3. Apply an Ink2 stroke to force reallocation.
  4. Resume rendering to trigger the virtual function call on the controlled pointer.

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.

A use-after-free is a bug where a program keeps using a pointer to memory after that memory has been freed or moved. Here, the PDF renderer remembers a position in a list while it pauses, but another feature adds items to that list during the pause, so the remembered position becomes invalid. When rendering continues, the program reads from the wrong place and could be tricked into running attacker-controlled code.

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.