Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.4] bpo-35746: Fix segfault in ssl's cert parser (GH-11569) #11868

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

Merged
merged 2 commits into from
Feb 25, 2019
Merged

[3.4] bpo-35746: Fix segfault in ssl's cert parser (GH-11569) #11868

merged 2 commits into from
Feb 25, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Feb 15, 2019

Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL
distribution points with empty DP or URI correctly. A malicious or buggy
certificate can result into segfault.

Vulnerability (TALOS-2018-0758) reported by Colin Read and Nicolas
Edet of Cisco.

Signed-off-by: Christian Heimes [email protected]

(cherry picked from commit a37f524)

https://bugs.python.org/issue35746

Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL
distribution points with empty DP or URI correctly. A malicious or buggy
certificate can result into segfault.

Vulnerability (TALOS-2018-0758) reported by Colin Read and Nicolas
Edet of Cisco.

Signed-off-by: Christian Heimes <[email protected]>

(cherry picked from commit a37f524)
@vstinner
Copy link
Member Author

I cannot test manually on my Fedora 29: compilation of the _ssl module fails with OpenSSL 1.1.1, but the test passed on Travis CI ("[112/391] test_ssl") and AppVeyor ("[360/391] test_ssl").

@hroncok
Copy link
Contributor

hroncok commented Feb 15, 2019

@vstinner You should be able to install compat-openssl10-devel and test with that one instead. You might need to remove openssl-devel first.

@larryhastings larryhastings merged commit 6c655ce into python:3.4 Feb 25, 2019
@bedevere-bot
Copy link

@larryhastings: Please replace # with GH- in the commit message next time. Thanks!

@larryhastings
Copy link
Contributor

Thanks for the fix!

@vstinner vstinner deleted the ssl_crl_bug34 branch April 29, 2019 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-security A security issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants