Bug 1046672
Summary: | Crash in gnutls_global_deinit | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Daniel Berrangé <berrange> | ||||
Component: | gnutls | Assignee: | Nikos Mavrogiannopoulos <nmavrogi> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 20 | CC: | fedora, jorton, nmavrogi, rdieter, rossetyler, tmraz | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | gnutls-3.1.18-3.fc19 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2014-01-05 06:05:48 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Daniel Berrangé
2013-12-26 13:36:35 UTC
Created attachment 841907 [details]
Fix global variable cleanup in gnutls_global_init/deinit
The flaw causing the crash is that the global variable "ecc_wmnaf_cache_last" is configured to point to an entry in the "ecc_wmnaf_cache" list by the gnutls_global_init function. When the gnutls_global_deinit function runs, it frees the "ecc_wmnaf_cache" list, but does not clear the "ecc_wmnaf_cache_last" pointer. So this variable is left pointing to free'd memory. When later calls to gnutls_global_init/deinit run they will suffer from use-after-free and eventually crash.
It seems that this is Fedora specific, and the issue is in the patch that disables certain ECC algorithms. I'll include your fix in the patch. gnutls-3.1.18-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/gnutls-3.1.18-3.fc20 *** Bug 1029394 has been marked as a duplicate of this bug. *** gnutls-3.1.18-3.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/gnutls-3.1.18-3.fc19 Package gnutls-3.1.18-3.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing gnutls-3.1.18-3.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-0039/gnutls-3.1.18-3.fc19 then log in and leave karma (feedback). On fedora 20 please leave karma on: https://admin.fedoraproject.org/updates/FEDORA-2014-0044/gnutls-3.1.18-3.fc20 gnutls-3.1.18-3.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. gnutls-3.1.18-3.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |