]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix SIGSEGV in eloop during shutdown
authorPriyansha Tiwari <pritiwa@qti.qualcomm.com>
Tue, 27 Jan 2026 11:52:09 +0000 (17:22 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 28 Jan 2026 10:33:25 +0000 (12:33 +0200)
commitae4fb3ffda1950426952e95eeed31abe63f873d6
tree1f372256b5eade5de0926605a6cd69936ea73989
parent6811ee5a5c61b4820728ce6defa3cf72968c75f6
Fix SIGSEGV in eloop during shutdown

eloop_destroy() frees the eloop.signals array but was not unregistering
the signal handlers. A signal received during shutdown could trigger
eloop_handle_signal(), accessing the freed memory and causing a crash
(Use-After-Free).

This fix unregisters all signals (resets to SIG_DFL) in eloop_destroy()
before freeing eloop.signals to ensure safe shutdown.

Signed-off-by: Priyansha Tiwari <pritiwa@qti.qualcomm.com>
src/utils/eloop.c