Skip to content
Snippets Groups Projects
Commit bf9126d0 authored by Szymon Heidrich's avatar Szymon Heidrich Committed by Kernel Bump Bot
Browse files

usb: rndis_host: Secure rndis_query check against int overflow


[ Upstream commit c7dd1380 ]

Variables off and len typed as uint32 in rndis_query function
are controlled by incoming RNDIS response message thus their
value may be manipulated. Setting off to a unexpectetly large
value will cause the sum with len and 8 to overflow and pass
the implemented validation step. Consequently the response
pointer will be referring to a location past the expected
buffer boundaries allowing information leakage e.g. via
RNDIS_OID_802_3_PERMANENT_ADDRESS OID.

Fixes: ddda0862 ("USB: rndis_host, various cleanups")
Signed-off-by: default avatarSzymon Heidrich <szymon.heidrich@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7abd6d44
No related branches found
No related tags found
5 merge requests!54🤖 Bump Bot: Update v5.10-ktn to latest Stable Kernel,!53🤖 Bump Bot: Update v5.10-ktn to latest Stable Kernel,!52🤖 Bump Bot: Update $BRANCH to latest Stable Kernel,!51🤖 Bump Bot: Update ${BRANCH} to latest Stable Kernel,!50🤖 Bump Bot: Update to Latest Stable Kernel
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment