summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorShachar Raindel <raindel@mellanox.com>2015-03-18 20:39:08 +0300
committerJiri Slaby <jslaby@suse.cz>2015-04-22 09:58:32 +0300
commitf6094cbab915952132434cc50d738c2976cb4457 (patch)
tree1b44bd29837ceb01e6540c539ec2ec63a4e000b8 /crypto
parent221ff9c56696e9e02d39ecb844528ebb4f8abf0f (diff)
downloadlinux-f6094cbab915952132434cc50d738c2976cb4457.tar.xz
IB/uverbs: Prevent integer overflow in ib_umem_get address arithmetic
commit 8494057ab5e40df590ef6ef7d66324d3ae33356b upstream. Properly verify that the resulting page aligned end address is larger than both the start address and the length of the memory area requested. Both the start and length arguments for ib_umem_get are controlled by the user. A misbehaving user can provide values which will cause an integer overflow when calculating the page aligned end address. This overflow can cause also miscalculation of the number of pages mapped, and additional logic issues. Addresses: CVE-2014-8159 Signed-off-by: Shachar Raindel <raindel@mellanox.com> Signed-off-by: Jack Morgenstein <jackm@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions