Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335772 - sys-auth/libnss-mysql-1.5_p20060915 always compiled in debug mode (CVE-2010-1483)
Summary: sys-auth/libnss-mysql-1.5_p20060915 always compiled in debug mode (CVE-2010-1...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 10:59 UTC by sebastian
Modified: 2010-09-09 22:25 UTC (History)
2 users (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 sebastian 2010-09-03 10:59:27 UTC
sys-auth/libnss-mysql-1.5_p20060915 seems to be always compiled in debug mode ignoring the USE flag. Because of the debug mode a file /tmp/libnss-mysql-debug.log is created that grows and grows.

The problem is either in the ebuild or in the configure script. I created my own ebuild and renamed the #define DEBUG switches in the sources and the problem is gone.

Reproducible: Always

Steps to Reproduce:
Run USE="-debug" ebuild /usr/portage/sys-auth/libnss-mysql/libnss-mysql-1_p20060915.ebuild clean configure
Actual Results:  
/var/tmp/portage/sys-auth/libnss-mysql-1.5_p20060915/work/libnss-mysql contains:

#define DEBUG 1

Expected Results:  
config.h must not define DEBUG.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-09-08 18:21:02 UTC
hanno: I've fixed this now. Patch to configure.in for correct AC_ARG_ENABLE usage.

security:
The debug file (/tmp/libnss-mysql-debug.log) that was being created has information leak implications (specifically leaking /etc/shadow hashes). The upstream DEBUGGING file has explicit warnings about it. This problem did NOT affect the stable 1.5, just the ~arch 
1.5_p20060915 version. GLSA worthy or not?
Comment 2 Hanno Böck gentoo-dev 2010-09-09 15:40:12 UTC
I think this is glsa-worthy and also I'll assing CVE-2010-1483 from my personal pool to it (I'll write a non-gentoo-specific advisory to the common security lists to make this public).
I'll also try to contact the author if he can apply robbat2's patch and make a new snapshot although it seems to be a dead project.
Comment 3 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-09-09 15:59:44 UTC
(In reply to comment #1)
> security:
> The debug file (/tmp/libnss-mysql-debug.log) that was being created has
> information leak implications (specifically leaking /etc/shadow hashes). The
> upstream DEBUGGING file has explicit warnings about it. This problem did NOT
> affect the stable 1.5, just the ~arch 
> 1.5_p20060915 version. GLSA worthy or not?
> 

It might be worthy, but we don't cover ~arch with advisories.
Comment 4 Hanno Böck gentoo-dev 2010-09-09 22:25:53 UTC
Ok, checked, 1.5 is not affected, so we're done here. I've informed upstream and asked for a new version, but I doubt he will reply (development stopped somewhere in 2006).