I have a USB mouse that does not work on Ubuntu, but does work on Windows on the same machine (dual boot). Mouse is detected in xinput as well as lsusb. (USB optical mouse)
❯ xinput -list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SINO WEALTH Redgear Shadow Blade Mechanical Keyboard Consumer Control id=15 [slave pointer (2)]
⎜ ↳ SINO WEALTH Redgear Shadow Blade Mechanical Keyboard Mouse id=18 [slave pointer (2)]
⎜ ↳ USB OPTICAL MOUSE Consumer Control id=8 [slave pointer (2)]
⎜ ↳ USB OPTICAL MOUSE id=10 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ SINO WEALTH Redgear Shadow Blade Mechanical Keyboard id=13 [slave keyboard (3)]
↳ SINO WEALTH Redgear Shadow Blade Mechanical Keyboard id=14 [slave keyboard (3)]
↳ SINO WEALTH Redgear Shadow Blade Mechanical Keyboard Consumer Control id=16 [slave keyboard (3)]
↳ SINO WEALTH Redgear Shadow Blade Mechanical Keyboard System Control id=17 [slave keyboard (3)]
↳ USB OPTICAL MOUSE Consumer Control id=9 [slave keyboard (3)]
↳ USB OPTICAL MOUSE Keyboard id=11 [slave keyboard (3)]
↳ USB OPTICAL MOUSE System Control id=12 [slave keyboard (3)]
The mouse has 5 buttons (left, right, scroll, and 2 extra programmable buttons).
Machine has an MSI B550 Tomahawk motherboard and Ryzen 5600X CPU if that matters.
Weirdly enough, the mouse seems to mostly work when instead of plugging directly, it's plugged through a USB hub. However, even this seems to stop working intermittently, although unplugging and replugging fixes this.
Even weirder is that other mice seem to work. If I didn't know better I would think that the mouse does not support linux.