Out of bounds read in Skia (CVE-2026-79020)
Utility processes in Chromium never initialise Skia's Rust-based EXIF and ICC parsers, so the data_decoder service falls back to legacy C++ parsers when handling untrusted image metadata. An attacker could exploit latent memory-safety bugs in those C++ parsers to cause out-of-bounds reads or memory corruption inside the sandboxed utility process.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 months
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: Rust-based EXIF and ICC parsers, intended to mitigate C++ memory safety risks in Skia, are never enabled in Chromium Utility processes due to missing initialization. This causes security-sensitive services like the image decoder to use legacy C++ parsers when processing untrusted metadata, bypassing intended hardening. This regression leaves the data_decoder service exposed to potential vulnerabilities in the C++ TIFF and ICC implementations.
Affected files:
third_party/skia/src/codec/SkExif.cppthird_party/skia/src/codec/SkCodecColorProfile.cppcontent/common/skia_utils.cccontent/utility/utility_main.ccservices/data_decoder/image_decoder_impl.ccthird_party/skia/src/codec/SkTiffUtility.cpp
Estimated timestamp from git blame: 2026-04-10
Description
Chromium has introduced Rust-based EXIF and ICC profile parsers in Skia to eliminate memory safety vulnerabilities when handling hostile image metadata. These parsers are gated by process-global configuration flags in Skia that default to the legacy C++ path. In the Browser, Renderer, and GPU processes, these flags are explicitly reconfigured at startup via content::InitializeSkia() or content::InitializeSkiaLite() to enable the safer Rust paths.
However, a review of the startup sequence indicates that Utility processes never call these initialization functions. As a result, every Utility process—including those hosting the data_decoder service—fails to configure these security features and remains defaulted to the legacy C++ parsers.
Technical Details
In third_party/skia/src/codec/SkExif.cpp, the configuration flag defaults to C++:
static bool gForceSkExifCpp = true;
Similarly, in third_party/skia/src/codec/SkCodecColorProfile.cpp, ICC profile parsing defaults to C++ skcms:
static bool gForceSkcmsForICCProfiles = true;
These flags are updated by content::ConfigureSkiaKillSwitches() based on the state of the kForceSkExifCppParsing and kForceSkcmsICCParsing features. While this configuration is reached in other process types, content/utility/utility_main.cc lacks a call to InitializeSkia() or InitializeSkiaLite(). Consequently, when the data_decoder service processes a JPEG for a favicon or notification icon, it uses the C++ SkTiff::ImageFileDirectory and skcms parsers instead of the Rust equivalents.
Potential Impact
This is a significant mitigation bypass. The primary purpose of the data_decoder service is to safely parse untrusted data in a sandboxed process. By failing to enable the Rust parsers, this service remains vulnerable to undiscovered or future bugs in the legacy C++ TIFF and ICC implementations.
For example, the C++ SkTiff::ImageFileDirectory::getEntryValuesGeneric implementation contains logic that could potentially be used for out-of-bounds reads if called with specific metadata counts/types, as it uses a fixed 4-byte stride for calculations that may involve 2-byte values.
Potential Steps to Trigger
- An attacker crafts an image containing malformed EXIF metadata or a crafted ICC profile.
- The image is processed by a feature that utilizes the
data_decoderservice (e.g., retrieving a favicon or processing a WebAPK icon). - The Utility process, lacking the Rust parser initialization, invokes the legacy C++ parser on the hostile data.
- The attacker leverages a vulnerability in the C++ parser to achieve memory corruption within the sandboxed Utility process.
Suggested Fix
- Call
content::InitializeSkiaLite()fromcontent/utility/utility_main.ccto ensure Utility processes configure Skia kill-switches and features correctly. - In Skia, consider inverting the static defaults for
gForceSkExifCppandgForceSkcmsForICCProfilestofalseso that the system fails closed (to the safer Rust path) if initialization is missed.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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.
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 Utility process entry point omits the Skia initialisation call, leaving process-global flags at their insecure C++ defaults.
Impact
The mitigation bypass could expose the sandboxed data_decoder service to undiscovered or future memory-safety bugs in the legacy C++ TIFF and ICC parsers, potentially leading to memory corruption.
What the attacker needed
Attacker can supply a crafted image; victim triggers favicon or icon processing; no special account needed
The fix
The Utility process should call content::InitializeSkiaLite() at startup, and Skia's static defaults should be inverted so the safer Rust path is used if initialisation is missed.
How it was found
- Craft an image with malformed EXIF metadata or a crafted ICC profile.
- Get the image processed by a feature that uses the data_decoder service, such as a favicon or WebAPK icon.
- The Utility process runs the legacy C++ parser on the hostile data because the Rust parser was never enabled.
- Exploit a bug in the C++ parser to corrupt memory inside the sandboxed Utility process.
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.
Chromium added safer Rust versions of the code that reads metadata inside images, but only some parts of the browser switch them on at startup. The part that decodes images for things like favicons never does, so it keeps using the older C++ code. That older code is more likely to have memory bugs that a malicious image could trigger.
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.