CVE-1999-0032: BSD and Linux lpr buffer overflow in classification option

CVE-1999-0032 · Severity: high · CVSS 7.2 · Published 1996-10-25

A vulnerability exists in the standard printing utility (lpr) used by many Unix-like operating systems, including Linux and BSD. This flaw allows a person who already has basic access to a computer to gain full administrative control (root access). By exploiting this, an unauthorized user could read sensitive files, modify system settings, or disrupt operations.

Technologies: Linux Kernel. Vendors: Bsd, Linux.

Quick answers

Is CVE-1999-0032 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-1999-0032 being exploited in the wild.
How severe is CVE-1999-0032?
High severity, with a CVSS score of 7.2, published 25 October 1996.
Which products and versions are affected?
BSD-based systems All versions using vulnerable lpr; Linux Kernel All versions using vulnerable lpr.
Is there a fix for CVE-1999-0032?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-1999-0032 attacked?
It is attacked with local access, in an operating system.
Am I affected by CVE-1999-0032?
Check whether you run BSD-based systems or Linux Kernel at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The lpr utility contains a classic buffer overflow vulnerability within its command-line argument processing. Specifically, the utility fails to perform adequate bounds checking on the string provided to the '-C' (classification) flag. Because lpr is typically installed with setuid root permissions to manage printer spooling, a local attacker can provide a specially crafted, overly long string to overflow the stack buffer and redirect execution flow. This allows for arbitrary code execution with the effective user ID of root, leading to a full local privilege escalation.

Affected products

  • BSD BSD-based systems All versions using vulnerable lpr
  • Linux Linux Kernel All versions using vulnerable lpr

Timeline

  • 1996-10-25: disclosed: Initial publication date in NVD

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.