Stolen from: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=291376 Cdrtools has some code (and default configuration) that suggests users that want to debug its behaviour to open up a can of worms associate to insecure temporary files usage. The Debug file defined in the configuration will just be fopened() without any checks and is thus vulnerable to symlink attacks. The attached patch tries to fix this minor bug (not many users will really enabled DEBUG) by introducing a check in rscsi.c to avoid being vulnerable to symlink attacks and by modifying the provided config file telling users to use safe locations for debug files. The patch introduces a DoS condition (if somebody has created the file the program will exit) and that's why users are suggested (in the comments of the configuration file) to use a safe location (not /tmp) for debugging.
Created attachment 112423 [details] Proposed patch for this issue
This issue should also affect RHEL2.1 and RHEL3
Ping on this issue
WONTFIX until next real issue.