{"id":"CVE-2023-53703","summary":"HID: amd_sfh: Fix for shift-out-of-bounds","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: amd_sfh: Fix for shift-out-of-bounds\n\nShift operation of 'exp' and 'shift' variables exceeds the maximum number\nof shift values in the u32 range leading to UBSAN shift-out-of-bounds.\n\n...\n[    6.120512] UBSAN: shift-out-of-bounds in drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c:149:50\n[    6.120598] shift exponent 104 is too large for 64-bit type 'long unsigned int'\n[    6.120659] CPU: 4 PID: 96 Comm: kworker/4:1 Not tainted 6.4.0amd_1-next-20230519-dirty #10\n[    6.120665] Hardware name: AMD Birman-PHX/Birman-PHX, BIOS SFH_with_HPD_SEN.FD 04/05/2023\n[    6.120667] Workqueue: events amd_sfh_work_buffer [amd_sfh]\n[    6.120687] Call Trace:\n[    6.120690]  \u003cTASK\u003e\n[    6.120694]  dump_stack_lvl+0x48/0x70\n[    6.120704]  dump_stack+0x10/0x20\n[    6.120707]  ubsan_epilogue+0x9/0x40\n[    6.120716]  __ubsan_handle_shift_out_of_bounds+0x10f/0x170\n[    6.120720]  ? psi_group_change+0x25f/0x4b0\n[    6.120729]  float_to_int.cold+0x18/0xba [amd_sfh]\n[    6.120739]  get_input_rep+0x57/0x340 [amd_sfh]\n[    6.120748]  ? __schedule+0xba7/0x1b60\n[    6.120756]  ? __pfx_get_input_rep+0x10/0x10 [amd_sfh]\n[    6.120764]  amd_sfh_work_buffer+0x91/0x180 [amd_sfh]\n[    6.120772]  process_one_work+0x229/0x430\n[    6.120780]  worker_thread+0x4a/0x3c0\n[    6.120784]  ? __pfx_worker_thread+0x10/0x10\n[    6.120788]  kthread+0xf7/0x130\n[    6.120792]  ? __pfx_kthread+0x10/0x10\n[    6.120795]  ret_from_fork+0x29/0x50\n[    6.120804]  \u003c/TASK\u003e\n...\n\nFix this by adding the condition to validate shift ranges.","modified":"2026-04-02T09:44:54.750309Z","published":"2025-10-22T13:23:41.450Z","related":["SUSE-SU-2025:21040-1","SUSE-SU-2025:21052-1","SUSE-SU-2025:21056-1","SUSE-SU-2025:21064-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4128-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4140-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4301-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53703.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1e50bc2c177d4b2953d77037ac46ea0702d6aa1f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5a45ed1ae34bb0e68944471f4bafb68e0a572791"},{"type":"WEB","url":"https://git.kernel.org/stable/c/87854366176403438d01f368b09de3ec2234e0f5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53703.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53703"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"93ce5e0231d79189be4d9e5f9295807b18941419"},{"fixed":"5a45ed1ae34bb0e68944471f4bafb68e0a572791"},{"fixed":"1e50bc2c177d4b2953d77037ac46ea0702d6aa1f"},{"fixed":"87854366176403438d01f368b09de3ec2234e0f5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53703.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.0.0"},{"fixed":"6.1.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.4.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53703.json"}}],"schema_version":"1.7.5"}