This was originally seen while debugging a problem in FreeRADIUS. Upstream FreeRADIUS developer Arran Cudbard-Bell has posted 3 pull requests to fix the issue. https://github.com/krb5/krb5/pull/36 https://github.com/krb5/krb5/pull/37 https://github.com/krb5/krb5/pull/38 I combined these into a single patch and built and tested for F20. Everything seems to work. It seems like a pretty obvious bug in the krb5 libs. This is an important patch to get in otherwise the radius server will segfault if it attempts to perform authentication via kerberos. I've attached the patch.
Created attachment 838646 [details] rolled up pull requests to fix krb5_copy_context seg fault and double free diff --git a/krb5.spec b/krb5.spec index 41c70d3..dd85f23 100644 --- a/krb5.spec +++ b/krb5.spec @@ -113,6 +113,7 @@ Patch140: krb5-CVE-2013-1417.patch Patch141: krb5-1.11.3-client-loop.patch Patch142: krb5-master-keyring-offsets.patch Patch143: krb5-master-keyring-expiration.patch +Patch144: krb5-copy-ctx.patch # Patches for otp plugin backport Patch201: krb5-1.11.2-keycheck.patch @@ -365,6 +366,7 @@ ln -s NOTICE LICENSE %patch141 -p1 -b .client-loop %patch142 -p1 -b .keyring-offsets %patch143 -p1 -b .keyring-expiration +%patch144 -p1 -b .copy-ctx %patch201 -p1 -b .keycheck %patch202 -p1 -b .otp
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.