Skip to content
Path traversal Advisory Advanced CVE-2026-15769

Insufficient validation of untrusted input in Linux Toolkit Theming (CVE-2026-15769)

Chromium's GTK theme integration on Linux/X11 accepts an icon theme name from XSETTINGS without validating it, so a theme name containing path traversal can point GTK at a local directory such as the downloads folder. A compromised GPU process holding a pre-sandbox X11 connection could use this to make the unsandboxed browser process load and parse an attacker-placed SVG icon, which could become a sandbox escape if the SVG parser has a memory safety flaw.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 42 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential path-traversal vulnerability exists in Chromium's GTK theme integration layer on Linux/X11 platforms. A compromised GPU process could leverage its retained pre-sandbox X11 connection to modify the Net/IconThemeName setting via XSETTINGS. This could force the unsandboxed browser process to load and parse an attacker-controlled SVG icon from the local downloads directory during window frame rendering.

Affected files:

  • ui/gtk/nav_button_provider_gtk.cc
  • ui/gtk/gtk_ui.cc
  • ui/gtk/gtk_util.cc

Estimated timestamp from git blame: 2017-08-21

Summary

A potential path-traversal vulnerability in Chromium's GTK theme integration layer on Linux/X11 platforms could allow a compromised GPU process to force the unsandboxed browser process to load and parse an attacker-controlled SVG file from the local filesystem (such as ~/Downloads). If combined with a memory safety issue in the underlying SVG rendering library (like librsvg or gdk-pixbuf), this represents a potential GPU-to-browser sandbox escape vector.

Root Cause Analysis

In ui/gtk/gtk_ui.cc, the browser process subscribes to GTK configuration changes via GtkSettings:

C++
GtkSettings* settings = gtk_settings_get_default();
connect(settings, "notify::gtk-icon-theme-name", &GtkUi::OnThemeChanged);

When GDK's XSETTINGS client processes setting changes, it updates the gtk-icon-theme-name property. Currently, Chromium performs no validation or sanitization on this property.

When window frame buttons are drawn or updated (for example, in ui/gtk/nav_button_provider_gtk.cc or when MaybeUpdateCachedFrameButtonImages() triggers a redraw), the browser invokes GTK's icon lookup routines:

C++
auto icon_info = TakeGObject(gtk_icon_theme_lookup_icon_for_scale(
    GetDefaultIconTheme(), icon_name, kNavButtonIconSize, scale, ...));

Because gtk-icon-theme-name can contain path-traversal sequences (e.g., ../../../Downloads), GTK's internal path construction (g_build_filename) resolves the theme path to a relative location on the disk, such as the user's ~/Downloads directory. If a valid index.theme file is present in that directory, GTK will register it as a theme and subsequently resolve navigation icons (e.g., window-close-symbolic.svg) directly from that directory.

Once resolved, the icon is loaded and parsed via librsvg / gdk-pixbuf inside the unsandboxed browser process:

C++
auto icon_pixbuf = TakeGObject(gtk_icon_info_load_symbolic_for_context(
    icon_info, button_context, nullptr, nullptr));

Potential Attack Vector & Steps to Trigger

Note: These are suggested/potential steps to trigger the bug. Our tooling does not currently have the capability to execute code or verify this with a running exploit.

  1. Local File Placement: An attacker-controlled webpage triggers a drive-by download of two files into the user's default ~/Downloads directory:
    • index.theme (declaring a custom theme structure).
    • window-close-symbolic.svg (containing an SVG payload targeting a parser vulnerability).
  2. GPU Settings Hijack: The attacker leverages an existing compromise in the sandboxed GPU process to access the cloned pre-sandbox X11 connection:
    • Reference: ui/ozone/platform/x11/ozone_platform_x11.cc
  3. Claim Selection: The GPU process issues a SetSelectionOwner request to own _XSETTINGS_S0.
  4. Publish Malicious Setting: The GPU process writes a _XSETTINGS_SETTINGS property setting Net/IconThemeName = "../../../Downloads".
  5. Trigger Parse: The browser process processes the setting change and updates gtk-icon-theme-name. When a new window is laid out or opened (e.g., via window.open() in the renderer), the cache is missed, and NavButtonProviderGtk::LoadNavButtonIcon is called. The browser resolves and parses ~/Downloads/window-close-symbolic.svg using GTK/librsvg, potentially executing code in the unsandboxed browser context.

Suggested Fix

To mitigate this issue, Chromium should sanitize or validate incoming GTK icon theme name updates to ensure they do not contain path traversal components or absolute paths. This is similar to the existing cursor theme validation implemented in ui/base/x/x11_cursor_loader.cc:

C++
bool IsValidIconThemeName(const std::string& theme) {
  base::FilePath theme_path(theme);
  return !theme.empty() && theme != "." && !theme_path.IsAbsolute() &&
         !theme_path.ReferencesParent() && theme_path.BaseName() == theme_path;
}

If the received theme name fails validation, Chromium should reject the configuration update and revert to a safe default.

Evaluated with Chrome root at commit: 9ebf4302210513a012c901d87a2668b3aadf8cc1


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.

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

Impact

This could let a compromised GPU process cause code execution in the unsandboxed browser process, but only if the SVG rendering library also has a memory safety flaw; the report notes the steps are unverified and its tooling could not run an exploit.

What the attacker needed

Linux/X11 desktop; GPU process already compromised; Attacker files in downloads folder; SVG parser memory bug present

The fix

Chromium should validate incoming icon theme names, rejecting empty, absolute, parent-referencing or multi-component values and falling back to a safe default.

How it was found

  1. Get two files into the user's downloads folder: a theme description file and a crafted SVG icon.
  2. Use an existing compromise of the sandboxed GPU process to reach its pre-sandbox X11 connection.
  3. Have the GPU process claim ownership of the XSETTINGS selection.
  4. Publish a settings property that sets the icon theme name to a parent-directory path pointing at the downloads folder.
  5. Open or lay out a new window so the browser reloads the navigation button icons and parses the crafted SVG.

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 on Linux draws its window buttons using icons supplied by the desktop's theme system, and it reads the theme name from a shared settings channel on the X display. The report says that name is trusted blindly, so a value containing '..' sequences can redirect icon loading to a folder the attacker controls, like the downloads folder. If the icon file is a crafted image and the image library has a bug, code could run outside the browser's protective sandbox.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.