Bug 1663929 - monit: Use-after-free in function _handleEvent()
Summary: monit: Use-after-free in function _handleEvent()
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1663930 1663931
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-07 10:21 UTC by Andrej Nemec
Modified: 2019-09-29 15:04 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-06-10 10:44:45 UTC
Embargoed:


Attachments (Terms of Use)

Description Andrej Nemec 2019-01-07 10:21:37 UTC
Monit may crash if "unmonitor" or "stop" action was triggered by some test: the _handleAction() will call Util_monitorUnset() which frees the service events list, including the current event which triggered the action. The reset of the state_change flag (which is not necessary) then dereferenced a freed event.

References:

https://bitbucket.org/tildeslash/monit/issues/764/use-after-free-in-function-_handleevent
https://seclists.org/oss-sec/2018/q4/274

Upstream patch:

https://bitbucket.org/tildeslash/monit/commits/5827927c4623

Comment 1 Andrej Nemec 2019-01-07 10:21:47 UTC
Created monit tracking bugs for this issue:

Affects: epel-all [bug 1663931]
Affects: fedora-all [bug 1663930]

Comment 2 Product Security DevOps Team 2019-06-10 10:44:45 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


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