1. CVE archive
  2. 2010
  3. CVE-2010-2941

CVE-2010-2941

9.8 Critical severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critical

Description

ipp.c in cupsd in CUPS 1.4.4 and earlier does not properly allocate memory for attribute values with invalid string data types, which allows remote attackers to cause a denial of service (use-after-free and application crash) or possibly execute arbitrary code via a crafted IPP request.

Affected products

VendorProductVersionPlatform
apple cups <= 1.4.4 –
apple mac os x < 10.5.8 –
apple mac os x >= 10.6.0 <= 10.6.4 –
apple mac os x server < 10.5.8 –
apple mac os x server >= 10.6.0 <= 10.6.4 –
canonical ubuntu linux 6.06 –
canonical ubuntu linux 8.04 –
canonical ubuntu linux 9.10 –
canonical ubuntu linux 10.04 –
canonical ubuntu linux 10.10 –
debian debian linux 5.0 –
fedoraproject fedora 12 –
fedoraproject fedora 13 –
fedoraproject fedora 14 –
opensuse opensuse 11.1 –
opensuse opensuse 11.2 –
opensuse opensuse 11.3 –
redhat enterprise linux 5.0 –
redhat enterprise linux 6.0 –
redhat enterprise linux desktop 5.0 –
redhat enterprise linux server 5.0 –
redhat enterprise linux workstation 5.0 –
suse linux enterprise 10.0 sp3 –
suse linux enterprise 11.0 –
suse linux enterprise 11.0 sp1 –
suse linux enterprise server 9 –
All 56 Apple Cups vulnerabilities

Vulnerability type

CWE-416 Use After Free

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory belongs to the code that operates on the new pointer.

Impact on systems

ScopeImpact
Integrity Modify Memory
The use of previously freed memory may corrupt valid data, if the memory area in question has been allocated and used properly elsewhere.
Availability DoS: Crash, Exit, or Restart
If chunk consolidation occurs after the use of previously freed data, the process may crash when invalid data is used as chunk information.
Confidentiality Read Memory
Read operations on freed memory can sometimes leak sensitive information instead of causing a crash
Integrity, Confidentiality, Availability Execute Unauthorized Code or Commands
If malicious data is entered before chunk consolidation can take place, it may be possible to take advantage of a write-what-where primitive to execute arbitrary code. If the newly allocated data happens to hold a class, in C++ for example, various function pointers may be scattered within the heap data. If one of these function pointers is overwritten with an address to valid shellcode, execution of arbitrary code can be achieved.

How to prevent it

Architecture and Design · Language Selection Choose a language that provides automatic memory management.
Implementation · Attack Surface Reduction When freeing pointers, be sure to set them to NULL once they are freed. However, the utilization of multiple or complex data structures may lower the usefulness of this strategy.

All 9,640 CWE-416 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org