Out of bounds read in UI (CVE-2026-8541)
The browser process fails to validate the content_rect dimensions when constructing an SkBitmap from shared memory, allowing a compromised GPU process to cause an out-of-bounds read during JPEG encoding. This could lead to browser process memory disclosure or a crash.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 48 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A compromised GPU process can trigger an out-of-bounds read in the browser process by supplying an unvalidated content_rect during frame capture. The browser uses these dimensions to construct an SkBitmap without checking if it exceeds the shared memory buffer size, leading to an OOB read during JPEG encoding or painting. This could result in a browser crash or potential information disclosure.
Affected files:
chrome/browser/ui/thumbnails/background_thumbnail_video_capturer.ccchrome/browser/ui/thumbnails/thumbnail_image.cc
Estimated timestamp from git blame: 2026-02-27
Summary
There is a potential out-of-bounds (OOB) read vulnerability in the browser process when handling video frames captured from a compromised GPU process. Implementations of viz::mojom::FrameSinkVideoConsumer in the browser process, specifically BackgroundThumbnailVideoCapturer and BrowserLiveBackgroundController::VideoConsumer, fail to adequately validate the content_rect parameter before using it to size an SkBitmap backed by shared memory.
Vulnerability Details
When the GPU process sends a captured frame via the FrameSinkVideoConsumer::OnFrameCaptured Mojo IPC, it provides a shared memory handle (data), frame metadata (info), and a content_rect.
In BackgroundThumbnailVideoCapturer::OnFrameCaptured (and similarly in BrowserLiveBackgroundController), the code validates that the shared memory mapping size is large enough to hold a frame of info->coded_size. However, it completely ignores info->coded_size when constructing the resulting image. Instead, it derives the SkBitmap's width and height directly from the unvalidated content_rect boundaries (content_rect.right() and content_rect.bottom()).
// chrome/browser/ui/thumbnails/background_thumbnail_video_capturer.cc
const gfx::Size bitmap_size(content_rect.right(), content_rect.bottom());
SkBitmap frame;
frame.installPixels(
SkImageInfo::MakeN32(bitmap_size.width(), bitmap_size.height(), ...),
pixels,
media::VideoFrame::RowBytes(..., info->coded_size.width()),
...);
SkBitmap::installPixels accepts a raw void* for the memory buffer but does not take a buffer_size parameter. It inherently assumes the provided buffer is large enough for the requested height and row bytes. Because the content_rect height can arbitrarily exceed the coded_size height, this creates an SkBitmap that extends far beyond the bounds of the mapped shared memory.
When this SkBitmap is later passed to ThumbnailImage::CompressBitmap and encoded via gfx::JPEGCodec::Encode, the JPEG encoder iterates over the massive height, reading out of bounds into adjacent browser process memory.
Impact
An attacker compromising the GPU process could exploit this to read browser process memory. The OOB data is compressed into a JPEG and displayed in the browser UI (e.g., Tab Hover Cards). Because the compromised GPU process handles compositing the final screen, it can read the rendered pixels and extract the leaked browser memory. Additionally, if the OOB read hits an unmapped guard page, it will cause an immediate browser process crash (Denial of Service).
Suggested Reproduction Steps
Note: These are potential steps to trigger the issue, as the Fortify LLM agent cannot actively run code to provide a working PoC.
- Compromise the GPU process.
- Wait for the browser process to request a background tab capture (e.g., user hovers over a background tab) and intercept the
FrameSinkVideoConsumer::OnFrameCapturedcallback. - Send a message with
info.coded_sizeset to a small dimension (e.g.,100x100) and a backing shared memory region of40,000bytes. - Set
content_rectto maliciously large dimensions, e.g.,gfx::Rect(0, 0, 100, 10000). - The browser process maps the memory, passes the size check (as
coded_sizematches the buffer), and creates anSkBitmapof size100x10000. - The browser routes the frame to a background thread for JPEG compression, where the encoder reads
9,900rows out of bounds.
Suggested Fix
Ensure that the dimensions derived from content_rect do not result in a byte size requirement that exceeds the mapped shared memory.
A safe pattern for this already exists in DevToolsEyeDropper::OnFrameCaptured (chrome/browser/devtools/devtools_eye_dropper.cc), which uses computeByteSize to explicitly validate the buffer size against the SkImageInfo before calling installPixels:
auto image_info = SkImageInfo::MakeN32(...);
const size_t row_bytes = media::VideoFrame::RowBytes(...);
// Ensure the unbounded pointer points to enough memory.
CHECK_GE(mapping.size(), image_info.computeByteSize(row_bytes));
frame.installPixels(image_info, ...);
This check should be applied to BackgroundThumbnailVideoCapturer, BrowserLiveBackgroundController::VideoConsumer, and any other implementers of FrameSinkVideoConsumer that manually construct SkBitmaps from content_rect.
Evaluated with Chrome root at commit: bb48272cafb7e24c93f55ef40da398cd206ee651
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. Please feel free to reach out to me if you have concerns or feedback.
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
The code uses the unvalidated content_rect dimensions to size an SkBitmap without ensuring the resulting byte size fits within the mapped shared memory buffer.
Impact
An attacker who has compromised the GPU process could read browser process memory or cause a browser crash (denial of service).
What the attacker needed
Compromised GPU process; browser requests background tab capture
The fix
The fix should validate that the byte size required by the SkBitmap does not exceed the mapped shared memory size, using a check like computeByteSize, and apply it to all FrameSinkVideoConsumer implementations.
How it was found
- Compromise the GPU process.
- Intercept the FrameSinkVideoConsumer::OnFrameCaptured callback when the browser requests a background tab capture.
- Send a message with a small coded_size and a shared memory region of 40,000 bytes.
- Set content_rect to maliciously large dimensions, e.g., 100x10000.
- The browser process maps the memory, passes the size check, and creates an SkBitmap of size 100x10000.
- The browser routes the frame to a background thread for JPEG compression, where the encoder reads out of bounds.
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 part of the browser that handles video frames from the graphics card (GPU) process trusts the size information it receives without checking it. An attacker who has already taken over the GPU process can send a fake size that makes the browser read past the end of a memory buffer, potentially leaking sensitive data or crashing the browser.
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.