"A security issue has been reported in Kerberos, which potentially can be exploited by malicious, local users to perform certain actions with escalated privileges. The security issue is caused due to missing checks for whether the "setuid()" call has succeeded in the bundled krshd and v4rcp applications. This can be exploited to disclose or manipulate the contents of arbitrary files or execute arbitrary code with root privileges if the "setuid()" call fails due to e.g. resource limits." http://secunia.com/advisories/21402/ http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3083 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3084 http://web.mit.edu/kerberos/www/advisories/MITKRB5-SA-2006-001-setuid.txt Bump PKGREVISION.
20 lines
629 B
Text
20 lines
629 B
Text
$NetBSD: patch-ar,v 1.1 2006/08/09 17:31:10 salo Exp $
|
|
|
|
Security fix for SA21402.
|
|
|
|
--- clients/ksu/main.c.orig 2002-08-14 21:14:49.000000000 +0200
|
|
+++ clients/ksu/main.c 2006-08-09 18:52:53.000000000 +0200
|
|
@@ -892,8 +892,11 @@ static void sweep_up(context, cc)
|
|
const char * cc_name;
|
|
struct stat st_temp;
|
|
|
|
- krb5_seteuid(0);
|
|
- krb5_seteuid(target_uid);
|
|
+ if (krb5_seteuid(0) < 0 || krb5_seteuid(target_uid) < 0) {
|
|
+ com_err(prog_name, errno,
|
|
+ "while returning to source uid for destroying ccache");
|
|
+ exit(1);
|
|
+ }
|
|
|
|
cc_name = krb5_cc_get_name(context, cc);
|
|
if ( ! stat(cc_name, &st_temp)){
|