Bug 872390 - catdoc: buffer overflow flaw
Summary: catdoc: buffer overflow flaw
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 872391 872392
TreeView+ depends on / blocked
Reported: 2012-11-02 01:22 UTC by Vincent Danen
Modified: 2019-09-29 12:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-04-13 20:47:10 UTC

Attachments (Terms of Use)

Description Vincent Danen 2012-11-02 01:22:24 UTC
A Debian bug report [1] noted that there is a buffer overflow in catdoc's src/xlsparse.c, which contains:

        for (i=0;i<NUMOFDATEFORMATS; i++);

Because of the ";" at the end of the first line, it effectively sets i to NUMOFDATEFORMATS, which will cause it to write past defined buffer.  This could lead to a denial of service (crash of catdoc).  The Debian bug report indicates that this could possibly be used for worse things than a crash, but I'm not sure (I can see it writing past the end of the buffer, but all it is writing is 0's and not anything user-defined).

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692076

Comment 1 Vincent Danen 2012-11-02 01:23:17 UTC
Created catdoc tracking bugs for this issue

Affects: fedora-all [bug 872391]
Affects: epel-all [bug 872392]

Comment 4 Fedora Update System 2014-10-28 10:59:30 UTC
catdoc-0.94.2-10.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2014-10-28 11:04:41 UTC
catdoc-0.94.2-10.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

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