]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDS: Heap OOB write in rds_message_alloc_sgs()
authorMohamed Ghannam <simo.ghannam@gmail.com>
Tue, 2 Jan 2018 19:44:34 +0000 (19:44 +0000)
committerBrian Maly <brian.maly@oracle.com>
Tue, 8 May 2018 19:14:16 +0000 (15:14 -0400)
commit6a65f88877c6c9b88168e0e092df33edf45611b1
tree4e00f70c6bae37c55df7150a5836987c50ba2bb1
parentff8eec90ef3362897cbcdfeb6a8602b302c99cd6
RDS: Heap OOB write in rds_message_alloc_sgs()

Orabug: 27934066
CVE: CVE-2018-5332

When args->nr_local is 0, nr_pages gets also 0 due some size
calculation via rds_rm_size(), which is later used to allocate
pages for DMA, this bug produces a heap Out-Of-Bound write access
to a specific memory region.

Signed-off-by: Mohamed Ghannam <simo.ghannam@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit c095508770aebf1b9218e77026e48345d719b17c)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
net/rds/rdma.c