Insufficient validation of untrusted input in UI (CVE-2026-19177)
The earlier fix for a GTK settings issue sanitised only three theme properties and hardened only the X11 cursor loader, leaving the cursor theme name and size unsanitised and the Wayland cursor load unvalidated. An attacker able to write those settings could make the browser process open and parse an attacker-controlled cursor theme tree outside the icons root on Wayland.
Originally disclosed on Chrome VRP
- Fix shipped in 9 days
Report description
Incomplete fix of CVE-2026-15769: gtk-cursor-theme-name/size unsanitized and Wayland cursor load has no theme-name validation
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
Which URL (or repository) have you found the vulnerability in?
https://chromium.googlesource.com/chromium/src/+/refs/heads/main/ui/gtk/gtk_util.cc
The problem
Please describe the technical details of the vulnerability
VULNERABILITY
Incomplete fix of CVE-2026-15769. The M150 fix installs a write-time interceptor on GTK settings (GtkSettingsSetProperty in ui/gtk/gtk_util.cc) that sanitizes theme names, but it covers only three properties (gtk-theme-name, gtk-icon-theme-name, gtk-key-theme-name). gtk-cursor-theme-name and gtk-cursor-theme-size are not on the list, so writes to them pass through raw.
On the load side, the X11 cursor loader validates the theme name with IsValidCursorThemeName (ui/base/x/x11_cursor_loader.cc), which rejects absolute paths and parent references. The Wayland cursor load (ui/ozone/platform/wayland/host/wayland_cursor_factory.cc) stores the raw string and passes it to wl_cursor_theme_load with no validation. libwayland-cursor concatenates the name into the XCURSOR search path (<dir>/<theme>/cursors/<shape>) with no ../ rejection, so a name like ../../../../tmp/evil resolves outside the icons root.
ROOT CAUSE
Two gaps that line up on the Wayland path:
- Write time: GtkSettingsSetProperty special-cases only the three properties;
gtk-cursor-theme-name and gtk-cursor-theme-size fall through to the raw g_orig_set_property.
- Load time: the Wayland sink does not call IsValidCursorThemeName (the X11
sink does). The raw name reaches wl_cursor_theme_load, and libwayland-cursor resolves it into a filesystem path with no traversal rejection.
The result is a dual-path residual: the same spoofed-settings hop that CVE-2026-15769 was about still forces the browser process to open and parse an attacker-controlled XCursor theme tree on Wayland. X11 is hardened (verified negative control below); Wayland is not.
WHY THIS IS A NEW BUG (and not the fixed CVE)
CVE-2026-15769's fix rewrote the three listed properties and hardened the X11 cursor sink. It did not touch gtk-cursor-theme-name or gtk-cursor-theme-size, and it did not add validation to the Wayland load. The cursor row has neither half of the fix. Incomplete fixes are treated as new bugs on their own merits; this is the omitted cursor half of that fix. Do not re-file the three fixed properties.
AFFECTED VERSIONS
Chromium main (source verified 2026-07-26): the interceptor omission and the Wayland sink are both present. Chrome for Testing 150.0.7871.186 (post-15769): X11 sink confirmed hardened, confirming the cursor property is the residual. Linux Wayland is the affected configuration; on X11 the traversal is blocked at the load sink.
REPRODUCTION
Two independent measurements, both in the lab and both reproducible.
- The write-time gap (pure GtkSettings, no Chrome needed): set
gtk-cursor-theme-name to ../../../../tmp/w8_evil_cursor with g_object_set and read it back. It is retained verbatim, while the interceptor-rewritten properties are forced to Adwaita. From evidence_gtk_property.txt:
BEFORE gtk-cursor-theme-name=(null) AFTER gtk-cursor-theme-name=../../../../tmp/w8_evil_cursor AFTER gtk-theme-name (pure GTK)=../../../invalid-theme NOTE: Chromium interceptor rewrites theme-name to Adwaita; cursor-theme-name has NO interceptor entry
- The load-time path resolution (libwayland-cursor semantics): a name of
../../../../tmp/w8_evil_cursor under /usr/share/icons resolves and opens outside the icons root. From the path-sink harness (evidence_path_sink.txt):
openat(..., "/usr/share/icons/../../../../tmp/w8_evil_cursor/cursors/left_ptr", O_RDONLY) = 3 (followed by a read of the planted content)
The X11 negative control: on Chrome for Testing 150 (post-fix), the X11 sink rejects the same traversal name (IsValidCursorThemeName), so the gap is specific to the Wayland load.
EVIDENCE
evidence_gtk_property.txt: the interceptor gap (cursor property retained raw, theme-name rewritten).
evidence_path_sink.txt: the libwayland-cursor path concatenation opening a traversal path outside the icons root.
The companion consequence: this gap is the reachability for the out-of-bounds write in Chromium issue 540280769 (the libwayland-cursor pool integer overflow), because the unsanitized theme name and size feed an attacker-chosen theme to the vulnerable allocator. Reported there as the P1 chain.
ATTACHED FILES
gtk_property_gap.c - sets gtk-cursor-theme-name to a traversal value and reads it back wayland_path_sink.c - demonstrates libwayland-cursor resolving a traversal name to an open evidence_gtk_property.txt - the interceptor gap output evidence_path_sink.txt - the path resolution openat proof
Impact analysis
WHO CAN EXPLOIT IT
An attacker who can write to the desktop cursor-theme settings that Chrome reads. In the Chrome threat model this is a compromised renderer or GPU/display process, which acts as the display client and can act as a hostile settings source (the CVE-2026-15769 hop class). The theme name and size are fully attacker-controlled.
WHAT THEY GAIN
The browser process, which is outside the renderer sandbox, opens and parses an attacker-controlled XCursor theme tree on Wayland. On X11 this is blocked at the load sink; on Wayland it is not, and libwayland-cursor resolves traversal names outside the icons root. This is a browser-process filesystem open and parse of attacker bytes, in the same impact class CVE-2026-15769 was rated High for.
The direct impact is an incomplete fix of a shipped High CVE that leaves a browser-process attack surface open through the same settings-spoof hop the CVE addressed. It is also the reachability step for the memory-corruption chain reported in Chromium issue 540280769 (the libwayland-cursor pool integer overflow), where the unsanitized theme name and size feed an attacker-chosen theme to a vulnerable allocator that then performs an out-of-bounds write in the browser process.
This is a logic and missing-validation bug, not memory corruption in its own right; its severity comes from the incomplete fix of a High-rated issue and from being the entry point to the demonstrated pool-overflow chain.
SUGGESTED FIX
Extend GtkSettingsSetProperty to handle gtk-cursor-theme-name with the same path rules as IsValidThemeName / IsValidCursorThemeName (reject empty, absolute, parent-referencing, and multi-component names) and rewrite to a safe fallback, and apply equivalent bounds validation to gtk-cursor-theme-size. Also validate the name in the Wayland cursor load before wl_cursor_theme_load, matching the X11 sink as defense in depth. Unify the validators in a shared helper so X11, Wayland, and the GTK interceptor cannot drift apart again. This is the second drift in this series.
REFERENCE
Chromium issue 540280769: the pool integer overflow this gap reaches. CVE-2026-15769: the incomplete parent fix (Chrome 150.0.7871.125).
The cause
What version of Chrome have you found the security issue in?
150.0.7871.186 [stable]
Is the security issue related to a crash?
No, it is not related to a crash.
Choose the type of vulnerability
Permissions Bypass
How would you like to be publicly acknowledged for your report?
Fabian Wahle (Hap Security)
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 earlier fix was applied only to three GTK theme properties and to the X11 cursor loader, so the cursor theme name and size reach the Wayland cursor loader unvalidated and are concatenated into a filesystem path without traversal checks.
Impact
On Wayland the browser process, outside the renderer sandbox, could open and parse an attacker-chosen cursor theme tree, and this gap is also the reachability step for a separately reported out-of-bounds write; on X11 the traversal is blocked at the load sink.
What the attacker needed
Attacker can write desktop cursor settings; Linux running Wayland; compromised renderer or display process
The fix
The GTK settings interceptor should validate the cursor theme name and size with the same path rules and rewrite unsafe values to a safe fallback, the Wayland cursor load should validate the name before loading, and the validators should be unified in a shared helper.
How it was found
- Set the cursor theme name setting to a value containing parent-directory references and read it back.
- Observe that the value is kept unchanged while the three fixed properties are rewritten to a safe default.
- Pass the same traversal name to the Wayland cursor library and observe it opening a file outside the icons root.
- Confirm on X11 that the same name is rejected by the cursor loader.
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.
Chrome reads desktop settings such as which mouse cursor theme to use. A previous fix made sure some of those settings could not contain tricks like '../' that point at files elsewhere on disk, but it missed the cursor theme settings and the code path used on Wayland, a Linux display system. So a program that can change those settings could still make Chrome open files from a location the attacker chooses.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.