Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 437778

Summary: gcc-config-1.7.3 and maybe previous versions called insecure ldconfig
Product: Gentoo Security Reporter: nobody <noreply>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED INVALID    
Severity: critical    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description nobody 2012-10-09 23:50:32 UTC
gcc-config called ldconfig without any path, giving ability for a user to add an ldconfig that root might run when using gcc-config.

grep ldconfig /usr/bin/gcc-config -n
325:			# If we previously had stuff in /, make sure ldconfig gets re-run.
481:			ldconfig

It should called /sbin/ldconfig


Reproducible: Always
Comment 1 SpanKY gentoo-dev 2012-10-10 00:25:38 UTC
no explanation as to how this could possibly be a problem.  you could make the same argument for cp, mv, touch, sed, env-update, or any other program.
Comment 2 nobody 2012-10-10 18:47:34 UTC
i assume if you make an ldconfig in a directory with +x the call for ldconfig might run that version instead of /sbin one.
i was wrong, something i should have try before.
sorry for the noise.