Bug 106105 - sys-apps/texinfo: Insecure temporary file creation (CAN-2005-3011)
|
Bug#:
106105
|
Product: Gentoo Security
|
Version: unspecified
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: security@gentoo.org
|
Reported By: jaervosz@gentoo.org
|
|
Component: Vulnerabilities
|
|
|
URL:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=328365
|
|
Summary: sys-apps/texinfo: Insecure temporary file creation (CAN-2005-3011)
|
|
Keywords:
|
|
Status Whiteboard: A3 [glsa]
|
|
Opened: 2005-09-15 13:43 0000
|
Not sure wether this affects our version:
There is a race condition on creating temporary files in texindex.
I checked, our 4.8 is affected.
base-system please advise...
Looks sane to me, but I may miss something (esp. in my current state), better
ask TheTavis to have a look.
Does the patch work?
I havnt looked at texinfo code but if i'm reading it correctly, it passes
mkstemp a char* that ends with .123, iirc mkstemp expects it to end with XXX...
Does that new fd get released anywhere? otherwise this patch adds an fd leak.
indeed, that mkstemp should be changed to open() like in bsd
Yep, patch looks good to me.
texinfo-4.8-r1 now in portage then
Let the race begin, test and mark stable...
Looks fine on alpha, marked stable.
Cheers,
Ferdy
GLSA 200510-04
arm and s390 should mark stable to benefit from GLSA
Apparently our patch sucks, SpanKY please see bug 108416 for details.