Bug 40400 - man 1.5h1-10 has an exploitable overflow
man 1.5h1-10 has an exploitable overflow
Product: Red Hat Linux
Classification: Retired
Component: man (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Aaron Brown
Depends On:
  Show dependency treegraph
Reported: 2001-05-13 13:35 EDT by Need Real Name
Modified: 2007-04-18 12:33 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-05-13 14:22:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2001-05-13 13:35:11 EDT
Description of Problem:

man 1.5h1-10 (version released with rh7.0) has a heap based overflow
in man.c, get_section_list() function. The check 

      if (end == NULL || i + 1 == sizeof (tmp_section_list))
should be
      if (end == NULL || i + 1 == (sizeof (tmp_section_list) /

There exists an exploit for gid man.

How Reproducible:

Make a section list with over 100 elements in it.

Steps to Reproduce:
1. man -S `perl -e 'print ":" x 101'` ls

Actual Results:

Segmentation fault

Expected Results:

No manual entry for ls

Additional Information:
A root exploit from gid man also exists.
Comment 1 Bernhard Rosenkraenzer 2001-05-13 14:22:38 EDT
Quick fix: Update to the versions from 7.1 or rawhide (preferred).
I'll take care of errataing this now.
Comment 2 Bernhard Rosenkraenzer 2001-05-21 14:38:10 EDT
The errata package just passed QA - closing this bug.
Comment 3 Bernhard Rosenkraenzer 2001-05-21 14:39:50 EDT
By the way, I could not find any information about a root exploit from gid man 
anywhere on the net.
If this is indeed true, please open a new bug report with information on this.

Note You need to log in before you can comment on or make changes to this bug.