REDHAT-BUG-499174: Buffer Overflow

Published May 5, 2009
·
Updated

A stack-based buffer overflow existed in cscope's putstring function in cscope's versions prior to 15.6. A long function or symbol name in source code file could result in cscope crash or code execution when searching the source code for any function or symbol name.

Issue was originally reported via bug #189666, it can be reproduced using memcheck/tests/match-overrun.c from valgrind source tarball.

In cscope 15.6, putstring was replaced with function fetchstringfromdbase, which accepts target buffer size as its argument.

Upstream commit: http://cscope.cvs.sourceforge.net/viewvc/cscope/cscope/src/find.c?view=log#rev1.19

Patch, which was used in Fedora cscope packages and is used in cscope packages in Red Hat Enterprise Linux 5: http://cvs.fedoraproject.org/viewvc/rpms/cscope/devel/cscope-15.5-putstring-overflow.patch

Affected Software

1 affected component
Cscope cscope<15.6

Event History

May 5, 2009
Data Sourced
via Red Hat·02:18 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-499174?

REDHAT-BUG-499174 is a critical vulnerability due to stack-based buffer overflow that can lead to application crash or potential code execution.

2

How do I fix REDHAT-BUG-499174?

To fix REDHAT-BUG-499174, upgrade cscope to version 15.6 or later.

3

What causes REDHAT-BUG-499174?

REDHAT-BUG-499174 is caused by a stack-based buffer overflow in the putstring function of cscope when handling long function or symbol names.

4

Which versions of cscope are affected by REDHAT-BUG-499174?

Versions of cscope prior to 15.6 are affected by REDHAT-BUG-499174.

5

What are the potential impacts of REDHAT-BUG-499174?

The potential impacts of REDHAT-BUG-499174 include software crashes and remote code execution vulnerabilities.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203