]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: asio: check the remote endpoint before processing requests 29967/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Wed, 7 Aug 2019 15:09:32 +0000 (17:09 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Wed, 28 Aug 2019 13:56:12 +0000 (15:56 +0200)
commitcaa653196856ecdf50519a9a33195d5c4e3372af
tree5507280157eb4e73b8332d4bfc0e54d3f3a4caff
parentd9a385da8c1e2d14a7b3b008d83e0ac0b9723fcb
rgw: asio: check the remote endpoint before processing requests

`socket.remote_endpoint()` can throw exceptions corresponding to errors in the
`getpeername` syscall, make sure these are handled.

Fixes: CVE-2019-10222, https://tracker.ceph.com/issues/40018
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_asio_frontend.cc