Title: Multiple Linux Vendor restore Buffer Overflow Vulnerability
Severity: MODERATE
Description:
A buffer overflow exists in the 'restore' program, part of the dump 0.4b15-1 package, distributed with RedHat Linux 6.2. By supplying a long string containing machine executable code at the prompt for a tape name, it is possible for an attacker to execute arbitrary code with root privileges.
The buffer overflow lies in the tape.c source file:
/dump-0.4b15/compat/include/protocols/dumprestore.h: line 53: #define TP_BSIZE 1024
/dump-0.4b15/restore/tape.c: line 311: char buf[TP_BSIZE];
/dump-0.4b15/restore/tape.c: line 357: (void) fgets(buf, BUFSIZ, terminal)
/dump-0.4b15/restore/tape.c: line 382: (void) fgets(buf, BUFSIZ, terminal);
As BUFSIZ is defined to be 8192, the fgets() will attempt to copy up to 8192 bytes in to a 1024 byte buffer.
Affected Products:
- Debian Linux 2.1.0
- Debian Linux 2.2.0
- Debian Linux 2.2.0 pre potato
- MandrakeSoft Linux Mandrake 7.0.0
- RedHat Linux 6.2.0 alpha
- RedHat Linux 6.2.0 i386
- RedHat Linux 6.2.0 sparc
- S.u.S.E. Linux 6.3.0
- S.u.S.E. Linux 6.3.0 alpha
- S.u.S.E. Linux 6.3.0 ppc
- S.u.S.E. Linux 6.4.0
- Stelian Pop dump 0.4.0 b15-1
- Stelian Pop dump 0.4.0 b15-30
- Stelian Pop dump 0.4.0 b16-0
- Stelian Pop dump 0.4.0 b17-0
- Stelian Pop dump 0.4.0 b9-0
- Stelian Pop dump 0.4.0 b9-9
References:
- Stan Bubrouski / Red Hat: Bugzilla: typo in tape.c potential hazard
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.