A use-after-free vulnerability exists in the Linux kernel's media remote control (rc) subsystem in the function ir_raw_event_handle(). This occurs if rc_unregister_device() is called while an infrared (IR) event is being processed, potentially leading to a call to wake_up_process() on a stopped kernel thread. The issue is addressed by using get_task_struct() to avoid use-after-free conditions.