In the Linux kernel, the following vulnerability has been resolved: HID: hidpp: fix potential UAF in hidpp_connect_event() If input_register_device() fails, we call input_free_device(), but keep stale pointer to the old device in hidpp->input, which could potentially lead to UAF. Fix that by resetting it to NULL before returning from hidpp_connect_event().
https://git.kernel.org/stable/c/6df6b1f2c49678211f65647c300bc51dda02893b
https://git.kernel.org/stable/c/3b8b2e58b078cd30e121401535541bb8a6d57133
https://git.kernel.org/stable/c/3303398cc2aa255ba251650a30024e11d48ea6c3