Skip to contentSkip to conversation

USB: serial: visor: handle potential invalid device configuration

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 2, 2018 USB

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw
Quoted 17 lines · Johan Hovold
Quoted 16 lines · Greg Kroah-Hartman

If we get an invalid device configuration from a palm 3 type device, we might incorrectly parse things, and we have the potential to crash in "interesting" ways.

Fix this up by verifying the size of the configuration passed to us by the device, and only if it is correct, will we handle it.

---

Here is my long-forgotten patch for the visor driver to resolve an issue that Andrey found back in September of 2017. Sorry for the long delay.

Quoted 6 lines
Quoted 2 lines

Johan, I incorporated your review comments of my original one-off patch here as well.

Thanks for the update. I've applied this for 4.17-rc now after adding a stable tag and a comment about this one also fixing a slab info leak (through that dev_info in the port loop below).

Ugh, I forgot about the stable tag, thanks for that!

greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html