Skip to content

[SECURITY] USB: visor: fix treo_attach NULL deref on missing endpoints (CVE-2016-2782)#140

Open
Mifacopy wants to merge 1 commit intofacebookincubator:oculus-go-kernel-masterfrom
Mifacopy:patch-36
Open

[SECURITY] USB: visor: fix treo_attach NULL deref on missing endpoints (CVE-2016-2782)#140
Mifacopy wants to merge 1 commit intofacebookincubator:oculus-go-kernel-masterfrom
Mifacopy:patch-36

Conversation

@Mifacopy
Copy link

Fix CVE-2016-2782.

Upstream commit: cac9b50b0d75a1d50d6c056ff65c005f3224c8e0

treo_attach() in drivers/usb/serial/visor.c could dereference NULL when a
physically attached USB device is missing the expected bulk-in and/or
interrupt-in endpoint descriptors. A crafted/malicious USB device can
trigger a NULL pointer dereference and crash the kernel (DoS).

Add sanity checks for required endpoints and fail probe/attach cleanly when
descriptors are invalid.

Reference: CVE-2016-2782

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant