Bug 258161 - Use-after-free bug in fenced
Use-after-free bug in fenced
Status: CLOSED ERRATA
Product: Red Hat Cluster Suite
Classification: Red Hat
Component: fence (Show other bugs)
4
All All
medium Severity low
: ---
: ---
Assigned To: Jim Parsons
Cluster QE
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-27 17:12 EDT by Lon Hohberger
Modified: 2009-04-16 16:12 EDT (History)
4 users (show)

See Also:
Fixed In Version: RHBA-2007-0996
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-11-21 16:54:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Lon Hohberger 2007-08-27 17:12:13 EDT
+++ This bug was initially created as a clone of Bug #258141 +++

Description of problem:

                if (!error) {
                        list_del(&node->list);
                        free(node);
                        /* XXXXXXXXXX There should be a continue here */
                }

                if (!comline.override_path) {
                        sleep(5);
                        continue;
                }

                /* Check for manual intervention */
                override = open_override(comline.override_path);

                if (check_override(override, node->name, 5) > 0) {
                        syslog(LOG_WARNING, "fence \"%s\" overridden by "
                               "administrator intervention", node->name);

                        list_del(&node->list);
                        free(node);
                }
                close_override(&override, comline.override_path);
        }

Version          : 5.1 beta
Reproducibility  : 100%
Actual results   : Use-after-free could potentially cause a crash in fenced
Expected results : No crash
Additional info  : Unclear whether this has caused actual problems.

-- Additional comment from lhh@redhat.com on 2007-08-27 17:10 EST --
Created an attachment (id=174421)
Fix - 1line
Comment 2 Jim Parsons 2007-09-12 16:23:59 EDT
Applied.
Comment 5 errata-xmlrpc 2007-11-21 16:54:44 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0996.html

Note You need to log in before you can comment on or make changes to this bug.