summaryrefslogtreecommitdiff
path: root/drivers/ddr/imx/phy/ddrphy_utils.c
diff options
context:
space:
mode:
authorSzymon Heidrich <szymon.heidrich@gmail.com>2022-12-05 10:28:23 +0100
committerMarek Vasut <marex@denx.de>2022-12-08 14:30:39 +0100
commit51a0e215ec8ce9cc88f928373e9ce8303db1829b (patch)
tree3a9a0c24dd774508eb9a05d0c67a1d5f606f9e97 /drivers/ddr/imx/phy/ddrphy_utils.c
parentbcd4110702d38c5356c84da6dc286c565ec19db3 (diff)
usb: gadget: rndis: Prevent InformationBufferOffset manipulation
Prevent access to arbitrary memory locations in gen_ndis_set_resp via manipulation of buf->InformationBufferOffset. Original implementation permits manipulation of InformationBufferOffset to exploit OID_GEN_CURRENT_PACKET_FILTER to set arbitrary memory contents within a 32byte offset as the devices packet filter. The packet filter value may be next retrieved using gen_ndis_query_resp so it is possible to extract specific memory regions two bytes a time. The rndis_query_response was not modified as neither the buffer offset nor length passed to gen_ndis_query_resp is used. Signed-off-by: Szymon Heidrich <szymon.heidrich@gmail.com>
Diffstat (limited to 'drivers/ddr/imx/phy/ddrphy_utils.c')
0 files changed, 0 insertions, 0 deletions