summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/ionic/ionic_datapath.c
diff options
context:
space:
mode:
authorEugene Korenevsky <ekorenevsky@aliyun.com>2025-10-13 21:39:30 +0300
committerSteve French <stfrench@microsoft.com>2025-10-15 22:10:28 -0500
commit6447b0e355562a1ff748c4a2ffb89aae7e84d2c9 (patch)
tree3116023e821cff099b4c699a4325b02dfbd19b80 /drivers/infiniband/hw/ionic/ionic_datapath.c
parentc2b77f42205ef485a647f62082c442c1cd69d3fc (diff)
cifs: parse_dfs_referrals: prevent oob on malformed input
Malicious SMB server can send invalid reply to FSCTL_DFS_GET_REFERRALS - reply smaller than sizeof(struct get_dfs_referral_rsp) - reply with number of referrals smaller than NumberOfReferrals in the header Processing of such replies will cause oob. Return -EINVAL error on such replies to prevent oob-s. Signed-off-by: Eugene Korenevsky <ekorenevsky@aliyun.com> Cc: stable@vger.kernel.org Suggested-by: Nathan Chancellor <nathan@kernel.org> Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'drivers/infiniband/hw/ionic/ionic_datapath.c')
0 files changed, 0 insertions, 0 deletions