Skip to content

squid: rgw: Check if HTTP_X_AMZ_COPY_SOURCE header is empty - #66028

Merged
batrick merged 1 commit into
ceph:squidfrom
cbodley:wip-73606-squid
Jun 9, 2026
Merged

batrick merged 1 commit into
ceph:squidfrom
cbodley:wip-73606-squid

Conversation

@cbodley

@cbodley cbodley commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

The issue was that the `HTTP_X_AMZ_COPY_SOURCE` header could be present but empty (i.e., an empty string rather than NULL). The  code only checked if the pointer was not NULL, but didn't verify that the string had content. When an empty string was passed to RGWCopyObj::parse_copy_location(), it would eventually try to access name_str[0] on an empty string, causing a crash.

Fixes: https://tracker.ceph.com/issues/72669

Signed-off-by: Suyash Dongre <[email protected]>
(cherry picked from commit bef59f1)
@cbodley
cbodley requested a review from a team as a code owner October 22, 2025 12:51
@cbodley cbodley added this to the squid milestone Oct 22, 2025
@cbodley cbodley added the rgw label Oct 22, 2025
@adamemerson

Copy link
Copy Markdown
Contributor

Removing needs-qa until we have notifiaction/multisite fixes backported to squid.

@cbodley

cbodley commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

we had a CVE for a very similar crash bug, i think this backport should be prioritized

@anrao19

anrao19 commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

FYI, pr testing is in progress...
Tracker created for same is : https://tracker.ceph.com/issues/76004

@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label May 14, 2026
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-fail Release engineering: failed backport verification audit. labels May 14, 2026
@anrao19

anrao19 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

pr testing completed and approved by @ivancich , more deatails : https://tracker.ceph.com/issues/76004
@cbodley , if no further testing is needed then this pr can be merged

@anrao19

anrao19 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

jenkins test api

@anrao19

anrao19 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@batrick
batrick merged commit de01062 into ceph:squid Jun 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-qa ready-to-merge releng-audit-pass Release engineering: passed backport verification audit. rgw TESTED

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants