Bug 1227968 (CVE-2022-48804)

Summary: VUL-0: CVE-2022-48804: kernel: vt_ioctl: fix array_index_nospec in vt_setactivate
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Kernel Bugs <kernel-bugs>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Major    
Priority: P3 - Medium CC: camila.matos
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/414195/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-48804:4.7:(AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-07-16 17:36:33 UTC
In the Linux kernel, the following vulnerability has been resolved:

vt_ioctl: fix array_index_nospec in vt_setactivate

array_index_nospec ensures that an out-of-bounds value is set to zero
on the transient path. Decreasing the value by one afterwards causes
a transient integer underflow. vsa.console should be decreased first
and then sanitized with array_index_nospec.

Kasper Acknowledgements: Jakob Koschel, Brian Johannesmeyer, Kaveh
Razavi, Herbert Bos, Cristiano Giuffrida from the VUSec group at VU
Amsterdam.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-48804
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2022/CVE-2022-48804.mbox
https://git.kernel.org/stable/c/830c5aa302ec16b4ee641aec769462c37f802c90
https://git.kernel.org/stable/c/2a45a6bd1e6d651770aafff57ab3e1d3bb0b42e0
https://git.kernel.org/stable/c/170325aba4608bde3e7d21c9c19b7bc266ac0885
https://git.kernel.org/stable/c/ae3d57411562260ee3f4fd5e875f410002341104
https://git.kernel.org/stable/c/778302ca09498b448620edd372dc908bebf80bdf
https://git.kernel.org/stable/c/ffe54289b02e9c732d6f04c8ebbe3b2d90d32118
https://git.kernel.org/stable/c/6550bdf52846f85a2a3726a5aa0c7c4399f2fc02
https://git.kernel.org/stable/c/61cc70d9e8ef5b042d4ed87994d20100ec8896d9
https://www.cve.org/CVERecord?id=CVE-2022-48804