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

[3.7] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interfac… #21231

Merged
merged 1 commit into from Jun 30, 2020

Conversation

tapakund
Copy link

@tapakund tapakund commented Jun 30, 2020

…e (GH-21033)

The hash() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
(cherry picked from commit b30ee26)

Co-authored-by: Ravi Teja P rvteja92@gmail.com

Signed-off-by: Tapas Kundu tkundu@vmware.com

https://bugs.python.org/issue41004

@tapakund tapakund changed the title bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interfac… [3.7] bpo-41004: Resolve hash collisions for IPv4Interface and IPv6Interfac… Jun 30, 2020
Copy link
Member

@corona10 corona10 left a comment

Sorry we only accept security patch for 3.5-3.7.
I close this PR cc @ericvsmith

@corona10 corona10 closed this Jun 30, 2020
@corona10 corona10 reopened this Jun 30, 2020
@ericvsmith
Copy link
Member

@ericvsmith ericvsmith commented Jun 30, 2020

On the bpo issue, I've asked the release manager to weigh in.

@corona10 corona10 requested review from ericvsmith and ned-deily Jun 30, 2020
Copy link
Member

@corona10 corona10 left a comment

Since this issue is reported as the CVE-2020-14422.
I am okay to merge this PR as the security issue.

But waiting for @ned-deily and @ericvsmith 's comment :)

@ned-deily
Copy link
Member

@ned-deily ned-deily commented Jun 30, 2020

As I commented on the bpo issue, please add the CVE to the NEWS item.

…terface (pythonGH-21033)

The __hash__() methods of classes IPv4Interface and IPv6Interface had issue
of generating constant hash values of 32 and 128 respectively causing hash collisions.
The fix uses the hash() function to generate hash values for the objects
instead of XOR operation
(cherry picked from commit b30ee26)

Co-authored-by: Ravi Teja P <rvteja92@gmail.com>

Signed-off-by: Tapas Kundu <tkundu@vmware.com>
@ned-deily ned-deily merged commit b98e779 into python:3.7 Jun 30, 2020
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants