git: usr.sbin/makefs: fix use-after-free in read_mtree_keywords()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Oct 31 08:48:28 PDT 2021


commit 2a7b29081fc07850383b0a851c4d32b553412522
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Mon Nov 1 00:25:27 2021 +0900

    usr.sbin/makefs: fix use-after-free in read_mtree_keywords()
    
    The st variable is used as a shortcut for &node->inode->st, but in one
    branch just before the exit we update node->inode without changing st.
    
    taken from FreeBSD 12ad8bdb34aa990bcc4f3faa92a6e0557385d2b2

Summary of changes:
 usr.sbin/makefs/mtree.c | 2 ++
 1 file changed, 2 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2a7b29081fc07850383b0a851c4d32b553412522


-- 
DragonFly BSD source repository


More information about the Commits mailing list