Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332511 (CVE-2010-1519) - <media-libs/glpng-1.46-r1: Integer Overflow Vulnerabilities (CVE-2010-1519)
Summary: <media-libs/glpng-1.46-r1: Integer Overflow Vulnerabilities (CVE-2010-1519)
Status: RESOLVED FIXED
Alias: CVE-2010-1519
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL:
Whiteboard: B3 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-12 19:09 UTC by Tim Sammut (RETIRED)
Modified: 2015-12-31 06:20 UTC (History)
1 user (show)

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


Attachments
glpng-1.46.ebuild (glpng-1.46.ebuild,615 bytes, text/plain)
2014-06-08 21:55 UTC, James Le Cuirot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Sammut (RETIRED) gentoo-dev 2010-08-12 19:09:49 UTC
From: http://secunia.com/secunia_research/2010-87/

1) An integer overflow error within the "pngLoadRawF()" function in glpng.c can be exploited to cause a heap-based buffer overflow by e.g. tricking a user into opening a specially crafted PNG file in an application using the library.

2) An integer overflow error within the "pngLoadF()" function in glpng.c can be exploited to cause a heap-based buffer overflow by e.g. tricking a user into opening a specially crafted PNG file in an application using the library.

The vulnerabilities are confirmed in version 1.45. Other versions may also be affected.
Comment 1 Stefan Behte (RETIRED) gentoo-dev Security 2010-09-01 20:05:51 UTC
CVE-2010-1519 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2010-1519):
  Multiple integer overflows in glpng.c in glpng 1.45 allow
  context-dependent attackers to execute arbitrary code via a crafted
  PNG image, related to (1) the pngLoadRawF function and (2) the
  pngLoadF function, leading to heap-based buffer overflows.

Comment 2 Chris Reffett (RETIRED) gentoo-dev Security 2013-09-03 18:34:47 UTC
No fix available upstream, secunia says "use another library". p.mask it? The only reverse dep is chromium-bsu.
Comment 3 James Le Cuirot gentoo-dev 2014-05-27 22:26:06 UTC
Aquaria also uses this and packages to build this from source are in the works. We have the HOMEPAGE listed as http://www.fifi.org/doc/libglpng-dev/glpng.html but I don't think this was ever really its home. Tons of other software is listed there. Upstream is now http://repo.or.cz/w/glpng.git and I have already prepared additional patches to send to the freedesktop.org games list. Fedora patched the issue here.

https://lists.fedoraproject.org/pipermail/scm-commits/2010-September/490376.html

I will add this patch to my list.
Comment 4 James Le Cuirot gentoo-dev 2014-06-08 21:55:17 UTC
Created attachment 378534 [details]
glpng-1.46.ebuild

I was given commit access to the above repository and have released 1.46 with all the fixes. Here is a revised ebuild that is simpler, doesn't need a patch, and supports multilib.
Comment 5 Sean Amoss (RETIRED) gentoo-dev Security 2014-08-10 19:14:37 UTC
@games, please bump to the fixed version. Thank you
Comment 6 James Le Cuirot gentoo-dev 2014-08-12 09:28:22 UTC
I am in the process of becoming a Gentoo developer and would be happy to become a maintainer for this package if it helps.
Comment 7 Yury German Gentoo Infrastructure gentoo-dev 2014-08-17 05:03:10 UTC
(In reply to James Le Cuirot from comment #6)
> I am in the process of becoming a Gentoo developer and would be happy to
> become a maintainer for this package if it helps.

James, for now you can become a proxy maintainer if you would like. To do that contact the proxy maintainer team. You can do that before becoming a full developer.
Comment 8 James Le Cuirot gentoo-dev 2014-08-17 09:14:03 UTC
I doubt anything is going to happen to glpng between now and then so I might as well wait. I've just about done the end quiz so hopefully not too much longer now.
Comment 9 James Le Cuirot gentoo-dev 2015-03-24 23:24:58 UTC
I am now a dev and have bumped the tree version to 1.46. The old version remains because of the stable keywords. Security team, please advise.
Comment 10 James Le Cuirot gentoo-dev 2015-05-02 20:04:28 UTC
I don't like to ping bug reports but this is a CVE and I've done the work so...
Comment 11 James Le Cuirot gentoo-dev 2015-08-24 22:05:46 UTC
Time up! I'll take this into my own hands.

Arch teams, please stabilize on amd64, ppc, x86:
media-libs/glpng-1.46-r1
Comment 12 Agostino Sarubbo gentoo-dev 2015-08-25 07:09:29 UTC
amd64 stable
Comment 13 Agostino Sarubbo gentoo-dev 2015-08-25 07:10:08 UTC
x86 stable
Comment 14 Agostino Sarubbo gentoo-dev 2015-08-26 07:31:05 UTC
ppc stable.

Maintainer(s), please cleanup.
Security, please add it to the existing request, or file a new one.
Comment 15 James Le Cuirot gentoo-dev 2015-08-26 08:34:19 UTC
Thanks! Old removed. Security, please continue.
Comment 16 Stefan Behte (RETIRED) gentoo-dev Security 2015-11-09 21:43:26 UTC
Vote: no.
Comment 17 Yury German Gentoo Infrastructure gentoo-dev 2015-12-31 04:32:08 UTC
GLSA Vote: No

Thank you all. Closing as noglsa.