Dmitry Torokhov
462a999917
Input: ims-pcu - fix use-after-free and double-free in disconnect
...
ims_pcu_disconnect() only intended to perform cleanup when the primary
(control) interface is unbound. However, it currently relies on the
interface class to distinguish between control and data interfaces.
A malicious device could present a data interface with the same class
as the control interface, leading to premature cleanup and potential
use-after-free or double-free.
Switch to verifying that the interface being disconnected is indeed
the control interface.
Fixes: 628329d524 ("Input: add IMS Passenger Control Unit driver")
Cc: stable@vger.kernel.org
Reported-by: Sashiko bot <sashiko-bot@kernel.org >
Assisted-by: Gemini:gemini-3.1-pro
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2026-06-06 21:00:06 -07:00
..
2026-02-21 17:09:51 -08:00
2023-01-09 20:25:20 -08:00
2024-06-28 15:41:20 +01:00
2020-11-08 22:27:54 -08:00
2026-05-30 22:10:47 -07:00
2023-01-27 14:49:52 -08:00
2025-08-21 12:00:59 -07:00
2023-01-27 14:49:52 -08:00
2026-05-30 22:10:47 -07:00
2024-06-11 11:17:44 -07:00
2025-08-21 12:00:59 -07:00
2024-06-11 11:17:44 -07:00
2026-05-30 22:10:47 -07:00
2021-10-01 21:24:14 -07:00
2025-11-17 00:14:19 +00:00
2021-03-10 11:10:30 +00:00
2026-02-21 17:09:51 -08:00
2026-06-06 14:05:30 -07:00
2026-05-30 22:10:47 -07:00
2026-04-01 09:08:33 -07:00
2023-09-30 09:35:31 -07:00
2026-05-30 22:10:47 -07:00
2026-02-21 17:09:51 -08:00
2026-05-30 22:10:47 -07:00
2026-02-21 17:09:51 -08:00
2023-07-05 14:50:00 -07:00
2026-02-21 17:09:51 -08:00
2026-05-30 22:10:47 -07:00
2026-02-21 17:09:51 -08:00
2024-10-15 11:43:25 -07:00
2024-01-04 12:02:20 -08:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2026-05-30 22:10:47 -07:00
2023-01-09 20:25:21 -08:00
2026-01-21 12:22:43 -08:00
2025-06-17 14:12:32 -07:00
2023-07-17 10:03:07 -07:00
2025-05-10 22:26:33 -07:00
2023-02-21 13:57:40 -08:00
2024-10-03 09:10:36 -07:00
2025-01-15 16:26:39 +02:00
2026-06-06 21:00:06 -07:00
2024-10-03 09:10:37 -07:00
2025-06-03 21:39:35 -07:00
2025-09-04 05:26:09 -07:00
2026-04-30 21:32:50 -07:00
2026-03-30 16:54:41 -07:00
2026-05-30 22:10:47 -07:00
2024-10-15 11:43:25 -07:00
2026-04-30 21:32:50 -07:00
2025-09-16 15:24:48 +01:00
2023-01-09 20:25:21 -08:00
2026-02-21 17:09:51 -08:00
2025-08-03 23:12:09 -07:00
2026-02-21 17:09:51 -08:00
2026-05-30 22:10:47 -07:00
2025-06-08 09:07:37 +02:00
2026-02-21 17:09:51 -08:00
2026-05-30 22:10:47 -07:00
2024-10-15 11:43:25 -07:00
2025-12-13 01:34:39 -08:00
2024-04-17 15:27:12 -07:00
2025-09-24 22:43:07 -07:00
2023-07-17 10:03:07 -07:00
2026-02-21 17:09:51 -08:00
2024-10-03 09:10:37 -07:00
2023-12-20 16:07:04 +01:00
2025-10-17 21:42:03 -07:00
2026-04-13 15:41:56 +02:00
2025-01-14 13:41:41 -08:00
2022-08-22 16:59:49 -07:00
2024-10-03 09:10:38 -07:00
2022-08-31 15:48:49 -07:00
2020-12-11 19:00:21 -08:00
2024-06-09 14:38:48 -07:00
2024-10-15 11:43:25 -07:00
2025-04-18 18:38:46 -07:00
2023-01-09 20:25:23 -08:00
2025-09-03 11:28:07 +01:00
2022-06-10 14:51:36 +02:00
2024-10-15 11:43:25 -07:00
2026-01-07 21:54:29 -08:00
2024-10-19 21:21:40 -07:00
2024-10-19 21:21:39 -07:00
2026-04-19 18:28:57 -07:00
2024-11-25 10:31:39 -08:00
2024-10-15 11:43:25 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00