[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
Here is Ubuntu's page for this CVE, showing which of their kernel versions they have backported my fix into: https://ubuntu.com/security/CVE-2026-80574 My laptop running Ubuntu 26.04 LTS upgraded to kernel 7.0.0-42 today, which does indeed seem to be fixed, whereas previously I ran 7.0.0-38 which still had the bug. Looking at the Ubuntu kernel sources, I believe this was actually fixed in Ubuntu kernels 7.0.0-39 and higher, but 7.0.0-42 is the first of those to released beyond "Proposed". ** CVE added: https://cve.org/CVERecord?id=CVE-2026-80574 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
Thank you, Richard. we appreciate your efforts so much. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
Thank you. It is sad that Ubuntu doesn't follow the LTS kernels. Hopefully Ubuntu team will backport this. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
My fix has now been backported into the upstream stable/longterm kernels 7.1.10, 6.18.46, 6.12.105, 6.6.153, 6.1.184, 5.15.217 and 5.10.266. I suggest that Ubuntu backports this patch into your kernels. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
I have fixed this bug with the following commit, which was merged into Linux kernel 7.2 (and cc: stable for backporting) https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=296736076b3fd078742651c719555a488624023a I suggest that Ubuntu backports this patch into your kernels. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: linux (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
Hi, All. I've faced exactly with the same behaviour. And hardware is Asus as well. uname -a Linux E402MA 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 2026-02-23T21:46:56.583079+02:00 E402MA kernel: [ cut here ] 2026-02-23T21:46:56.583086+02:00 E402MA kernel: UBSAN: array-index-out-of-bounds in /build/linux-ylyFjh/linux-6.8.0/drivers/input/mouse/focaltech.c:222:17 2026-02-23T21:46:56.583093+02:00 E402MA kernel: index -1 is out of range for type 'focaltech_finger_state [5]' 2026-02-23T21:46:56.583502+02:00 E402MA kernel: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.8.0-100-generic #100-Ubuntu 2026-02-23T21:46:56.583519+02:00 E402MA kernel: Hardware name: ASUSTeK COMPUTER INC. E402MA/E402MA, BIOS E402MA.207 01/28/2016 2026-02-23T21:46:56.583528+02:00 E402MA kernel: Call Trace: 2026-02-23T21:46:56.583535+02:00 E402MA kernel: 2026-02-23T21:46:56.583543+02:00 E402MA kernel: dump_stack_lvl+0x76/0xa0 2026-02-23T21:46:56.583551+02:00 E402MA kernel: dump_stack+0x10/0x20 2026-02-23T21:46:56.583559+02:00 E402MA kernel: __ubsan_handle_out_of_bounds+0xc6/0x110 2026-02-23T21:46:56.583568+02:00 E402MA kernel: focaltech_process_packet+0x3f8/0x400 [psmouse] 2026-02-23T21:46:56.583575+02:00 E402MA kernel: focaltech_process_byte+0x23/0x30 [psmouse] 2026-02-23T21:46:56.583636+02:00 E402MA kernel: psmouse_handle_byte+0x19/0x130 [psmouse] 2026-02-23T21:46:56.583650+02:00 E402MA kernel: psmouse_receive_byte+0x91/0x300 [psmouse] 2026-02-23T21:46:56.583659+02:00 E402MA kernel: ps2_interrupt+0xb7/0x1b0 2026-02-23T21:46:56.583667+02:00 E402MA kernel: serio_interrupt+0x4c/0xa0 2026-02-23T21:46:56.583675+02:00 E402MA kernel: i8042_interrupt+0x196/0x4c0 2026-02-23T21:46:56.583682+02:00 E402MA kernel: __handle_irq_event_percpu+0x4f/0x1b0 2026-02-23T21:46:56.583690+02:00 E402MA kernel: handle_irq_event+0x39/0x80 2026-02-23T21:46:56.583697+02:00 E402MA kernel: handle_edge_irq+0x8c/0x250 2026-02-23T21:46:56.583705+02:00 E402MA kernel: __common_interrupt+0x51/0xf0 2026-02-23T21:46:56.583712+02:00 E402MA kernel: common_interrupt+0x9f/0xb0 2026-02-23T21:46:56.583720+02:00 E402MA kernel: 2026-02-23T21:46:56.583727+02:00 E402MA kernel: 2026-02-23T21:46:56.583734+02:00 E402MA kernel: asm_common_interrupt+0x27/0x40 2026-02-23T21:46:56.583741+02:00 E402MA kernel: RIP: 0010:cpuidle_enter_state+0xda/0x730 2026-02-23T21:46:56.583749+02:00 E402MA kernel: Code: b5 f4 fe e8 38 ef ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 46 44 f3 fe 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0 f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00 2026-02-23T21 ... Now I've disabled internal pointing device in BIOS. Working via x2x. Regards, Max -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
> Did you change something with regard to this bug in 5.15.0-156 or 6.8.0-84 that would justify that I check again in such a short timeframe? It's the computer of a friend and I won't have access to it to check in the near future. Would you please still consider looking at this? No we haven't changed anything for this bug specifically. But those are the latest versions we have (and was released recently). Jammy version especially has a lot of updates. Kind regards. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
Hello Le jeudi 25 septembre 2025, 08:59:26 CEST Mehmet Basaran a écrit : > Hello, > > Thanks for submitting this bug. Did this happen after an update? What > was the last version working for you for both series? > > If I am not mistaken we don't have 6.8.0-83 for noble? We have released > 6.8.0-84 version recently. Can you update you system and try with the > latest version. > > For jammy we do have 5.15.0-153, but this seems outdated as well. We now > have 5.15.0-156, can you update jammy and try again as well? This has been here for ages according to system logs. I can't say for the last working version but it was in the logs since its oldest content and I don't remember when it was. Probably monthes ago, even years maybe. I wouldn't be surprised if that had always been there. After all, 5.15 was released in 2021... It is present in jammy which had 5.15.0-153 as latest version when I created this bug report (5 days ago). Then I made a copy of the system to try an upgrade to noble, and the error was there too. Again, at the time of writing this it had the latest kernel 6.8.0-83. For now the system is still on jammy until migration to noble is made for real. Did you change something with regard to this bug in 5.15.0-156 or 6.8.0-84 that would justify that I check again in such a short timeframe? It's the computer of a friend and I won't have access to it to check in the near future. Would you please still consider looking at this? If I look at the kernel, there hasn't been any change in the file that is mentionned in the error for many months now... So I doubt something would have changed in 5 days. Regards -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
Hello, Thanks for submitting this bug. Did this happen after an update? What was the last version working for you for both series? If I am not mistaken we don't have 6.8.0-83 for noble? We have released 6.8.0-84 version recently. Can you update you system and try with the latest version. For jammy we do have 5.15.0-153, but this seems outdated as well. We now have 5.15.0-156, can you update jammy and try again as well? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
** Tags added: kernel-daily-bug -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
** Description changed: I'm facing this error in the journal. It likely still happens in a recent kernel since I haven't seen any change in the problematic piece of code drivers/input/mouse/focaltech.c This is on noble (6.8.0-83-generic #83-Ubuntu) sept. 19 14:35:03 Albert2 kernel: [ cut here ] sept. 19 14:35:03 Albert2 kernel: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 sept. 19 14:35:03 Albert2 kernel: index -1 is out of range for type 'focaltech_finger_state [5]' sept. 19 14:35:03 Albert2 kernel: CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.8.0-83-generic #83-Ubuntu sept. 19 14:35:03 Albert2 kernel: Hardware name: ASUSTeK COMPUTER INC. UX303LNB/UX303LNB, BIOS UX303LNB.206 01/22/2015 sept. 19 14:35:03 Albert2 kernel: Call Trace: sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: dump_stack_lvl+0x76/0xa0 sept. 19 14:35:03 Albert2 kernel: dump_stack+0x10/0x20 sept. 19 14:35:03 Albert2 kernel: __ubsan_handle_out_of_bounds+0xc6/0x110 sept. 19 14:35:03 Albert2 kernel: focaltech_process_packet+0x3d0/0x400 [psmouse] sept. 19 14:35:03 Albert2 kernel: focaltech_process_byte+0x23/0x30 [psmouse] sept. 19 14:35:03 Albert2 kernel: psmouse_handle_byte+0x19/0x130 [psmouse] sept. 19 14:35:03 Albert2 kernel: psmouse_receive_byte+0x91/0x300 [psmouse] sept. 19 14:35:03 Albert2 kernel: ps2_interrupt+0xb7/0x1b0 sept. 19 14:35:03 Albert2 kernel: serio_interrupt+0x4c/0xa0 sept. 19 14:35:03 Albert2 kernel: i8042_interrupt+0x196/0x4c0 sept. 19 14:35:03 Albert2 kernel: __handle_irq_event_percpu+0x4f/0x1b0 sept. 19 14:35:03 Albert2 kernel: handle_irq_event+0x39/0x80 sept. 19 14:35:03 Albert2 kernel: handle_edge_irq+0x8c/0x250 sept. 19 14:35:03 Albert2 kernel: __common_interrupt+0x51/0xf0 sept. 19 14:35:03 Albert2 kernel: common_interrupt+0x9f/0xb0 sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: asm_common_interrupt+0x27/0x40 sept. 19 14:35:03 Albert2 kernel: RIP: 0010:cpuidle_enter_state+0xda/0x730 sept. 19 14:35:03 Albert2 kernel: Code: 05 f5 fe e8 38 ee ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 36 94 f3 fe 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00 sept. 19 14:35:03 Albert2 kernel: RSP: 0018:bf28c00f3e18 EFLAGS: 0246 sept. 19 14:35:03 Albert2 kernel: RAX: RBX: 97dce6d55a60 RCX: sept. 19 14:35:03 Albert2 kernel: RDX: 0002 RSI: RDI: sept. 19 14:35:03 Albert2 kernel: RBP: bf28c00f3e68 R08: R09: sept. 19 14:35:03 Albert2 kernel: R10: R11: R12: 928e68a0 sept. 19 14:35:03 Albert2 kernel: R13: 0008 R14: 0008 R15: 001f22eb3ce7 sept. 19 14:35:03 Albert2 kernel: ? cpuidle_enter_state+0xca/0x730 sept. 19 14:35:03 Albert2 kernel: cpuidle_enter+0x2e/0x50 sept. 19 14:35:03 Albert2 kernel: call_cpuidle+0x23/0x60 sept. 19 14:35:03 Albert2 kernel: cpuidle_idle_call+0x11d/0x190 sept. 19 14:35:03 Albert2 kernel: do_idle+0x87/0xf0 sept. 19 14:35:03 Albert2 kernel: cpu_startup_entry+0x2a/0x30 sept. 19 14:35:03 Albert2 kernel: start_secondary+0x129/0x160 sept. 19 14:35:03 Albert2 kernel: secondary_startup_64_no_verify+0x184/0x18b sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: ---[ end trace ]--- - Note that I had the same error on jammy (5.15.0-153-generic #163-Ubuntu) sept. 19 13:09:38 Albert2 kernel: sept. 19 13:09:38 Albert2 kernel: UBSAN: array-index-out-of-bounds in /build/linux-s9dSph/linux-5.15.0/drivers/input/mouse/focaltech.c:222:29 sept. 19 13:09:38 Albert2 kernel: index -1 is out of range for type 'focaltech_finger_state [5]' sept. 19 13:09:38 Albert2 kernel: CPU: 2 PID: 0 Comm: swapper/2 Tainted: P OE 5.15.0-153-generic #163-Ubuntu sept. 19 13:09:38 Albert2 kernel: Hardware name: ASUSTeK COMPUTER INC. UX303LNB/UX303LNB, BIOS UX303LNB.206 01/22/2015 sept. 19 13:09:38 Albert2 kernel: Call Trace: sept. 19 13:09:38 Albert2 kernel: sept. 19 13:09:38 Albert2 kernel: show_stack+0x52/0x5c sept. 19 13:09:38 Albert2 kernel: dump_stack_lvl+0x4a/0x63 sept. 19 13:09:38 Albert2 kernel: dump_stack+0x10/0x16 sept. 19 13:09:38 Albert2 kernel: ubsan_epilogue+0x9/0x36 sept. 19 13:09:38 Albert2 kernel: __ubsan_handle_out_of_bounds.cold+0x44/0x49 sept. 19 13:09:38 Albert2 kernel: focaltech_process_packet+0x366/0x3a0 [psmouse] sept. 19 13:09:38 Albert2 kernel: focaltech_process_byte+0x21/0x30 [psmouse] sept. 19 13:09:38 Albert2 kernel: psmouse_handle_byte+0x19/0x70 [psmouse] sept. 19 13:09:38 Albert2 kernel:
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
kernel log of previous faulting boot with kernel 6.8 $ journalctl -b -1 -t kernel > journald-kernel-previous-boot.txt ** Attachment added: "kernel log of previous faulting boot with kernel 6.8" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+attachment/5910598/+files/journald-kernel-previous-boot.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2125250 Title: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2125250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
apport information ** Tags added: noble ** Description changed: I'm facing this error in the journal. It likely still happens in a recent kernel since I haven't seen any change in the problematic piece of code drivers/input/mouse/focaltech.c This is on noble (6.8.0-83-generic #83-Ubuntu) sept. 19 14:35:03 Albert2 kernel: [ cut here ] sept. 19 14:35:03 Albert2 kernel: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 sept. 19 14:35:03 Albert2 kernel: index -1 is out of range for type 'focaltech_finger_state [5]' sept. 19 14:35:03 Albert2 kernel: CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.8.0-83-generic #83-Ubuntu sept. 19 14:35:03 Albert2 kernel: Hardware name: ASUSTeK COMPUTER INC. UX303LNB/UX303LNB, BIOS UX303LNB.206 01/22/2015 sept. 19 14:35:03 Albert2 kernel: Call Trace: sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: dump_stack_lvl+0x76/0xa0 sept. 19 14:35:03 Albert2 kernel: dump_stack+0x10/0x20 sept. 19 14:35:03 Albert2 kernel: __ubsan_handle_out_of_bounds+0xc6/0x110 sept. 19 14:35:03 Albert2 kernel: focaltech_process_packet+0x3d0/0x400 [psmouse] sept. 19 14:35:03 Albert2 kernel: focaltech_process_byte+0x23/0x30 [psmouse] sept. 19 14:35:03 Albert2 kernel: psmouse_handle_byte+0x19/0x130 [psmouse] sept. 19 14:35:03 Albert2 kernel: psmouse_receive_byte+0x91/0x300 [psmouse] sept. 19 14:35:03 Albert2 kernel: ps2_interrupt+0xb7/0x1b0 sept. 19 14:35:03 Albert2 kernel: serio_interrupt+0x4c/0xa0 sept. 19 14:35:03 Albert2 kernel: i8042_interrupt+0x196/0x4c0 sept. 19 14:35:03 Albert2 kernel: __handle_irq_event_percpu+0x4f/0x1b0 sept. 19 14:35:03 Albert2 kernel: handle_irq_event+0x39/0x80 sept. 19 14:35:03 Albert2 kernel: handle_edge_irq+0x8c/0x250 sept. 19 14:35:03 Albert2 kernel: __common_interrupt+0x51/0xf0 sept. 19 14:35:03 Albert2 kernel: common_interrupt+0x9f/0xb0 sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: asm_common_interrupt+0x27/0x40 sept. 19 14:35:03 Albert2 kernel: RIP: 0010:cpuidle_enter_state+0xda/0x730 sept. 19 14:35:03 Albert2 kernel: Code: 05 f5 fe e8 38 ee ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 36 94 f3 fe 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00 sept. 19 14:35:03 Albert2 kernel: RSP: 0018:bf28c00f3e18 EFLAGS: 0246 sept. 19 14:35:03 Albert2 kernel: RAX: RBX: 97dce6d55a60 RCX: sept. 19 14:35:03 Albert2 kernel: RDX: 0002 RSI: RDI: sept. 19 14:35:03 Albert2 kernel: RBP: bf28c00f3e68 R08: R09: sept. 19 14:35:03 Albert2 kernel: R10: R11: R12: 928e68a0 sept. 19 14:35:03 Albert2 kernel: R13: 0008 R14: 0008 R15: 001f22eb3ce7 sept. 19 14:35:03 Albert2 kernel: ? cpuidle_enter_state+0xca/0x730 sept. 19 14:35:03 Albert2 kernel: cpuidle_enter+0x2e/0x50 sept. 19 14:35:03 Albert2 kernel: call_cpuidle+0x23/0x60 sept. 19 14:35:03 Albert2 kernel: cpuidle_idle_call+0x11d/0x190 sept. 19 14:35:03 Albert2 kernel: do_idle+0x87/0xf0 sept. 19 14:35:03 Albert2 kernel: cpu_startup_entry+0x2a/0x30 sept. 19 14:35:03 Albert2 kernel: start_secondary+0x129/0x160 sept. 19 14:35:03 Albert2 kernel: secondary_startup_64_no_verify+0x184/0x18b sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: ---[ end trace ]--- Note that I had the same error on jammy (5.15.0-153-generic #163-Ubuntu) sept. 19 13:09:38 Albert2 kernel: sept. 19 13:09:38 Albert2 kernel: UBSAN: array-index-out-of-bounds in /build/linux-s9dSph/linux-5.15.0/drivers/input/mouse/focaltech.c:222:29 sept. 19 13:09:38 Albert2 kernel: index -1 is out of range for type 'focaltech_finger_state [5]' sept. 19 13:09:38 Albert2 kernel: CPU: 2 PID: 0 Comm: swapper/2 Tainted: P OE 5.15.0-153-generic #163-Ubuntu sept. 19 13:09:38 Albert2 kernel: Hardware name: ASUSTeK COMPUTER INC. UX303LNB/UX303LNB, BIOS UX303LNB.206 01/22/2015 sept. 19 13:09:38 Albert2 kernel: Call Trace: sept. 19 13:09:38 Albert2 kernel: sept. 19 13:09:38 Albert2 kernel: show_stack+0x52/0x5c sept. 19 13:09:38 Albert2 kernel: dump_stack_lvl+0x4a/0x63 sept. 19 13:09:38 Albert2 kernel: dump_stack+0x10/0x16 sept. 19 13:09:38 Albert2 kernel: ubsan_epilogue+0x9/0x36 sept. 19 13:09:38 Albert2 kernel: __ubsan_handle_out_of_bounds.cold+0x44/0x49 sept. 19 13:09:38 Albert2 kernel: focaltech_process_packet+0x366/0x3a0 [psmouse] sept. 19 13:09:38 Albert2 kernel: focaltech_process_byte+0x21/0x30 [psmouse] sept. 19 13:09:38 Albert2 kernel: psmouse_handle_byte+0x19/0x70 [psmouse]
[Bug 2125250] Re: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17
apport information ** Tags added: apport-collected jammy ** Description changed: I'm facing this error in the journal. It likely still happens in a recent kernel since I haven't seen any change in the problematic piece of code drivers/input/mouse/focaltech.c This is on noble (6.8.0-83-generic #83-Ubuntu) sept. 19 14:35:03 Albert2 kernel: [ cut here ] sept. 19 14:35:03 Albert2 kernel: UBSAN: array-index-out-of-bounds in /build/linux-1ylo5V/linux-6.8.0/drivers/input/mouse/focaltech.c:221:17 sept. 19 14:35:03 Albert2 kernel: index -1 is out of range for type 'focaltech_finger_state [5]' sept. 19 14:35:03 Albert2 kernel: CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.8.0-83-generic #83-Ubuntu sept. 19 14:35:03 Albert2 kernel: Hardware name: ASUSTeK COMPUTER INC. UX303LNB/UX303LNB, BIOS UX303LNB.206 01/22/2015 sept. 19 14:35:03 Albert2 kernel: Call Trace: sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: dump_stack_lvl+0x76/0xa0 sept. 19 14:35:03 Albert2 kernel: dump_stack+0x10/0x20 sept. 19 14:35:03 Albert2 kernel: __ubsan_handle_out_of_bounds+0xc6/0x110 sept. 19 14:35:03 Albert2 kernel: focaltech_process_packet+0x3d0/0x400 [psmouse] sept. 19 14:35:03 Albert2 kernel: focaltech_process_byte+0x23/0x30 [psmouse] sept. 19 14:35:03 Albert2 kernel: psmouse_handle_byte+0x19/0x130 [psmouse] sept. 19 14:35:03 Albert2 kernel: psmouse_receive_byte+0x91/0x300 [psmouse] sept. 19 14:35:03 Albert2 kernel: ps2_interrupt+0xb7/0x1b0 sept. 19 14:35:03 Albert2 kernel: serio_interrupt+0x4c/0xa0 sept. 19 14:35:03 Albert2 kernel: i8042_interrupt+0x196/0x4c0 sept. 19 14:35:03 Albert2 kernel: __handle_irq_event_percpu+0x4f/0x1b0 sept. 19 14:35:03 Albert2 kernel: handle_irq_event+0x39/0x80 sept. 19 14:35:03 Albert2 kernel: handle_edge_irq+0x8c/0x250 sept. 19 14:35:03 Albert2 kernel: __common_interrupt+0x51/0xf0 sept. 19 14:35:03 Albert2 kernel: common_interrupt+0x9f/0xb0 sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: asm_common_interrupt+0x27/0x40 sept. 19 14:35:03 Albert2 kernel: RIP: 0010:cpuidle_enter_state+0xda/0x730 sept. 19 14:35:03 Albert2 kernel: Code: 05 f5 fe e8 38 ee ff ff 8b 53 04 49 89 c7 0f 1f 44 00 00 31 ff e8 36 94 f3 fe 80 7d d0 00 0f 85 61 02 00 00 fb 0f 1f 44 00 00 <45> 85 f6 0f 88 f7 01 00 00 4d 63 ee 49 83 fd 0a 0f 83 17 05 00 00 sept. 19 14:35:03 Albert2 kernel: RSP: 0018:bf28c00f3e18 EFLAGS: 0246 sept. 19 14:35:03 Albert2 kernel: RAX: RBX: 97dce6d55a60 RCX: sept. 19 14:35:03 Albert2 kernel: RDX: 0002 RSI: RDI: sept. 19 14:35:03 Albert2 kernel: RBP: bf28c00f3e68 R08: R09: sept. 19 14:35:03 Albert2 kernel: R10: R11: R12: 928e68a0 sept. 19 14:35:03 Albert2 kernel: R13: 0008 R14: 0008 R15: 001f22eb3ce7 sept. 19 14:35:03 Albert2 kernel: ? cpuidle_enter_state+0xca/0x730 sept. 19 14:35:03 Albert2 kernel: cpuidle_enter+0x2e/0x50 sept. 19 14:35:03 Albert2 kernel: call_cpuidle+0x23/0x60 sept. 19 14:35:03 Albert2 kernel: cpuidle_idle_call+0x11d/0x190 sept. 19 14:35:03 Albert2 kernel: do_idle+0x87/0xf0 sept. 19 14:35:03 Albert2 kernel: cpu_startup_entry+0x2a/0x30 sept. 19 14:35:03 Albert2 kernel: start_secondary+0x129/0x160 sept. 19 14:35:03 Albert2 kernel: secondary_startup_64_no_verify+0x184/0x18b sept. 19 14:35:03 Albert2 kernel: sept. 19 14:35:03 Albert2 kernel: ---[ end trace ]--- Note that I had the same error on jammy (5.15.0-153-generic #163-Ubuntu) sept. 19 13:09:38 Albert2 kernel: sept. 19 13:09:38 Albert2 kernel: UBSAN: array-index-out-of-bounds in /build/linux-s9dSph/linux-5.15.0/drivers/input/mouse/focaltech.c:222:29 sept. 19 13:09:38 Albert2 kernel: index -1 is out of range for type 'focaltech_finger_state [5]' sept. 19 13:09:38 Albert2 kernel: CPU: 2 PID: 0 Comm: swapper/2 Tainted: P OE 5.15.0-153-generic #163-Ubuntu sept. 19 13:09:38 Albert2 kernel: Hardware name: ASUSTeK COMPUTER INC. UX303LNB/UX303LNB, BIOS UX303LNB.206 01/22/2015 sept. 19 13:09:38 Albert2 kernel: Call Trace: sept. 19 13:09:38 Albert2 kernel: sept. 19 13:09:38 Albert2 kernel: show_stack+0x52/0x5c sept. 19 13:09:38 Albert2 kernel: dump_stack_lvl+0x4a/0x63 sept. 19 13:09:38 Albert2 kernel: dump_stack+0x10/0x16 sept. 19 13:09:38 Albert2 kernel: ubsan_epilogue+0x9/0x36 sept. 19 13:09:38 Albert2 kernel: __ubsan_handle_out_of_bounds.cold+0x44/0x49 sept. 19 13:09:38 Albert2 kernel: focaltech_process_packet+0x366/0x3a0 [psmouse] sept. 19 13:09:38 Albert2 kernel: focaltech_process_byte+0x21/0x30 [psmouse] sept. 19 13:09:38 Albert2 kernel:
