CVE-2015-1158
The add_job function in scheduler/ipp.c in cupsd in CUPS before 2.0.3 performs incorrect free operations for multiple-value job-originating-host-name attributes, which allows remote attackers to trigger data corruption for reference-counted strings via a crafted (1) IPP_CREATE_JOB or (2) IPP_PRINT_JOB request, as demonstrated by replacing the configuration file and consequently executing arbitrary code.
What to do
Likely to be exploited: EPSS gives a 30% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
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 14.04 | cups | Fixed | 1.7.2-0ubuntu1.6 | UBUNTU-CVE-2015-1158 |
| Debian 14 | cups | Fixed | 1.7.5-12 | DEBIAN-CVE-2015-1158 |
| Debian 13 | cups | Fixed | 1.7.5-12 | DEBIAN-CVE-2015-1158 |
| Debian 12 | cups | Fixed | 1.7.5-12 | DEBIAN-CVE-2015-1158 |
| Red Hat Enterprise Linux 7 | cups | Fixed | 1:1.6.3-17.ael7b_1.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 7 | cups-client | Fixed | 1:1.6.3-17.el7_1.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 7 | cups-devel | Fixed | 1:1.6.3-17.ael7b_1.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 7 | cups-filesystem | Fixed | 1:1.6.3-17.el7_1.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 7 | cups-ipptool | Fixed | 1:1.6.3-17.el7_1.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 7 | cups-libs | Fixed | 1:1.6.3-17.el7_1.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 7 | cups-lpd | Fixed | 1:1.6.3-17.el7_1.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 6 | cups | Fixed | 1:1.4.2-67.el6_6.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 6 | cups-devel | Fixed | 1:1.4.2-67.el6_6.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 6 | cups-libs | Fixed | 1:1.4.2-67.el6_6.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 6 | cups-lpd | Fixed | 1:1.4.2-67.el6_6.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 6 | cups-php | Fixed | 1:1.4.2-67.el6_6.1 | RHSA-2015:1123 |
| Red Hat Enterprise Linux 5 | cups | Will not fix Will not fix |
What the vendor says
As published in the CVE record by apple, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://www.debian.org/security/2015/dsa-3283 (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2015-1123.html (vendor-advisory)
- http://www.ubuntu.com/usn/USN-2629-1 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2015-06/msg00006.html (vendor-advisory)
- https://security.gentoo.org/glsa/201510-07 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2015-06/msg00003.html (vendor-advisory)
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1221641
- http://www.debian.org/security/2015/dsa-3283
- http://rhn.redhat.com/errata/RHSA-2015-1123.html
- https://bugzilla.opensuse.org/show_bug.cgi?id=924208
- http://www.ubuntu.com/usn/USN-2629-1
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10702
- http://www.securitytracker.com/id/1032556
- http://lists.opensuse.org/opensuse-security-announce/2015-06/msg00006.html
- http://www.cups.org/blog.php?L1082
- http://www.kb.cert.org/vuls/id/810572
- http://www.securityfocus.com/bid/75098
- https://github.com/0x00string/oldays/blob/master/CVE-2015-1158.py
- https://www.cups.org/str.php?L4609
- https://security.gentoo.org/glsa/201510-07
- https://code.google.com/p/google-security-research/issues/detail?id=455
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.