---
Subject: [PATCH] eCryptfs: NULL crypt_stat dereference during lookup

If ecryptfs_encrypted_view or ecryptfs_xattr_metadata were being
specified as mount options, a NULL pointer dereference was possible
during lookup.

This patch moves the crypt_stat assignment into
ecryptfs_lookup_and_interpose_lower(), ensuring that crypt_stat
will not be NULL before we attempt to dereference it.

Thanks to Dan Carpenter and his static analysis tool, smatch, for
finding this bug.

Signed-off-by: Tyler Hicks <[email protected]>
---

Sent upstream: http://thread.gmane.org/gmane.linux.kernel/809706

** Attachment added: "[PATCH] eCryptfs: NULL crypt_stat dereference during 
lookup"
   
http://launchpadlibrarian.net/24142245/0002-eCryptfs-NULL-crypt_stat-dereference-during-lookup.patch

** Changed in: ecryptfs
   Importance: Undecided => High
     Assignee: (unassigned) => Tyler Hicks (tyhicks)
       Status: New => In Progress

** Also affects: ecryptfs-utils (Ubuntu)
   Importance: Undecided
       Status: New

-- 
NULL crypt_stat dereference during lookup
https://bugs.launchpad.net/bugs/345766
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to