[PATCH 0/2] media: uvcvideo: Fix two bugs on the control change event path
From: Wei Jie Law
Date: Mon Sep 07 2026 - 02:33:21 EST
Two bugs on the UVC control change event path, both from e5225c820c05,
both in mainline and 6.12.y.
1/2 oopses on an event for an uninitialized XU control. 2/2 leaks heap
past the status buffer to userspace. They are independent.
2/2 reports zero for a mapping that does not fit, as the compound case
already does. Staging bValue into a zeroed buffer would give a truthful
value instead, if you prefer that. 6.12.y needs the same guard around
mapping->get().
Wei Jie Law (2):
media: uvcvideo: Fix NULL deref on events for uninitialized controls
media: uvcvideo: Fix out-of-bounds read in uvc_ctrl_status_event()
drivers/media/usb/uvc/uvc_ctrl.c | 20 +++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)
base-commit: a500db7819c50db59e55f1b4fa1c3baa5a2616f3
--
2.43.0