Out of bounds read in PDFium (CVE-2025-1918)
An out-of-bounds read occurs in PDFium's GetRotatedRectF function when handling a PDF page's bounding box, triggered by a crafted HTML page. An attacker could cause a browser crash, potentially leading to further exploitation.
- Fix shipped in 55 days
VULNERABILITY DETAILS access-violation on unknown address 0x7ffde90a6f3c in chrome_pdf::`anonymous namespace'::GetRotatedRectF
VERSION Chromium 133.0.6941.0 (Developer Build) (64-bit) OS Windows 11 Version 24H2 (Build 26100.2605)
REPRODUCTION CASE
- Download the latest asan build.
- run the command: ./chrome.exe --no-sandbox --user-data-dir=C:/tmp/zzz http://localhost:8000/poc.html
FOR CRASHES, PLEASE INCLUDE THE FOLLOWING ADDITIONAL INFORMATION Type of crash: [tab]
==25228==ERROR: AddressSanitizer: access-violation on unknown address 0x7ffde90a6f3c (pc 0x7ff9cbff8c9e bp 0x00db1d5fb9a0 sp 0x00db1d5fb840 T0) ==25228==The signal is caused by a READ memory access. ==25228==*** WARNING: Failed to initialize DbgHelp! *** ==25228==*** Most likely this means that the app is already *** ==25228==*** using DbgHelp, possibly with incompatible flags. *** ==25228==*** Due to technical reasons, symbolization might crash *** ==25228==*** or produce wrong results. *** [31272:31316:0109/110645.574:ERROR:fm_registration_token_uploader.cc(186)] Client is missing for kUser scope [31272:31316:0109/110645.574:ERROR:fm_registration_token_uploader.cc(186)] Client is missing for kUser scope [31272:25008:0109/110646.321:ERROR:registration_request.cc(291)] Registration response error message: DEPRECATED_ENDPOINT #0 0x7ff9cbff8c9d in chrome_pdf::`anonymous namespace'::GetRotatedRectF C:\b\s\w\ir\cache\builder\src\pdf\pdfium\pdfium_page.cc:354 #1 0x7ff9cbff8c9d in chrome_pdf::PDFiumPage::GetBoundingBox(void) C:\b\s\w\ir\cache\builder\src\pdf\pdfium\pdfium_page.cc:782:7 #2 0x7ff9dbd8ad0c in chrome_pdf::PdfViewWebPlugin::HandleGetPageBoundingBoxMessage(class base::Value::Dict const &) C:\b\s\w\ir\cache\builder\src\pdf\pdf_view_web_plugin.cc:1654:35 #3 0x7ff9dbd89fb0 in chrome_pdf::PdfViewWebPlugin::OnMessage(class base::Value::Dict const &) C:\b\s\w\ir\cache\builder\src\pdf\pdf_view_web_plugin.cc:1608:3 #4 0x7ff9df92c078 in base::internal::DecayedFunctorTraits<void (chrome_pdf::PostMessageReceiver::Client::)(const base::Value::Dict &),base::WeakPtr<chrome_pdf::PostMessageReceiver::Client> &&,base::Value::Dict &&>::Invoke C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:729 #5 0x7ff9df92c078 in base::internal::InvokeHelper<1,base::internal::FunctorTraits<void (chrome_pdf::PostMessageReceiver::Client::&&)(const base::Value::Dict &),base::WeakPtr<chrome_pdf::PostMessageReceiver::Client> &&,base::Value::Dict &&>,void,0,1>::MakeItSo C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:945 #6 0x7ff9df92c078 in base::internal::Invoker<base::internal::FunctorTraits<void (chrome_pdf::PostMessageReceiver::Client::&&)(const base::Value::Dict &),base::WeakPtr<chrome_pdf::PostMessageReceiver::Client> &&,base::Value::Dict &&>,base::internal::BindState<1,1,0,void (chrome_pdf::PostMessageReceiver::Client::)(const base::Value::Dict &),base::WeakPtr<chrome_pdf::PostMessageReceiver::Client>,base::Value::Dict>,void ()>::RunImpl C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:1058 #7 0x7ff9df92c078 in base::internal::Invoker<struct base::internal::FunctorTraits<void (__cdecl chrome_pdf::PostMessageReceiver::Client::&&)(class base::Value::Dict const &), class base::WeakPtr<class chrome_pdf::PostMessageReceiver::Client> &&, class base::Value::Dict &&>, struct base::internal::BindState<1, 1, 0, void (__cdecl chrome_pdf::PostMessageReceiver::Client::)(class base::Value::Dict const &), class base::WeakPtr<class chrome_pdf::PostMessageReceiver::Client>, class base::Value::Dict>, (void)>::RunOnce(class base::internal::BindStateBase *) C:\b\s\w\ir\cache\builder\src\base\functional\bind_internal.h:971:12 #8 0x7ff9cd966acc in base::OnceCallback<void ()>::Run C:\b\s\w\ir\cache\builder\src\base\functional\callback.h:156 #9 0x7ff9cd966acc in base::TaskAnnotator::RunTaskImpl(struct base::PendingTask &) C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.cc:210:34 #10 0x7ff9d29a5a94 in base::TaskAnnotator::RunTask C:\b\s\w\ir\cache\builder\src\base\task\common\task_annotator.h:106 #11 0x7ff9d29a5a94 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(class base::LazyNow *) C:\b\s\w\ir\cache\builder\src\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:472:23 #12 0x7ff9d29a47e9 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork(void) C:\b\s\w\ir\cache\builder\src\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:332:40 #13 0x7ff9d29e761e in base::MessagePumpDefault::Run(class base::MessagePump::Delegate ) C:\b\s\w\ir\cache\builder\src\base\message_loop\message_pump_default.cc:40:55 #14 0x7ff9d29a7782 in base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool, class base::TimeDelta) C:\b\s\w\ir\cache\builder\src\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:645:12 #15 0x7ff9cd9c4e7e in base::RunLoop::Run(class base::Location const &) C:\b\s\w\ir\cache\builder\src\base\run_loop.cc:134:14 #16 0x7ff9d19f5535 in content::RendererMain(struct content::MainFunctionParams) C:\b\s\w\ir\cache\builder\src\content\renderer\renderer_main.cc:337:16 #17 0x7ff9cb731b81 in content::RunOtherNamedProcessTypeMain(class std::__Cr::basic_string<char, struct std::__Cr::char_traits<char>, class std::Cr::allocator<char>> const &, struct content::MainFunctionParams, class content::ContentMainDelegate *) C:\b\s\w\ir\cache\builder\src\content\app\content_main_runner_impl.cc:777:14 #18 0x7ff9cb733dc0 in content::ContentMainRunnerImpl::Run(void) C:\b\s\w\ir\cache\builder\src\content\app\content_main_runner_impl.cc:1146:10 #19 0x7ff9cb7280a5 in content::RunContentProcess(struct content::ContentMainParams, class content::ContentMainRunner *) C:\b\s\w\ir\cache\builder\src\content\app\content_main.cc:348:36 #20 0x7ff9cb728c4d in content::ContentMain(struct content::ContentMainParams) C:\b\s\w\ir\cache\builder\src\content\app\content_main.cc:361:10 #21 0x7ff9bc7a1681 in ChromeMain C:\b\s\w\ir\cache\builder\src\chrome\app\chrome_main.cc:222:12 #22 0x7ff62c2b435d in MainDllLoader::Launch(struct HINSTANCE, class base::TimeTicks) C:\b\s\w\ir\cache\builder\src\chrome\app\main_dll_loader_win.cc:201:12 #23 0x7ff62c2b2006 in main C:\b\s\w\ir\cache\builder\src\chrome\app\chrome_exe_main_win.cc:352:20 #24 0x7ff62c82f12b in invoke_main D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78 #25 0x7ff62c82f12b in __scrt_common_main_seh D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288 #26 0x7ffaa368e8d6 (C:\WINDOWS\System32\KERNEL32.DLL+0x18002e8d6) #27 0x7ffaa4e3fbcb (C:\WINDOWS\SYSTEM32\ntdll.dll+0x1800dfbcb)
==25228==Register values: rax = 7ff9e90a6f40 rbx = db1d5fb920 rcx = 785cea1acbec rdx = ffffffff rdi = 12106f50f7c0 rsi = db1d5fbb40 rbp = db1d5fb9a0 rsp = db1d5fb840 r8 = 11f26fa71200 r9 = 20 r10 = 12346f806000 r11 = fdfdfdfdfdfdfdfd r12 = db1d5fb840 r13 = 1ec6f480000 r14 = 12126f5c32c0 r15 = 0 AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: access-violation C:\b\s\w\ir\cache\builder\src\pdf\pdfium\pdfium_page.cc:354 in chrome_pdf::`anonymous namespace'::GetRotatedRectF
==25228==ADDITIONAL INFO
==25228==Note: Please include this section with the ASan report. Task trace: #0 0x7ff9df92b9eb in chrome_pdf::PostMessageReceiver::PostMessageW(class v8::Local<class v8::Value>) C:\b\s\w\ir\cache\builder\src\pdf\post_message_receiver.cc:131:7 #1 0x7ff9cdc451c5 in mojo::SimpleWatcher::Context::Notify(unsigned int, struct MojoHandleSignalsState, unsigned int) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\system\simple_watcher.cc:102:13
Command line: "./chrome.exe" --type=renderer --string-annotations --user-data-dir=C:/tmp/zzz --no-pre-read-main-dll --pdf-renderer --no-sandbox --file-url-path-alias="/gen=asan\gen" --video-capture-use-gpu-memory-buffer --lang=en-US --js-flags=--jitless --device-scale-factor=1.5 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=9 --time-ticks-at-unix-epoch=-1736218503358671 --launch-time-ticks=173501150759 --metrics-shmem-handle=4356,i,11093616363079205023,10641701609597647046,2097152 --field-trial-handle=4540,i,11787306298688871873,6099382784474387663,262144 --variations-seed-version --mojo-platform-channel-handle=4536 /prefetch:1
==25228==END OF ADDITIONAL INFO ==25228==ABORTING
Context
PDFium is the PDF rendering engine used by Chrome. When Chrome displays a PDF, the browser-side plugin code (chrome_pdf::PdfViewWebPlugin) talks to the renderer over a message channel, and the renderer-side PDFiumPage wrapper queries PDFium for page geometry. One of those queries is the page bounding box, which the viewer needs to lay out and scroll the document.
This report covers an out-of-bounds read in that path, tracked as CVE-2025-1918, found by asnine and disclosed through the Chrome VRP on 4 March 2025. The platform records it as a medium severity out-of-bounds read in PDFium with a bounty of 2000.00 USD.
Setup
The crash was reproduced on a Developer Build of Chromium, version 133.0.6941.0 (64-bit), running on Windows 11 Version 24H2 (Build 26100.2605). The researcher used an AddressSanitizer build and served a local proof-of-concept page over HTTP on port 8000. The crash type recorded is a tab crash.
Finding it
The faulting frame is chrome_pdf::anonymous namespace'::GetRotatedRectFatpdfium_page.cc:354. AddressSanitizer reports an access-violation on an unknown address, caused by a READ memory access. The call chain shows the read is reached from PDFiumPage::GetBoundingBox (pdfium_page.cc:782), which is invoked by PdfViewWebPlugin::HandleGetPageBoundingBoxMessage (pdf_view_web_plugin.cc:1654) when the plugin receives a page bounding box message through PdfViewWebPlugin::OnMessage (pdf_view_web_plugin.cc:1608`).
In other words, a message from the viewer side asking for a page's bounding box ends up in geometry code that reads past the end of a buffer. The register dump shows r11 holding fdfdfdfdfdfdfdfd and the faulting address 0x7ffde90a6f3c close to the value in rax (7ff9e90a6f40).
Exploitation
Step 1: Prepare the build and the page
Download the latest ASan build and place the proof-of-concept page so it is reachable at http://localhost:8000/poc.html. The report does not include the contents of poc.html.
Step 2: Launch Chrome against the page
./chrome.exe --no-sandbox --user-data-dir=C:/tmp/zzz http://localhost:8000/poc.html
The command runs Chrome with --no-sandbox, a user data directory at C:/tmp/zzz, and the local proof-of-concept URL. The renderer command line recorded in the report includes --pdf-renderer.
Step 3: Observe the crash
AddressSanitizer aborts the renderer with the following report:
==25228==ERROR: AddressSanitizer: access-violation on unknown address 0x7ffde90a6f3c (pc 0x7ff9cbff8c9e bp 0x00db1d5fb9a0 sp 0x00db1d5fb840 T0)
==25228==The signal is caused by a READ memory access.
The top frames of the stack are:
#0 0x7ff9cbff8c9d in chrome_pdf::`anonymous namespace'::GetRotatedRectF C:\b\s\w\ir\cache\builder\src\pdf\pdfium\pdfium_page.cc:354
#1 0x7ff9cbff8c9d in chrome_pdf::PDFiumPage::GetBoundingBox(void) C:\b\s\w\ir\cache\builder\src\pdf\pdfium\pdfium_page.cc:782:7
#2 0x7ff9dbd8ad0c in chrome_pdf::PdfViewWebPlugin::HandleGetPageBoundingBoxMessage(class base::Value::Dict const &) C:\b\s\w\ir\cache\builder\src\pdf\pdf_view_web_plugin.cc:1654:35
#3 0x7ff9dbd89fb0 in chrome_pdf::PdfViewWebPlugin::OnMessage(class base::Value::Dict const &) C:\b\s\w\ir\cache\builder\src\pdf\pdf_view_web_plugin.cc:1608:3
The summary line names the same location:
SUMMARY: AddressSanitizer: access-violation C:\b\s\w\ir\cache\builder\src\pdf\pdfium\pdfium_page.cc:354 in chrome_pdf::`anonymous namespace'::GetRotatedRectF
The task trace shows where the message originates:
Task trace:
#0 0x7ff9df92b9eb in chrome_pdf::PostMessageReceiver::PostMessageW(class v8::Local<class v8::Value>) C:\b\s\w\ir\cache\builder\src\pdf\post_message_receiver.cc:131:7
#1 0x7ff9cdc451c5 in mojo::SimpleWatcher::Context::Notify(unsigned int, struct MojoHandleSignalsState, unsigned int) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\system\simple_watcher.cc:102:13
So the request for the bounding box arrives as a posted message from the viewer, is dispatched by PostMessageReceiver, and is handled in the renderer, where the geometry code reads out of bounds.
The renderer command line recorded in the report is:
"./chrome.exe" --type=renderer --string-annotations --user-data-dir=C:/tmp/zzz --no-pre-read-main-dll --pdf-renderer --no-sandbox --file-url-path-alias="/gen=asan\gen" --video-capture-use-gpu-memory-buffer --lang=en-US --js-flags=--jitless --device-scale-factor=1.5 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=9 --time-ticks-at-unix-epoch=-1736218503358671 --launch-time-ticks=173501150759 --metrics-shmem-handle=4356,i,11093616363079205023,10641701609597647046,2097152 --field-trial-handle=4540,i,11787306298688871873,6099382784474387663,262144 --variations-seed-version --mojo-platform-channel-handle=4536 /prefetch:1
Root cause
GetRotatedRectF computes a rotated rectangle for a page, and the crash is a read at pdfium_page.cc:354 reached from PDFiumPage::GetBoundingBox. The report does not include the source of that function or the exact buffer that is overrun, so the precise mistake is not stated. What the stack does establish is that a bounding box request from the viewer, handled in HandleGetPageBoundingBoxMessage, drives the geometry code into reading outside a valid allocation. The report does not interpret the fdfdfdfdfdfdfdfd value in r11.
Impact
The report classifies the issue as an out-of-bounds read and the platform records it as medium severity. In the demonstrated case the consequence is a renderer tab crash. An out-of-bounds read in the renderer can in principle leak memory contents or be chained with other bugs, but the report itself only demonstrates the crash and does not show information disclosure or any step beyond the read.
Fix
The report does not describe the fix. The issue was assigned CVE-2025-1918 and disclosed on 4 March 2025; the change that addressed it is not part of the text here.
Variants to test
- Other page geometry messages. The crash is reached through
HandleGetPageBoundingBoxMessage. Try the other message handlers thatPdfViewWebPlugin::OnMessagedispatches, such as those returning page size or rotation, with unusual page dimensions and rotations. A positive result is an ASan read report in a geometry function with a stack throughOnMessage. - Unusual page boxes. Craft PDFs with mismatched or extreme
MediaBox,CropBoxandRotatevalues, including non-multiples of 90 degrees. A positive result is a crash or ASan report inGetRotatedRectFor its callers. - Malformed page trees. Serve PDFs with missing or inconsistent page objects so that the page count and the page geometry disagree. A positive result is an out-of-bounds read when the viewer requests a bounding box for a page whose geometry was never validly populated.
- Repeated requests after document changes. Trigger bounding box requests while the document is being modified or reloaded, to look for use of freed page data. A positive result is a read from memory filled with the
fdpattern seen in this report.
What happened, in plain words
Chrome can open PDF files. It does not draw them itself: it uses a separate piece of software called PDFium, which is the PDF rendering engine bundled with Chrome. When you open a PDF in a tab, Chrome splits the work between two parts: a viewer part that shows the page and handles scrolling, and a renderer part that does the actual PDF work. These two parts talk to each other by sending messages.
One of the messages the viewer can send asks a simple question: "what is the bounding box of this page?" A bounding box is the rectangle that encloses the page content, and the viewer needs it to know how big the page is so it can lay out and scroll the document correctly.
In this report, a researcher called asnine found that the code that answers that question can read memory outside the area it is supposed to read. That kind of mistake is called an out-of-bounds read. The result in the demonstrated case is that the tab crashes. The issue was tracked as CVE-2025-1918, disclosed through the Chrome VRP on 4 March 2025, and the platform records it as a medium severity out-of-bounds read in PDFium with a bounty of 2000.00 USD.
The pieces involved
Before following the steps, it helps to know what the names in the crash mean.
- PDFium is the engine that parses and draws PDF files inside Chrome. Think of it as the specialist librarian who knows how every book (PDF) is laid out.
chrome_pdf::PdfViewWebPluginis the browser-side plugin code. It is the part of Chrome that presents the PDF viewer to you and sends requests to the renderer.PDFiumPageis a small wrapper on the renderer side that asks PDFium questions about a single page, such as its size and position.- A message channel is simply a way for two parts of a program to send each other notes. Here the viewer sends a note asking for page geometry, and the renderer answers it.
One of those questions is the page bounding box. The viewer needs the answer to lay out and scroll the document.
Setup
The crash was reproduced on a Developer Build of Chromium, version 133.0.6941.0 (64-bit), running on Windows 11 Version 24H2 (Build 26100.2605).
A Developer Build is a version of Chrome built for testing rather than for ordinary users. The researcher used an AddressSanitizer build. AddressSanitizer, often shortened to ASan, is a tool built into the program that watches memory accesses while the program runs. If the program reads or writes memory it should not touch, ASan stops it and prints a detailed report instead of letting it carry on silently. It is like a referee who blows the whistle the moment a player steps out of bounds, rather than waiting to see what happens.
The researcher served a local proof-of-concept page over HTTP on port 8000. A proof-of-concept (PoC) is a small, deliberately crafted file or page that demonstrates a bug. Serving it locally means running a tiny web server on your own machine so the browser can load the page from an address like http://localhost:8000/.... The crash type recorded is a tab crash.
Finding it
The faulting frame, meaning the exact function where the bad read happened, is chrome_pdf::anonymous namespace'::GetRotatedRectFatpdfium_page.cc:354. The file name and line number tell us where in the source code the read occurred. GetRotatedRectF` is a function that computes a rotated rectangle for a page.
AddressSanitizer reports an access-violation on an unknown address, caused by a READ memory access. In plain terms: the program tried to read from a memory address that does not belong to it, and ASan caught it.
The call chain shows how the code got there. A call chain (or stack trace) is the list of functions that were running, one calling the next, at the moment of the crash. Reading it from the bottom up:
PdfViewWebPlugin::OnMessage(pdf_view_web_plugin.cc:1608) receives a message from the viewer side.- It passes the message to
PdfViewWebPlugin::HandleGetPageBoundingBoxMessage(pdf_view_web_plugin.cc:1654), which recognises it as a request for a page bounding box. - That calls
PDFiumPage::GetBoundingBox(pdfium_page.cc:782). - That ends up in
GetRotatedRectF(pdfium_page.cc:354), where the out-of-bounds read happens.
In other words, a message from the viewer asking for a page's bounding box ends up in geometry code that reads past the end of a buffer. A buffer is a block of memory set aside to hold data; reading past its end means reading whatever happens to sit next to it, which the program has no right to look at.
The register dump lists the processor's register values at the moment of the crash. r11 holds fdfdfdfdfdfdfdfd. When a program frees memory, or when a debugging tool deliberately marks memory as off-limits, it often fills it with a recognisable repeating pattern so that any later use is easy to spot. The faulting address 0x7ffde90a6f3c is close to the value in rax (7ff9e90a6f40).
Reproducing it
Step 1: Prepare the build and the page
Download the latest ASan build and place the proof-of-concept page so it is reachable at http://localhost:8000/poc.html. The report does not include the contents of poc.html.
Why this step: the ASan build is the version of Chrome that will notice and report the bad memory read. The page has to be reachable over HTTP because that is how the researcher set up the test; the browser then loads it like any other web page.
Step 2: Launch Chrome against the page
./chrome.exe --no-sandbox --user-data-dir=C:/tmp/zzz http://localhost:8000/poc.html
Line by line:
./chrome.exeruns the Chrome program from the current folder.--no-sandboxdisables the renderer sandbox. A sandbox is a security boundary that stops a web page from doing damage if it misbehaves. It is not something you would do in everyday browsing.--user-data-dir=C:/tmp/zzzsets the profile folder. A profile holds your settings, history and cookies.http://localhost:8000/poc.htmlis the URL of the local proof-of-concept page.
The renderer command line recorded in the report includes --pdf-renderer. A process is a running program with its own memory; Chrome uses several processes so that one part misbehaving does not take down the rest.
Step 3: Observe the crash
AddressSanitizer aborts the renderer with the following report:
==25228==ERROR: AddressSanitizer: access-violation on unknown address 0x7ffde90a6f3c (pc 0x7ff9cbff8c9e bp 0x00db1d5fb9a0 sp 0x00db1d5fb840 T0)
==25228==The signal is caused by a READ memory access.
Line by line:
- The first line says ASan caught an access-violation, meaning an illegal memory access, at an address it could not identify. The numbers in brackets are the program counter (
pc, where the code was executing), the base pointer (bp) and the stack pointer (sp), which are bookkeeping values for the running code.T0means thread 0, the main thread of that process. - The second line says the cause was a READ: the program was trying to read memory, not write to it.
The top frames of the stack are:
#0 0x7ff9cbff8c9d in chrome_pdf::`anonymous namespace'::GetRotatedRectF C:\b\s\w\ir\cache\builder\src\pdf\pdfium\pdfium_page.cc:354
#1 0x7ff9cbff8c9d in chrome_pdf::PDFiumPage::GetBoundingBox(void) C:\b\s\w\ir\cache\builder\src\pdf\pdfium\pdfium_page.cc:782:7
#2 0x7ff9dbd8ad0c in chrome_pdf::PdfViewWebPlugin::HandleGetPageBoundingBoxMessage(class base::Value::Dict const &) C:\b\s\w\ir\cache\builder\src\pdf\pdf_view_web_plugin.cc:1654:35
#3 0x7ff9dbd89fb0 in chrome_pdf::PdfViewWebPlugin::OnMessage(class base::Value::Dict const &) C:\b\s\w\ir\cache\builder\src\pdf\pdf_view_web_plugin.cc:1608:3
Line by line:
#0is the innermost frame, the function that was actually executing when the bad read happened:GetRotatedRectF, inpdfium_page.ccat line 354.#1is the function that called it:PDFiumPage::GetBoundingBox, at line 782.#2is the function that called that:HandleGetPageBoundingBoxMessage, at line 1654. The name says exactly what it does: handle a message asking for a page bounding box.#3is the function that received the message in the first place:OnMessage, at line 1608.
The summary line names the same location:
SUMMARY: AddressSanitizer: access-violation C:\b\s\w\ir\cache\builder\src\pdf\pdfium\pdfium_page.cc:354 in chrome_pdf::`anonymous namespace'::GetRotatedRectF
This is ASan's one-line verdict: the crash is an access-violation in GetRotatedRectF at pdfium_page.cc:354.
The task trace shows where the message originates:
Task trace:
#0 0x7ff9df92b9eb in chrome_pdf::PostMessageReceiver::PostMessageW(class v8::Local<class v8::Value>) C:\b\s\w\ir\cache\builder\src\pdf\post_message_receiver.cc:131:7
#1 0x7ff9cdc451c5 in mojo::SimpleWatcher::Context::Notify(unsigned int, struct MojoHandleSignalsState, unsigned int) C:\b\s\w\ir\cache\builder\src\mojo\public\cpp\system\simple_watcher.cc:102:13
Line by line:
PostMessageReceiver::PostMessageWis the code that posts a message from the viewer side. This is where the request for the bounding box comes from.mojo::SimpleWatcher::Context::Notifyis the lower-level plumbing that notices a message has arrived. Mojo is Chrome's internal system for passing messages between processes; think of it as the internal postal service.
So the request for the bounding box arrives as a posted message from the viewer, is dispatched by PostMessageReceiver, and is handled in the renderer, where the geometry code reads out of bounds. "Synchronously" means the work happens right there and then, in the same flow, rather than being queued for later.
The renderer command line recorded in the report is:
"./chrome.exe" --type=renderer --string-annotations --user-data-dir=C:/tmp/zzz --no-pre-read-main-dll --pdf-renderer --no-sandbox --file-url-path-alias="/gen=asan\gen" --video-capture-use-gpu-memory-buffer --lang=en-US --js-flags=--jitless --device-scale-factor=1.5 --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=9 --time-ticks-at-unix-epoch=-1736218503358671 --launch-time-ticks=173501150759 --metrics-shmem-handle=4356,i,11093616363079205023,10641701609597647046,2097152 --field-trial-handle=4540,i,11787306298688871873,6099382784474387663,262144 --variations-seed-version --mojo-platform-channel-handle=4536 /prefetch:1
This is the full set of options Chrome used to start the renderer process. The important ones for this report are --type=renderer, which says this is a renderer process, and --pdf-renderer, which says it is the one hosting the PDF plugin code. The rest are internal settings for the test build, such as the language, the display scale factor and the handles used for internal messaging.
Root cause
GetRotatedRectF computes a rotated rectangle for a page, and the crash is a read at pdfium_page.cc:354 reached from PDFiumPage::GetBoundingBox. The report does not include the source of that function or the exact buffer that is overrun, so the precise mistake is not stated.
What the stack does establish is that a bounding box request from the viewer, handled in HandleGetPageBoundingBoxMessage, drives the geometry code into reading outside a valid allocation. An allocation is a chunk of memory the program has reserved for a particular purpose; reading outside it means reading memory that belongs to something else, or to nothing at all.
The report does not interpret the fdfdfdfdfdfdfdfd value in r11. "Stale" means the memory was once valid but has since been released; "undersized" means the buffer was too small for the index being used to reach into it. Indexing is how a program picks an item out of a buffer by its position, like picking a page out of a book by number; if the number is larger than the book has pages, you end up looking at something that is not part of the book.
Impact
The report classifies the issue as an out-of-bounds read and the platform records it as medium severity. In the demonstrated case the consequence is a renderer tab crash: the tab showing the PDF stops working.
An out-of-bounds read in the renderer can in principle leak memory contents or be chained with other bugs, but the report itself only demonstrates the crash and does not show information disclosure or any step beyond the read. "Information disclosure" means revealing data the attacker should not be able to see; "chaining" means combining several smaller bugs so that together they achieve more than any one of them alone.
Fix
The report does not describe the fix. The issue was assigned CVE-2025-1918 and disclosed on 4 March 2025; the change that addressed it is not part of the text here.
Variants to test
These are follow-up ideas for anyone who wants to look for related bugs. Each one describes what to try and what a positive result would look like.
- Other page geometry messages. The crash is reached through
HandleGetPageBoundingBoxMessage. Try the other message handlers thatPdfViewWebPlugin::OnMessagedispatches, such as those returning page size or rotation, with unusual page dimensions and rotations. A positive result is an ASan read report in a geometry function with a stack throughOnMessage. - Unusual page boxes. Craft PDFs with mismatched or extreme
MediaBox,CropBoxandRotatevalues, including non-multiples of 90 degrees.MediaBoxandCropBoxare PDF settings that describe the page's physical extent, andRotatesays how the page is turned. A positive result is a crash or ASan report inGetRotatedRectFor its callers. - Malformed page trees. Serve PDFs with missing or inconsistent page objects so that the page count and the page geometry disagree. A positive result is an out-of-bounds read when the viewer requests a bounding box for a page whose geometry was never validly populated.
- Repeated requests after document changes. Trigger bounding box requests while the document is being modified or reloaded, to look for use of freed page data. A positive result is a read from memory filled with the
fdpattern seen in this report.
Glossary
- AddressSanitizer (ASan): a debugging tool built into a program that watches memory accesses and stops the program with a detailed report when it reads or writes memory it should not.
- Allocation: a block of memory reserved by a program for a particular purpose.
- Bounding box: the rectangle that encloses a page's content, used by the viewer to lay out and scroll the document.
- Buffer: a block of memory set aside to hold data.
- Call chain (stack trace): the list of functions that were running, one calling the next, at the moment of a crash.
- Chaining: combining several smaller bugs so that together they achieve more than any one alone.
- CVE: a public identifier assigned to a known security vulnerability so people can refer to it unambiguously.
- Developer Build: a version of Chrome built for testing rather than for ordinary users.
- Information disclosure: revealing data that should not be visible to the attacker.
- MediaBox / CropBox: PDF settings that describe the physical extent of a page.
- Mojo: Chrome's internal system for passing messages between processes.
- Out-of-bounds read: reading memory outside the area a program is supposed to read, for example past the end of a buffer.
- PDFium: the PDF rendering engine used by Chrome.
- Process: a running program with its own memory; Chrome uses several so that one part misbehaving does not take down the rest.
- Profile: the folder holding a browser's settings, history and cookies.
- Proof-of-concept (PoC): a small, deliberately crafted file or page that demonstrates a bug.
- Register: a small, very fast storage slot inside the processor; a register dump lists their values at the moment of a crash.
- Renderer: the Chrome process that does the actual work of turning a page into what you see.
- Rotate: a PDF setting that says how a page is turned.
- Sandbox: a security boundary that stops a web page from doing damage if it misbehaves.
- Stale memory: memory that was once valid but has since been released.
- Synchronous: work that happens right there and then, in the same flow, rather than being queued for later.
- Tab crash: the tab showing the page stops working, while the rest of the browser carries on.
- Thread: a single sequence of instructions running inside a process.
- Undersized buffer: a buffer that is too small for the index being used to reach into it.
- Wild read: a read from a memory address that was computed from bad data and does not belong to the program.