Skip to content

[SECURITY] usbip: fix stub_send_ret_submit() null transfer_buffer bug (CVE-2017-16914)#135

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

[SECURITY] usbip: fix stub_send_ret_submit() null transfer_buffer bug (CVE-2017-16914)#135
Mifacopy wants to merge 1 commit intofacebookincubator:oculus-go-kernel-masterfrom
Mifacopy:patch-32

Conversation

@Mifacopy
Copy link

Fix CVE-2017-16914.

Upstream commit: be6123df1ea8f01ee2f896a16c2b7be3e4557a5a

In drivers/staging/usbip/stub_tx.c, stub_send_ret_submit() could handle URBs
with actual_length > 0 but transfer_buffer == NULL without checking, which
could result in a NULL pointer dereference when processing crafted USB-over-IP
packets and lead to a denial-of-service (kernel crash).

Add a guard to check that transfer_buffer is non-NULL when actual_length is
greater than zero before proceeding.

Reference: CVE-2017-16914

@meta-cla meta-cla bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 14, 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