Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437778 - gcc-config-1.7.3 and maybe previous versions called insecure ldconfig
Summary: gcc-config-1.7.3 and maybe previous versions called insecure ldconfig
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal critical (vote)
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-09 23:50 UTC by nobody
Modified: 2012-10-10 18:47 UTC (History)
0 users

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 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.