CVE-2021-25317cups: ownership of /var/log/cups allows the lp user to create files as root
A Incorrect Default Permissions vulnerability in the packaging of cups of SUSE Linux Enterprise Server 11-SP4-LTSS, SUSE Manager Server 4.0, SUSE OpenStack Cloud Crowbar 9; openSUSE Leap 15.2, Factory allows local attackers with control of the lp users to create files as root with 0644 permissions without the ability to set the content. This issue affects: SUSE Linux Enterprise Server 11-SP4-LTSS cups versions prior to 1.3.9. SUSE Manager Server 4.0 cups versions prior to 2.2.7. SUSE OpenStack Cloud Crowbar 9 cups versions prior to 1.7.5. openSUSE Leap 15.2 cups versions prior to 2.2.7. openSUSE Factory cups version 2.3.3op2-2.1 and prior versions.
What to do
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | cups | Fix pending | ||
| Ubuntu 14.04 | cups | Fix pending | ||
| Red Hat Enterprise Linux 9 | cups | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cups-client | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cups-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cups-filesystem | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cups-ipptool | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cups-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cups-lpd | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | cups-printerapp | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cups | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cups-client | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cups-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cups-filesystem | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cups-ipptool | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cups-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | cups-lpd | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cups | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cups-client | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cups-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cups-filesystem | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cups-ipptool | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cups-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | cups-lpd | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | cups | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-lpd | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cups-php | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by suse, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- SUSE Linux Enterprise Server 11-SP4-LTSS: affected: cups to before 1.3.9; fixed in
1.3.9 - SUSE Manager Server 4.0: affected: cups to before 2.2.7; fixed in
2.2.7 - SUSE OpenStack Cloud Crowbar 9: affected: cups to before 1.7.5; fixed in
1.7.5 - openSUSE Leap 15.2: affected: cups to before 2.2.7; fixed in
2.2.7 - openSUSE Factory: affected: cups to 2.3.3op2-2.1
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://bugzilla.suse.com/show_bug.cgi?id=1184161
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H74BP746O5NNVCBUTLLZYAFBPESFVECV/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S37IDQGHTORQ3Z6VRDQIGBYVOI27YG47/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GWPGZLT3U776Q5YPPSA6LGFWWBDWBVH3/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.