File: CVE-2011-1836.patch

package info (click to toggle)
ecryptfs-utils 83-4%2Bsqueeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 2,732 kB
  • ctags: 1,402
  • sloc: ansic: 15,975; sh: 11,096; makefile: 250; python: 41
file content (18 lines) | stat: -rw-r--r-- 1,113 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: fix information disclosure via recovery mount in /tmp
Author: Marc Deslauriers <marc.deslauriers@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/732628

Index: ecryptfs-utils-87/src/utils/ecryptfs-recover-private
===================================================================
--- ecryptfs-utils-87.orig/src/utils/ecryptfs-recover-private	2011-07-27 10:55:55.759472358 -0400
+++ ecryptfs-utils-87/src/utils/ecryptfs-recover-private	2011-07-27 10:56:02.609472355 -0400
@@ -95,6 +95,7 @@
 	(keyctl list @u | grep -qs "$mount_sig") || error "The key required to access this private data is not available."
 	(keyctl list @u | grep -qs "$fnek_sig") || error "The key required to access this private data is not available."
 	tmpdir=$(mktemp -d /tmp/ecryptfs.XXXXXXXX)
-	mount -i -t ecryptfs -o "$mount_opts" "$d" "$tmpdir"
-	info "Success!  Private data mounted read-only at [$tmpdir]."
+	mkdir -m 700 $tmpdir/private
+	mount -i -t ecryptfs -o "$mount_opts" "$d" "$tmpdir/private"
+	info "Success!  Private data mounted read-only at [$tmpdir/private]."
 done