The add_job function in scheduler/ipp.c in cupsd in CUPS before 2.0.3 performs incorrect…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Complete · Complete · Complete
- Fix status
- Partial Red Hat: 16 fixed, 1 without a fix
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
Red Hat 1 advisory
- RHSA-2015:1123 Released 2015-06-17 · Red Hat rating Importantcups security update
- Red Hat Enterprise Linux Client (v. 7) cups-1:1.6.3-17.el7_1.1, cups-client-1:1.6.3-17.el7_1.1, cups-filesystem-1:1.6.3-17.el7_1.1 +2
- Red Hat Enterprise Linux Client Optional (v. 7) cups-devel-1:1.6.3-17.el7_1.1, cups-ipptool-1:1.6.3-17.el7_1.1
- Red Hat Enterprise Linux ComputeNode (v. 7) cups-1:1.6.3-17.el7_1.1, cups-client-1:1.6.3-17.el7_1.1, cups-filesystem-1:1.6.3-17.el7_1.1 +2
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) cups-devel-1:1.6.3-17.el7_1.1, cups-ipptool-1:1.6.3-17.el7_1.1
- Red Hat Enterprise Linux Desktop (v. 6) cups-1:1.4.2-67.el6_6.1, cups-libs-1:1.4.2-67.el6_6.1, cups-lpd-1:1.4.2-67.el6_6.1
- Red Hat Enterprise Linux Desktop Optional (v. 6) cups-devel-1:1.4.2-67.el6_6.1, cups-php-1:1.4.2-67.el6_6.1
- Red Hat Enterprise Linux HPC Node (v. 6) cups-1:1.4.2-67.el6_6.1, cups-libs-1:1.4.2-67.el6_6.1, cups-lpd-1:1.4.2-67.el6_6.1
- Red Hat Enterprise Linux HPC Node Optional (v. 6) cups-devel-1:1.4.2-67.el6_6.1, cups-php-1:1.4.2-67.el6_6.1
- Red Hat Enterprise Linux Server (v. 6) cups-1:1.4.2-67.el6_6.1, cups-devel-1:1.4.2-67.el6_6.1, cups-devel-1:1.4.2-67.el6_6.1.ppc +3
- Red Hat Enterprise Linux Server (v. 7) cups-1:1.6.3-17.ael7b_1.1, cups-1:1.6.3-17.el7_1.1, cups-client-1:1.6.3-17.ael7b_1.1 +11
- Red Hat Enterprise Linux Server Optional (v. 6) cups-php-1:1.4.2-67.el6_6.1
- Red Hat Enterprise Linux Server Optional (v. 7) cups-ipptool-1:1.6.3-17.ael7b_1.1, cups-ipptool-1:1.6.3-17.el7_1.1
- Red Hat Enterprise Linux Workstation (v. 6) cups-1:1.4.2-67.el6_6.1, cups-devel-1:1.4.2-67.el6_6.1, cups-libs-1:1.4.2-67.el6_6.1 +1
- Red Hat Enterprise Linux Workstation (v. 7) cups-1:1.6.3-17.el7_1.1, cups-client-1:1.6.3-17.el7_1.1, cups-devel-1:1.6.3-17.el7_1.1 +3
- Red Hat Enterprise Linux Workstation Optional (v. 6) cups-php-1:1.4.2-67.el6_6.1
- Red Hat Enterprise Linux Workstation Optional (v. 7) cups-ipptool-1:1.6.3-17.el7_1.1
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux Desktop (v. 6) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux Desktop Optional (v. 6) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux HPC Node (v. 6) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux Server Optional (v. 6) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux Workstation Optional (v. 6) | Fixed | RHSA-2015:1123 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2015:1123 |
Timeline
- 2026-10-02 Threatist record created from CVE-2015-1158
- 2026-10-03 Alias added: GHSA-f3f2-vc32-jrrx
References
Advisory 10
Other 6
- https://bugzilla.redhat.com/show_bug.cgi?id=1221641
- https://bugzilla.opensuse.org/show_bug.cgi?id=924208
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10702
- https://github.com/0x00string/oldays/blob/master/CVE-2015-1158.py
- https://code.google.com/p/google-security-research/issues/detail?id=455
- http://googleprojectzero.blogspot.in/2015/06/owning-internet-printing-case-study-in.html
More Cups vulnerabilities
- TI-2007-04211 Off-by-one error in the ippReadIO function in cups/ipp.c in CUPS 1.3.3 allows remote… CVSS 2.0HIGH 10.0
- TI-2008-00848 Double free vulnerability in the process_browse_data function in CUPS 1.3.5 allows remote… CVSS 2.0HIGH 10.0
- TI-2008-00038 Heap-based buffer overflow in the cgiCompileSearch function in CUPS 1.3.5, and other… CVSS 2.0HIGH 9.3
- TI-2014-06781 The browsing feature in the server in CUPS does not filter ANSI escape sequences from… CVSS 3.1HIGH 8.8
- TI-2018-04829 AppArmor cupsd Sandbox Bypass Due to Use of Hard Links CVSS 3.0HIGH 8.8
- TI-2005-04603 Multiple stack-based buffer overflows in the phpcups PHP module for CUPS 1.1.23rc1 might… CVSS 2.0HIGH 7.5
Sources
- CVE-2015-1158 · CVE Program
- CVE-2015-1158 · NVD
- FIRST EPSS
- GHSA-f3f2-vc32-jrrx · GitHub Advisory Database · CC BY 4.0
- CVE-2015-1158 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences