Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79725 - dev-lang/f2c-20030320: Multiple insecure temporary files in the f2c translator
Summary: dev-lang/f2c-20030320: Multiple insecure temporary files in the f2c translator
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo Security
URL: http://www.debian.org/security/2005/d...
Whiteboard: B3 [glsa]
Keywords:
: 77570 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-01-27 07:18 UTC by Sascha Silbe
Modified: 2005-01-30 10:54 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 Sascha Silbe 2005-01-27 07:18:14 UTC
Debian Security Advisory

DSA-661-1 f2c -- insecure temporary files

Date Reported:
    27 Jan 2005
Affected Packages:
    f2c
Vulnerable:
    Yes
Security database references:
    In Mitre's CVE dictionary: CAN-2005-0017, CAN-2005-0018.
More information:

    Javier Fernndez-Sanguino Pea from the Debian Security Audit project discovered that f2c and fc, which are both part of the f2c
    package, a fortran 77 to C/C++ translator, open temporary files insecurely and are hence vulnerable to a symlink attack. The Common
    Vulnerabilities and Exposures project identifies the following vulnerabilities:

      - CAN-2005-0017

        Multiple insecure temporary files in the f2c translator.

      - CAN-2005-0018

        Two insecure temporary files in the f2 shell script.

    For the stable distribution (woody) these problems have been fixed in version 20010821-3.1

    For the unstable distribution (sid) these problems will be fixed soon.

    We recommend that you upgrade your f2c package.



Reproducible: Always
Steps to Reproduce:
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2005-01-27 07:22:05 UTC
Danny, please commit the ebuild to portage.
Comment 2 Thierry Carrez (RETIRED) gentoo-dev 2005-01-27 07:23:28 UTC
*** Bug 77570 has been marked as a duplicate of this bug. ***
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2005-01-27 08:24:21 UTC
Ebuild commited and already marked stable on amd64, x86 and ppc.
Comment 4 Thierry Carrez (RETIRED) gentoo-dev 2005-01-27 08:35:56 UTC
sparc/Ferris: please confirm now that the ebuild is incvs
ppc64: please test and mark stable
Comment 5 Ferris McCormick (RETIRED) gentoo-dev 2005-01-27 08:50:11 UTC
Stable for sparc.  Tests OK.
Comment 6 Thierry Carrez (RETIRED) gentoo-dev 2005-01-28 02:31:15 UTC
GLSA vote... I don't see root using f2c that often, so I've mixed feelings.
Comment 7 Sascha Silbe 2005-01-28 03:29:10 UTC
I remember some package using it for compiling its Fortran sources. Probably was one of the dependancies of sci-geosciences/grass.
Comment 8 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-01-28 06:40:31 UTC
I vote for no GLSA on this one. Last time I checked BASC there were no installs at all.
Comment 9 Sascha Silbe 2005-01-28 06:51:53 UTC
What is BASC? How do you know nobody has installed f2c?

root@caravan:~# grep f2c /var/log/emerge.log |grep completed
1100311820:  ::: completed emerge (1 of 8) dev-libs/libf2c-20021004-r1 to /
1100311875:  ::: completed emerge (2 of 8) dev-lang/f2c-20030320 to /
root@caravan:~# 

I've recently switched over to gcc's Fortran compiler, but how can you be sure everybody else has?

Comment 10 Philippe Trottier (RETIRED) gentoo-dev 2005-01-28 07:20:05 UTC
Many scientist do use f2c even today because of very old and well working code from the 60's !!!
Comment 11 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-01-28 07:22:18 UTC
BASC aka http://www.gentoo-stats.org/

Actually some systems use it now. Security please cast your vote.
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-28 08:05:42 UTC
f2c is commonly used by root when compiling some fortran packages in app-sci that require it (e.g., ghemical) or optionally using it for fortran source (anything in fortran, basically, can use f2c + cc instead of g77 or whatever else).

Speaking of, is this vulnerability also present in libf2c?
Comment 13 Thierry Carrez (RETIRED) gentoo-dev 2005-01-28 08:42:07 UTC
I tend to vote YES on tmpfile vuln in packages that must/makesense being used by root, and ebuilds may even automate the task, so I vote YES.
Comment 14 Danny van Dyk (RETIRED) gentoo-dev 2005-01-28 08:52:20 UTC
I vote for a GLSA, too.
Comment 15 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-01-28 08:54:55 UTC
OK, good arguments. 
Comment 16 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-01-28 09:05:51 UTC
wrt libf2c it does not seem to include f2c and fc. However I'm no f2c expert.
Comment 17 Thierry Carrez (RETIRED) gentoo-dev 2005-01-29 01:32:00 UTC
This still needs ppc64 stable marking.
Comment 18 Markus Rothe (RETIRED) gentoo-dev 2005-01-29 02:07:49 UTC
sorry, bug #79884 avoids me from marking stable. new f2c itself seems to be stable.  Markus
Comment 19 Thierry Carrez (RETIRED) gentoo-dev 2005-01-29 02:57:49 UTC
We need the keyword in.
Danny: could you put "ppc64" in KEYWORDS for corsair ? Would do it but I still need to get commit access :)
Comment 20 Markus Rothe (RETIRED) gentoo-dev 2005-01-29 03:17:05 UTC
nigoro marked stable for me.

so now it is stable on ppc64
Comment 21 Thierry Carrez (RETIRED) gentoo-dev 2005-01-30 10:54:43 UTC
GLSA 200501-43