Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440942 - <app-text/catdoc-0.94.4: buffer overflow - DoS
Summary: <app-text/catdoc-0.94.4: buffer overflow - DoS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard: B3 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-02 13:03 UTC by Agostino Sarubbo
Modified: 2014-11-04 17:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2012-11-02 13:03:19 UTC
From https://bugzilla.redhat.com/show_bug.cgi?id=872390 :

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++);
        FormatIdxUsed[i]=0;

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 Kristian Fiskerstrand (RETIRED) gentoo-dev 2014-06-22 21:06:44 UTC
Seems this package has gotten a new home compared to the HOMEPAGE in our ebuilds. The issue is fixed in 0.94.4 according to http://metadata.ftp-master.debian.org/changelogs/main/c/catdoc/unstable_changelog

The package is available at https://launchpad.net/ubuntu/+source/catdoc/0.94.4-1.1 , specifically https://launchpad.net/ubuntu/+archive/primary/+files/catdoc_0.94.4.orig.tar.gz
Comment 2 Kristian Fiskerstrand (RETIRED) gentoo-dev 2014-09-11 20:38:18 UTC
*catdoc-0.94.4 (11 Sep 2014)

  11 Sep 2014; Tim Harder <radhermit@gentoo.org> +catdoc-0.94.4.ebuild,
  +files/catdoc-0.94.4-desktop.patch, +files/catdoc-0.94.4-destdir.patch:
  Security bump (bug #440942).

Arches, please stabilize:
=app-text/catdoc-0.94.4
Stable targets: amd64 x86
Comment 3 Agostino Sarubbo gentoo-dev 2014-09-13 17:06:33 UTC
amd64 stable
Comment 4 Agostino Sarubbo gentoo-dev 2014-09-13 17:07:19 UTC
x86 stable.

Maintainer(s), please cleanup.
Security, please vote.
Comment 5 Kristian Fiskerstrand (RETIRED) gentoo-dev 2014-09-13 17:18:05 UTC
(In reply to Agostino Sarubbo from comment #4)
> x86 stable.
> 
> Maintainer(s), please cleanup.
> Security, please vote.

Arches, thank you for your work. 

GLSA Vote: No
Comment 6 Chris Reffett (RETIRED) gentoo-dev Security 2014-09-14 18:29:36 UTC
GLSA vote: no. Maintainers, please clean up affected versions.
Comment 7 Yury German Gentoo Infrastructure gentoo-dev 2014-10-05 00:41:57 UTC
Maintainer(s): Ping on cleanup!
Comment 8 Yury German Gentoo Infrastructure gentoo-dev 2014-11-04 17:36:31 UTC
Arches and Maintainer(s), Thank you for your work.

No GLSA - Closing Bug as Resolved