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.ccui/gtk/gtk_ui.ccui/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:
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:
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:
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.
- Local File Placement: An attacker-controlled webpage triggers a drive-by download of two files into the user's default
~/Downloadsdirectory:index.theme(declaring a custom theme structure).window-close-symbolic.svg(containing an SVG payload targeting a parser vulnerability).
- 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
- Reference:
- Claim Selection: The GPU process issues a
SetSelectionOwnerrequest to own_XSETTINGS_S0. - Publish Malicious Setting: The GPU process writes a
_XSETTINGS_SETTINGSproperty settingNet/IconThemeName = "../../../Downloads". - 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., viawindow.open()in the renderer), the cache is missed, andNavButtonProviderGtk::LoadNavButtonIconis called. The browser resolves and parses~/Downloads/window-close-symbolic.svgusing 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:
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.
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
- Get two files into the user's downloads folder: a theme description file and a crafted SVG icon.
- Use an existing compromise of the sandboxed GPU process to reach its pre-sandbox X11 connection.
- Have the GPU process claim ownership of the XSETTINGS selection.
- Publish a settings property that sets the icon theme name to a parent-directory path pointing at the downloads folder.
- 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.