A flaw was found in the Red Hat Ceph Storage RGW. When processing a GET Request for a swift URL that ends with two slashes it can cause the rgw to crash, resulting in a denial of service.
As an example consider the following curl command:
the path before the bucket name (before "foo") must be valid for this to work.
"foo" does not necessarily need to be a valid bucket name. If it is a valid bucket name it is irrelevant if the bucket itself is public or not.
Additional query parameters in the URL still cause this issue (e.g. curl https://<rgw-url>/swift/v1/AUTH_a1c6e2f79c4b412f9e0335bc6120aeae/foo//?abc<https://%3crgw-url%3e/swift/v1/AUTH_a1c6e2f79c4b412f9e0335bc6120aeae/foo/?abc>)
* Red Hat OpenStack Platform deployments use the ceph package directly from the Ceph channel; the RHOSP package will not be updated at this time.
* This issue did not affect the versions of ceph as shipped with Red Hat Enterprise Linux 8 as they did not include support for RGW.
* Red Hat OpenShift Container Storage (RHOCS) 4 shipped ceph package for the usage of RHOCS 4.2 only, that has reached End Of Life. The shipped version of ceph package is no longer used and supported with the release of RHOCS 4.3.
Upstream patch : https://github.com/ceph/ceph/commit/f44a8ae8aa27ecef69528db9aec220f12492810e
Created ceph tracking bugs for this issue:
Affects: fedora-all [bug 1964589]
This issue has been addressed in the following products:
Red Hat Ceph Storage 5.1
Via RHSA-2022:1174 https://access.redhat.com/errata/RHSA-2022:1174