[CVE-2008-1633] unspecified vulnerability relating to use of /tmp

Bug #216601 reported by William Grant
260
Affects Status Importance Assigned to Milestone
mondo (Debian)
Fix Released
Unknown
mondo (Ubuntu)
Fix Released
Medium
Luca Falavigna
Dapper
Won't Fix
Undecided
Unassigned
Edgy
Won't Fix
Undecided
Unassigned
Feisty
Won't Fix
Undecided
Unassigned
Gutsy
Won't Fix
Undecided
Unassigned
Hardy
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: mondo

This appears to affect all releases.

CVE-2008-1633:
"Unspecified vulnerability in Mondo Rescue before 2.2.5 has unknown impact and attack vectors, related to the use of (1) /tmp and (2) MINDI_CACHE."

Tags: edgy-close

Related branches

CVE References

William Grant (wgrant)
Changed in mondo:
status: New → Confirmed
status: New → Confirmed
status: New → Confirmed
Changed in mondo:
status: Unknown → New
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

The 18 month support period for Edgy Eft 6.10 has reached it's end of life. As a result, we are closing the Edgy Eft task. However, please note that this report will remain open against the actively developed release. Thank you for your continued support and help as we debug this issue.

Changed in mondo:
status: New → Invalid
Changed in mondo:
status: New → Fix Released
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

2.24-2ubuntu1 uploaded for Intrepid.

Changed in mondo:
assignee: nobody → dktrkranz
importance: Undecided → Medium
status: Confirmed → Fix Committed
status: Confirmed → Won't Fix
status: Invalid → Won't Fix
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mondo - 2.24-2ubuntu1

---------------
mondo (2.24-2ubuntu1) intrepid; urgency=low

  * SECURITY UPDATE: fix errors related to the usage of /tmp or
    MINDI_CACHE instead of bkpinfo->tmpdir (LP: #216601).
  * References:
    - CVE-2008-1633
    - http://trac.mondorescue.org/browser/branches/2.2.5, revno 1644

 -- Luca Falavigna <email address hidden> Fri, 17 Oct 2008 00:03:44 +0200

Changed in mondo:
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

I've accepted this package into intrepid because there's no freeze justification for not doing so, but this is *not* a security fix:

[...]
- if (length_of_file(MINDI_CACHE"/changed.files") > 2) {
+
+ if (length_of_file("/tmp/changed.files") > 2) {
[...]

        system("rm -f /var/cache/mondo-archive/last-backup.aborted");
+ system("rm -Rf /tmp.mondo.* /mondo.scratch.*");
        if (!retval) {

[...]

                log_if_success = TRUE;
                log_if_failure = TRUE;
        }
- sprintf(callstr, "%s > %s/mondo-run-prog-thing.tmp 2> %s/mondo-run-prog-thing.err",
- program, g_mondo_tmpdir, g_mondo_tmpdir);
+ sprintf(callstr, "%s > /tmp/mondo-run-prog-thing.tmp 2> /tmp/mondo-run-prog-thing.err",
+ program);
        while ((p = strchr(callstr, '\r'))) {
                *p = ' ';
        }
[...]
                }

                printf("---FATALERROR--- %s\n", error_string);
+ sprintf(command, "gzip -9c %s > /tmp/MA.log.gz 2> /dev/null", MONDO_LOGFILE);
- sprintf(command, "gzip -9c %s > %s/MA.log.gz 2> /dev/null", MONDO_LOGFILE, MINDI_CACHE);
                system(command);
                printf
                                ("If you require technical support, please contact the mailing list.\n");
[...]

Using predictable filenames under /tmp is wrong, and at least some of these changes do *exactly* the wrong thing with /tmp.

Reopening the bug.

Changed in mondo:
status: Fix Released → Confirmed
Revision history for this message
Steve Beattie (sbeattie) wrote :

It looks like the issue in CVE-2008-1633 had been addressed in the previous upload (though not referenced) and that this upload is a reversion of the referenced upstream checkin at http://trac.mondorescue.org/changeset/1644/branches/2.2.5

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Indeed! My upload is totally broken and must be restored. And I need to figure out *why* I applied such a "fix". Thanks for catching up.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

I erroneously inverted commit numbers while at http://tinyurl.com/5fpvds and reverted the fix, I'm very sorry for my silly error :( I reverted my previous upload to fix it.

Changed in mondo:
importance: Undecided → Medium
status: Confirmed → Fix Released
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mondo - 2.24-2ubuntu2

---------------
mondo (2.24-2ubuntu2) intrepid; urgency=low

  * Revert my previous, broken upload and blame myself for reverting
    an already fixed package, this re-includes fix for CVE-2008-1633 and
    closes LP: #216601.

 -- Luca Falavigna <email address hidden> Fri, 17 Oct 2008 13:36:57 +0200

Changed in mondo:
status: Fix Committed → Fix Released
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

The 18 month support period for Gutsy Gibbon 7.10 has reached its end of life -
http://www.ubuntu.com/news/ubuntu-7.10-eol . As a result, we are closing the
Gutsy task.

Changed in mondo (Ubuntu Gutsy):
status: Confirmed → Won't Fix
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Thank you for reporting this bug to Ubuntu. dapper has reached EOL
(End of Life) and is no longer supported. As a result, this bug
against dapper is being marked "Won't Fix". Please see
https://wiki.ubuntu.com/Releases for currently supported Ubuntu
releases.

Please feel free to report any other bugs you may find.

Changed in mondo (Ubuntu Dapper):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.