Bugzilla – Bug 756370
VUL-1: CVE-2011-5000: openssh: memory exhaustion in gssapi
Last modified: 2019-10-24 14:54:55 UTC
Adam Zabrocki has discovered, that it is possible to use any arbitrary value in the xmalloc() wrapper function which can be exploited to trigger a memory exhaustion condition. More detailed information can be found in his advisory at: http://site.pi3.com.pl/adv/ssh_1.txt
revision 1.25 date: 2011/08/05 20:16:46; author: djm; state: Exp; lines: +3 -1 - markus@cvs.openbsd.org 2011/08/01 19:18:15 [gss-serv.c] prevent post-auth resource exhaustion (int overflow leading to 4GB malloc); report Adam Zabrock; ok djm@, deraadt@ --- src/usr.bin/ssh/gss-serv.c 2008/05/08 13:02:23 1.22 +++ src/usr.bin/ssh/gss-serv.c 2011/08/01 20:18:15 1.23 @@ -1,4 +1,4 @@ -/* $OpenBSD: gss-serv.c,v 1.22 2008/05/08 12:02:23 djm Exp $ */ +/* $OpenBSD: gss-serv.c,v 1.23 2011/08/01 19:18:15 markus Exp $ */ /* * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. @@ -225,6 +225,8 @@ ssh_gssapi_parse_ename(Gssctxt *ctx, gss_buffer_t enam name->length = get_u32(tok+offset); offset += 4; + if (UINT_MAX - offset < name->length) + return GSS_S_FAILURE; if (ename->length < offset+name->length) return GSS_S_FAILURE;
The SWAMPID for this issue is 47840. This issue was rated as low. Please submit fixed packages until 2012-07-11. When done, please reassign the bug to security-team@suse.de. Patchinfo will be handled by security team.
Duplicate of bug 709782 *** This bug has been marked as a duplicate of bug 709782 ***
released
Update released for: openssh, openssh-askpass, openssh-debuginfo Products: SLE-SERVER 10-SP3-TERADATA (x86_64)
Update released for: openssh, openssh-askpass, openssh-debuginfo Products: SLE-DESKTOP 10-SP4 (i386, x86_64) SLE-SERVER 10-SP4 (i386, ia64, ppc, s390x, x86_64)
Update released for: openssh, openssh-askpass Products: SUSE-CORE 9-SP3-TERADATA (x86_64)
Update released for: openssh, openssh-askpass, openssh-debuginfo, openssh-debugsource Products: SLE-DEBUGINFO 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-DESKTOP 11-SP1 (i386, x86_64) SLE-DESKTOP 11-SP1-FOR-SP2 (i386, x86_64) SLE-SERVER 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11-SP1-FOR-SP2 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11-SP1-TERADATA (x86_64) SLES4VMWARE 11-SP1 (i386, x86_64)