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

Out of bounds read in Input (CVE-2026-11160)

A heap out-of-bounds read exists in Chromium's X11 input handling when processing XInput2 events, because the code does not bounds-check the valuator mask size. An attacker could potentially leak 8 bytes of browser heap memory via JavaScript pointer events, which may help bypass ASLR.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 52 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.

Overview: A potential heap out-of-bounds read exists in DeviceDataManagerX11 when processing XInput2 events on Linux. The code fails to bounds-check the valuator_mask size when iterating over valuators, allowing a malicious website to potentially leak 8 bytes of browser heap memory via JavaScript pointer events. This can be triggered during normal user interaction with a multi-touch device and does not require a compromised X server.

Affected files:

  • ui/events/devices/x11/device_data_manager_x11.cc
  • ui/events/x/events_x_utils.cc

Estimated timestamp from git blame: 2025-11-14

Summary

A potential heap out-of-bounds (OOB) read vulnerability exists in DeviceDataManagerX11 within the browser process. The issue stems from a lack of bounds checking when processing valuator data in X11 input events. Specifically, the code assumes the valuator_mask array provided by the X server is large enough to cover the highest possible valuator index registered for the device. However, XInput2 servers legitimately optimize this mask to only cover the valuators that were actually updated in a specific event. This mismatch allows an attacker to read out-of-bounds heap memory, which is then exposed to web content through standard event properties like radiusX.

Technical Details

  1. Device Initialization: When a multi-touch device is initialized, DeviceDataManagerX11::UpdateValuatorClassDevice maps specific data types (like DT_TOUCH_MAJOR) to their hardware valuator indices. Advanced touch features often have high indices (e.g., 33).
  2. Event Parsing: When the user moves their finger, the X server sends an XI_Motion event. If only low-indexed axes (like X and Y, indices 0 and 1) are updated, the server optimizes the valuator_mask, sending a short array (e.g., 4 bytes, covering indices 0-31).
  3. Vulnerable Access: To populate the touch radius, ui::GetTouchRadiusXFromXEvent calls DeviceDataManagerX11::GetEventData(..., DT_TOUCH_MAJOR, ...). In device_data_manager_x11.cc:340, the code checks if the valuator is present by calling IsXinputMaskSet(xiev->valuator_mask.data(), val_index). Let's assume val_index is 33.
  4. OOB Read (Mask): IsXinputMaskSet (xinput_util.h:24) calculates the byte offset directly (33 / 8 = 4) and performs an unchecked access. Since the mask is only 4 bytes long, this reads the first byte of heap memory immediately following the valuator_mask vector.
  5. Iterator Overrun: If that OOB heap byte happens to have the corresponding bit set (due to normal heap noise), GetEventData enters a loop (lines 342-345) to advance valuators_iter for every set bit up to val_index. Because it counts the OOB bit, it increments the iterator past xiev->axisvalues.end(), as axisvalues is strictly sized to the valid mask.
  6. OOB Read (Value): At line 346, *value = Fp3232ToDouble(*valuators_iter); is executed. This performs an 8-byte OOB read from the heap following the axisvalues vector.
  7. Information Leak: This leaked memory is converted to a highly precise double, stored in PointerDetails::radius_x, and sent to the renderer, where it is accessible via event.radiusX.

Potential Steps to Trigger (Suggested)

  1. A victim using Chromium on Linux/X11 with a multi-touch device visits an attacker-controlled website.
  2. The website registers event listeners for touchmove or pointermove and repeatedly reads event.radiusX and event.radiusY.
  3. The victim normally interacts with the page (e.g., scrolling or moving their finger).
  4. The X server generates optimized motion events with short valuator masks.
  5. The OOB read is triggered naturally. By observing the variations in the radiusX values over time, the attacker can recover browser heap data, potentially bypassing ASLR.

Note: Our analysis tooling cannot run code, so these are potential steps derived from source code analysis.

Suggested Fix

Add bounds checking to IsXinputMaskSet or ensure that val_index is validated against the actual size of the incoming valuator_mask before performing the bitwise check.

C++
// ui/events/devices/x11/xinput_util.h
inline bool IsXinputMaskSet(const std::vector<uint32_t>& mask, unsigned int opcode) {
  size_t byte_index = opcode / 8;
  if (byte_index >= mask.size() * sizeof(uint32_t)) {
    return false;
  }
  const auto bit = 1 << (opcode & 7);
  return UNSAFE_TODO(reinterpret_cast<const uint8_t*>(mask.data())[byte_index]) & bit;
}

All usages of IsXinputMaskSet should be updated to pass the vector or its size alongside the data pointer.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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 code assumes the valuator mask array is always large enough to cover the highest valuator index, but the X server can send a shorter mask, leading to an unchecked out-of-bounds read.

Impact

A malicious website could potentially leak 8 bytes of browser heap memory, which may help bypass ASLR; the text notes the analysis tooling cannot run code, so these are potential steps derived from source code analysis.

What the attacker needed

Chromium on Linux/X11; multi-touch device; victim visits attacker site; victim interacts with page

The fix

Add bounds checking to `IsXinputMaskSet` or ensure that `val_index` is validated against the actual size of the incoming `valuator_mask` before performing the bitwise check.

How it was found

  1. A victim using Chromium on Linux/X11 with a multi-touch device visits an attacker-controlled website.
  2. The website registers event listeners for touchmove or pointermove and repeatedly reads event.radiusX and event.radiusY.
  3. The victim normally interacts with the page (e.g., scrolling or moving their finger).
  4. The X server generates optimized motion events with short valuator masks.
  5. The OOB read is triggered naturally, and by observing variations in radiusX values the attacker can recover browser heap data.

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.

This is a bug in how Chromium reads touch input on Linux. When a finger moves, the system sends a small data packet, and Chromium sometimes reads past the end of that packet, grabbing a few bytes of unrelated memory. A malicious website could then read those leaked bytes through a touch event property, which might help it defeat security protections.

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.