Skip to main content
Vulnerability Database/CVE-2026-55480

CVE-2026-55480: OpenPrinting CUPS Race Condition Vulnerability

CVE-2026-55480 is a race condition flaw in OpenPrinting CUPS that allows attackers to exploit predictable file paths and symlink manipulation. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-55480 Overview

CVE-2026-55480 affects OpenPrinting CUPS, the open source printing system used by Linux and other Unix-like operating systems. The flaw lives in the copy_model() function in scheduler/ipp.c, where the scheduler creates a predictable TempDir/<connection-number>.ppd path inside an lp-group-writable directory and opens it as root without O_EXCL or O_NOFOLLOW. An attacker who already has an lp-group process can plant a symlink at the predicted path and win a race against the privileged open. Successful exploitation lets the root scheduler follow the symlink and truncate or overwrite any root-writable file. The issue is fixed in CUPS 2.4.20.

Critical Impact

A local attacker with lp-group access can race the CUPS scheduler to overwrite arbitrary root-owned files when a privileged add-printer or modify-printer operation triggers copy_model(), damaging file integrity and availability.

Affected Products

  • OpenPrinting CUPS prior to version 2.4.20
  • Linux distributions packaging vulnerable CUPS builds
  • Unix-like systems running the CUPS scheduler (cupsd)

Discovery Timeline

  • 2026-10-15 - CVE-2026-55480 published to NVD
  • 2026-10-20 - Last updated in NVD database

Technical Details for CVE-2026-55480

Vulnerability Analysis

The vulnerability is a symlink-following race condition classified as [CWE-59] (Improper Link Resolution Before File Access). When an administrator issues an add-printer or modify-printer IPP request that references a model PPD, the scheduler invokes copy_model() to generate a temporary PPD file. The function constructs the path TempDir/<connection-number>.ppd using the current connection number, which is predictable to any local process that can observe scheduler activity.

Because TempDir is writable by the lp group, a process running under that group can create a symlink at the predicted path before the scheduler calls open(). The scheduler opens the file as root using only O_WRONLY | O_CREAT | O_TRUNC and then truncates and writes generated PPD content to the resolved target. If the symlink points to a sensitive root-writable file, that file is overwritten.

Root Cause

The root cause is unsafe file creation semantics. The open() call lacked O_EXCL, so creation succeeded against an existing path, and lacked O_NOFOLLOW, so symlinks were traversed. Combined with a predictable filename in a group-writable directory, this produced a classic TOCTOU race between the attacker's symlink creation and the privileged file open.

Attack Vector

Exploitation requires local access with two prerequisites. First, the attacker must control an lp-group process that can write to TempDir and predict the connection-derived filename. Second, a privileged add-printer or modify-printer operation using a model PPD must be triggered to invoke copy_model(). The maintainer notes that administering printers or installing the relevant filter already requires root or print-administrator access, which raises the effective privilege requirement.

c
  snprintf(buffer, sizeof(buffer), "%s/daemon/cups-driverd", ServerBin);
  snprintf(tempfile, sizeof(tempfile), "%s/%d.ppd", TempDir, con->number);
- if ((tempfd = open(tempfile, O_WRONLY | O_CREAT | O_TRUNC, 0600)) < 0)
+ if ((tempfd = open(tempfile, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL | O_NOFOLLOW, 0600)) < 0)
    return (-1);
  if (cupsdOpenPipe(temppipe))
  {

Source: OpenPrinting CUPS commit 98adfd8. The patch adds O_EXCL to fail if the path already exists and O_NOFOLLOW to refuse opening symlinks, closing the race window.

Detection Methods for CVE-2026-55480

Indicators of Compromise

  • Unexpected symlinks in the CUPS TempDir directory matching the pattern <integer>.ppd
  • Root-owned files overwritten with PPD-formatted content (header lines beginning with *PPD-Adobe)
  • lp-group processes performing symlink() or link() syscalls targeting TempDir

Detection Strategies

  • Audit cupsd file operations under TempDir using Linux audit rules on open() and openat() syscalls referencing .ppd paths
  • Monitor for lp-group processes that create symlinks pointing outside the CUPS spool directory
  • Alert on CUPS scheduler writes to non-standard paths outside TempDir or /var/spool/cups

Monitoring Recommendations

  • Enable cupsd access and error logging at a verbose level to capture add-printer and modify-printer IPP operations
  • Correlate privileged printer administration events with concurrent file system activity by lp-group users
  • Track integrity of system configuration files that could be targeted via symlink overwrites

How to Mitigate CVE-2026-55480

Immediate Actions Required

  • Upgrade OpenPrinting CUPS to version 2.4.20 or later on all affected systems
  • Restrict membership of the lp group to trusted service accounts only
  • Review existing printer administration privileges and remove unnecessary grants
  • Verify that TempDir permissions follow upstream defaults and are not loosened

Patch Information

The fix is included in CUPS 2.4.20. The scheduler now opens the temporary PPD file with O_EXCL | O_NOFOLLOW, causing the call to fail if the path already exists or resolves through a symlink. See the upstream advisory GHSA-jj94-x3qh-ffp9, the v2.4.20 release notes, and commits 98adfd8 and f6a11da.

Workarounds

  • Disable remote printer administration if printing is not required on the host
  • Set CUPS TempDir to a path writable only by root where operationally feasible
  • Prevent interactive logins or unnecessary processes from running under the lp group until the patch is applied
bash
# Verify installed CUPS version
cups-config --version

# Example Debian/Ubuntu upgrade
sudo apt update && sudo apt install --only-upgrade cups

# Confirm TempDir ownership and permissions
stat -c '%U %G %a %n' $(grep -E '^TempDir' /etc/cups/cups-files.conf | awk '{print $2}')

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.