]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vt: add permission check for KDSKBMETA ioctl
authorJoshua Rogers <linux@joshua.hu>
Fri, 31 Jul 2026 07:56:17 +0000 (09:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2026 14:31:14 +0000 (16:31 +0200)
commita7ad0034453ba4c353f9b8f810ee2569de33d283
treedab6d20c68cd68a6bdb969362d2a1163f05f96b9
parente25d47a526939ad44b75f778b8a7500562b84fc1
vt: add permission check for KDSKBMETA ioctl

KDSKBMETA modifies keyboard meta mode but lacks the !perm check that all
other keyboard setter ioctls in vt_k_ioctl() enforce, allowing a process
to change meta mode on a non-controlling console without authorization.

Assisted-by: AISLE:Snapshot
Cc: stable <stable@kernel.org>
Signed-off-by: Joshua Rogers <linux@joshua.hu>
Link: https://patch.msgid.link/20260731-tty-vt-stuff-v1-2-be99b9da8e30@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt_ioctl.c