Skip to content
Access control Advisory Advanced CVE-2026-95381

Improper input validation in Printing (CVE-2026-95381)

The PrintCompositor and PaintPreviewCompositor utility processes deserialize SkPicture blobs from the renderer without applying OpenType Sanitizer validation to embedded font data, allowing a compromised renderer to pass malformed fonts directly to system font parsers like DirectWrite. On Windows, PrintCompositor lacks Win32k lockdown, making this a potential pivot for a sandbox escape if an OS-level font parsing vulnerability exists.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 6 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: The PrintCompositor and PaintPreviewCompositor utility processes deserialize SkPicture blobs from the renderer without applying OpenType Sanitizer (OTS) validation to embedded font data. This allows a compromised renderer to pass malformed fonts directly to system font parsers like DirectWrite. On Windows, PrintCompositor lacks Win32k lockdown, making this a potential pivot for a sandbox escape if an OS-level font parsing vulnerability exists.

Affected files:

  • printing/common/metafile_utils.cc
  • components/paint_preview/common/serial_utils.cc
  • third_party/skia/src/core/SkTypeface.cpp
  • third_party/skia/src/ports/SkTypeface_win_dw.cpp
  • third_party/skia/src/ports/SkTypeface_mac_ct.cpp

Estimated timestamp from git blame: 2026-01-20

Summary

A potential vulnerability exists in how PrintCompositor and PaintPreviewCompositor handle font data during the deserialization of SkPicture (MSKP) blobs sent from a renderer process. These utility processes bypass the OpenType Sanitizer (OTS) validation normally applied to web fonts. Consequently, a compromised renderer can deliver malformed font bytes directly to the system's font parsing libraries (e.g., DirectWrite on Windows). On Windows, the PrintCompositor process operates without Win32k lockdown to support GDI operations, making this an effective pivot point for achieving a sandbox escape if an OS-level font parsing bug (0-day) is present.

Technical Details

When a renderer process initiates a print operation, it can silently request default print settings to obtain a valid document_cookie. It then serializes drawing commands into a base::ReadOnlySharedMemoryRegion containing an SkPicture (or SkMultiPictureDocument) and sends it to the browser via an IPC call like mojom::PrintManagerHost::DidPrintDocument.

The browser process treats this shared memory region opaquely. It forwards the data without validation to the sandboxed PrintCompositor utility process by calling mojom::PrintCompositor::CompositeDocument.

In PrintCompositorImpl::CompositePages (components/services/print_compositor/print_compositor_impl.cc), the compositor prepares to deserialize the Skia document by setting up custom deserialization callbacks via printing::DeserializationProcs. The typeface callback, printing::DeserializeOopTypeface (printing/common/metafile_utils.cc), is responsible for reconstructing typefaces from the incoming stream:

C++
sk_sp<SkTypeface> DeserializeOopTypeface(SkStream& stream, void* ctx) {
  // ...
  sk_sp<SkTypeface> typeface =
      SkTypeface::MakeDeserialize(&stream, skia::DefaultFontMgr());
  // ...
}

SkTypeface::MakeDeserialize (third_party/skia/src/core/SkTypeface.cpp) reads the attacker-controlled SkFontDescriptor and extracts the raw font bytes. It then delegates the font creation to the platform's default font manager (skia::DefaultFontMgr()).

On Windows, this resolves to SkFontMgr_New_DirectWrite() and eventually DWriteFontTypeface::MakeFromStream (third_party/skia/src/ports/SkTypeface_win_dw.cpp). This function wraps the raw, un-sanitized bytes and passes them directly to the Windows DirectWrite API via IDWriteFactory::CreateCustomFontCollection and IDWriteFont::CreateFontFace.

Crucially, this entire path bypasses the OTS sanitization (e.g., BlinkOTSContext) that protects system APIs when they are invoked via the standard web font loading path. Skia performs no validation on the font data.

Impact and Sandbox Implications

This issue provides an unvalidated attack surface into system-level font parsers from a potentially compromised renderer. On Windows, the impact is severe because the PrintCompositor utility process is NOT subjected to Win32k lockdown. This can be verified in UtilitySandboxedProcessLauncherDelegate::PreSpawnChild (content/browser/service_host/utility_sandbox_delegate_win.cc), where AddWin32kLockdownPolicy is only called for kRenderer, kService, and kServiceWithJit sandbox types, explicitly omitting kPrintCompositor.

Exploiting a parsing vulnerability (0-day) in DirectWrite within the PrintCompositor process would allow an attacker to make win32k.sys system calls, which are blocked in the renderer sandbox, facilitating a highly reliable path toward a full sandbox escape.

Potential Attacker Steps

Note: These are potential steps as we do not currently have a working proof-of-concept for an underlying OS font bug.

  1. Renderer Compromise: Assume a pre-existing compromise of a renderer process (e.g., via a V8 bug).
  2. Craft Payload: Construct an SkMultiPictureDocument or SkPicture. Embed a malicious font file designed to exploit a vulnerability in DirectWrite (which OTS would normally filter). Serialize this as a custom SkTypeface stream with a matching FactoryId (e.g., 'dwrt').
  3. Obtain Cookie: The compromised renderer silently calls mojom::PrintManagerHost::GetDefaultPrintSettings() to enqueue a PrinterQuery in the browser and obtain a valid document_cookie.
  4. Trigger IPC: The renderer calls mojom::PrintManagerHost::DidPrintDocument with the valid cookie, passing the crafted MSKP blob in the DidPrintContentParams.metafile_data_region.
  5. Bypass Verification: The browser forwards the blob to the PrintCompositor process, which deserializes the typeface and passes the malformed bytes to the system font library without OTS sanitization, triggering the OS-level bug and gaining code execution outside of Win32k lockdown.

Suggested Fix

Apply OpenType Sanitizer (OTS) validation to the typeface streams within DeserializeOopTypeface (in printing/common/metafile_utils.cc and components/paint_preview/common/serial_utils.cc) before passing the data to SkTypeface::MakeDeserialize. This will ensure that all font data deserialized from IPC streams undergoes the same rigorous sanitization as web fonts.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from 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 deserialization path for SkPicture blobs in the print compositor and paint preview compositor does not apply OpenType Sanitizer validation to embedded font data before passing it to platform font APIs.

Impact

This issue provides an unvalidated attack surface into system-level font parsers from a potentially compromised renderer; on Windows, because PrintCompositor lacks Win32k lockdown, exploiting an OS-level font parsing bug could allow a sandbox escape.

What the attacker needed

Compromised renderer process; OS-level font parsing vulnerability (0-day)

The fix

Apply OpenType Sanitizer validation to the typeface streams within DeserializeOopTypeface before passing the data to SkTypeface::MakeDeserialize.

How it was found

  1. Assume a pre-existing compromise of a renderer process.
  2. Construct an SkMultiPictureDocument or SkPicture with an embedded malicious font and serialize it as a custom SkTypeface stream.
  3. The compromised renderer calls GetDefaultPrintSettings to obtain a valid document_cookie.
  4. The renderer calls DidPrintDocument with the valid cookie and the crafted MSKP blob.
  5. The browser forwards the blob to the PrintCompositor process, which deserializes the typeface and passes the malformed bytes to the system font library without OTS sanitization.

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 web page uses a custom font, the browser normally checks the font file for safety before handing it to the operating system. This report says that in two background printing processes, that safety check is skipped, so a malicious font could reach the operating system's font code. If the operating system's font code has its own bug, an attacker who already controls one part of the browser could use this to break out of the browser's security sandbox.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.