Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TOCTOU bug in sending packets with the experiment option header. #11419

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

copybara-service[bot]
Copy link

Fix TOCTOU bug in sending packets with the experiment option header.

In cases where sendRaw runs concurrently with a setsocketopt that sets
the experiment option, it's possible to read a zero experiment option when
adjusting reserved header space and a non-zero experiment option when
sending the packet. This causes the sentry to panic when adding the IPv6
header.

@copybara-service copybara-service bot added the exported Issue was exported automatically label Jan 31, 2025
@copybara-service copybara-service bot force-pushed the test/cl721831686 branch 7 times, most recently from dfc1690 to 431ee54 Compare February 5, 2025 01:33
In cases where sendRaw runs concurrently with a setsocketopt that sets
the experiment option, it's possible to read a zero experiment option when
adjusting reserved header space and a non-zero experiment option when
sending the packet. This causes the sentry to panic when adding the IPv6
header.

PiperOrigin-RevId: 723303802
@copybara-service copybara-service bot closed this Feb 5, 2025
@copybara-service copybara-service bot deleted the test/cl721831686 branch February 5, 2025 02:30
@copybara-service copybara-service bot merged commit 245345b into master Feb 5, 2025
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exported Issue was exported automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant