Sometimes the path to root is not a flashy kernel exploit or a broken login prompt. It is a temp directory that gets cleaned up at the wrong moment. A newly disclosed flaw, CVE-2026-3888, affects default Ubuntu Desktop 24.04 and later and shows how trusted Linux components can still create dangerous gaps when they interact in unexpected ways. The bug allows a local attacker with low privileges to escalate to full root access. It is not remotely exploitable, but on a desktop where untrusted code already has a foothold, that distinction only goes so far.

Advertisment

How the Ubuntu privilege escalation works

The issue sits between snap-confine and systemd-tmpfiles. Snap-confine is part of Ubuntu’s snap security model. It runs with elevated privileges and prepares the sandbox for snap applications by handling mount namespaces, confinement controls, AppArmor policy, and seccomp filtering. Systemd-tmpfiles, meanwhile, is responsible for creating and cleaning temporary directories such as /tmp.

The vulnerable point is /tmp/.snap. On affected systems, systemd-tmpfiles can remove that directory during routine cleanup. If an attacker is patient enough to wait for that event, they can recreate the path with files they control. When snap-confine later initializes another sandbox, it may bind-mount that content as root.

That turns a routine cleanup cycle into a privilege escalation chain.

Why this bug matters even with high attack complexity

The flaw carries a CVSS 7.8 rating, with attack complexity marked high because exploitation depends on timing. On Ubuntu 24.04, the cleanup window is 30 days. On later versions, it drops to 10 days. That delay sounds inconvenient, but in real intrusions, attackers often keep local access for weeks. A bug that rewards patience is still a serious bug. The bigger lesson is architectural: security boundaries can fail when one trusted component assumes a temporary path is still safe and another component silently changes it.

Advertisment

What Ubuntu users should do now

Affected systems should be updated to patched snapd builds:

  • Ubuntu 24.04 LTS: 2.73+ubuntu24.04.1
  • Ubuntu 25.10: 2.73+ubuntu25.10.1
  • Ubuntu 26.04 LTS development branch: 2.74.1+ubuntu26.04.1
  • Upstream snapd: 2.75

Older releases from Ubuntu 16.04 through 22.04 LTS are not reported vulnerable in default setups, though patching still makes sense in non-standard environments.

Qualys also identified a separate race condition in the uutils coreutils package during the same review. Ubuntu mitigated that issue before the public release of 25.10 by reverting the default rm implementation to GNU coreutils. The practical takeaway is simple: this is a local bug, but not a minor one. If you manage Ubuntu desktops, patch quickly and treat temporary path assumptions with more suspicion than they usually get.

Advertisment

More For You

Apple’s silent WebKit update fixes a serious cross-origin flaw on iPhone, iPad, and Mac

Instagram just lost encrypted DMs and your privacy just took a hit

Chrome zero-day emergency: billions of users told to update now

Meta Is Coming for Scammers on WhatsApp, Facebook and Messenger