RHBA-2018:0401

Type: Bug fix
Severity: None
Published: 2018-03-06
Red Hat Enterprise Linux 7

The libtevent packages provide Tevent, an event system based on the talloc memory management library. Tevent supports many event types, including timers, signals, and the classic file descriptor events. Tevent also provides helpers to deal with asynchronous code represented by the tevent_req() (Tevent Request) functions. This update fixes the following bug: * Previously, the tevent_common_wakeup_fd(tctx->wakeup_fd), internal function of the libtevent library was called when a race condition in the tevent threaded code occurred. Here the wakeup_fd was used without the mutex lock and the tctx could be deleted by another thread. Reused memory might point to the wakeup_fd value that matches to a file descriptor in use by the smbd to write to an on-disk file. As a consequence, libtevent corrupted a file on the disk. With this update, wakeup_fd is saved in a local variable before the mutex is released, so that it always holds the expected file descriptor. As a result, the described problem no longer occurs. (BZ#1513984) Users of libtevent are advised to upgrade to these updated packages, which fix this bug.

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-27T23:03:15.203Z UTC

Official vendor advisory

Red Hat Enterprise Linux 7

View source
Observed 2026-11-27T23:03:15.203Z UTC. Last updated 2026-10-07T10:08:37.311Z UTC.

Upstream Advisory

Affected Packages

  • libtevent 0.9.31-2.el7_4

  • libtevent-devel 0.9.31-2.el7_4

  • python-tevent 0.9.31-2.el7_4

Interested in being alerted when there are new versions of libtevent and the other packages? Set up an alert.
RHBA-2018:0401: libtevent bug fix update | Package Alert