summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDeepanshu Kartikey <kartikey406@gmail.com>2026-08-16 14:22:34 +0530
committerRuben Wauters <rubenru09@aol.com>2026-08-23 16:36:36 +0100
commit500cb24cd61bad8a2747ddfc49b7034899c82d94 (patch)
tree9ecf78759f8042b9249f8a27600088734587b290 /include
parent511585987d27d8cb668acebd399fc4deda23404c (diff)
downloadlinux-500cb24cd61bad8a2747ddfc49b7034899c82d94.tar.gz
linux-500cb24cd61bad8a2747ddfc49b7034899c82d94.zip
drm/gud: NUL-terminate TV mode names read from the device
gud_connector_add_tv_mode() reads a buffer of fixed-size mode names from the USB device and passes pointers into it to drm_mode_create_tv_properties_legacy(), which calls strlen() on each one. Nothing guarantees the device NUL-terminates a name, so strlen() can run past the end of a slot and, for the last mode, past the end of the allocation. Terminate each name at the end of its slot before use. Fixes: 40e1a70b4aed ("drm: Add GUD USB Display driver") Reported-by: syzbot+916c888ba5f1a54c9526@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=916c888ba5f1a54c9526 Tested-by: syzbot+916c888ba5f1a54c9526@syzkaller.appspotmail.com Signed-off-by: Deepanshu Kartikey <kartikey406@gmail.com> Acked-by: Ruben Wauters <rubenru09@aol.com> Cc: <stable@vger.kernel.org> Signed-off-by: Ruben Wauters <rubenru09@aol.com> Link: https://patch.msgid.link/20260816085234.22053-1-kartikey406@gmail.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions