Page MenuHomeFreeBSD

D28570.id83635.diff
No OneTemporary

D28570.id83635.diff

Index: usr.sbin/makefs/mtree.c
===================================================================
--- usr.sbin/makefs/mtree.c
+++ usr.sbin/makefs/mtree.c
@@ -783,12 +783,14 @@
free(node->inode);
node->inode = curino;
node->inode->nlink++;
+ /* Reset st to avoid UAF when updating size below. */
+ st = &node->inode->st;
}
}
free(node->contents);
node->contents = name;
- st->st_size = sb.st_size;
+ st->st_size = sb.st_size; /* XXX: or node->inode->st to avoid UAF */
return (0);
}

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 27, 3:22 AM (10 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15610691
Default Alt Text
D28570.id83635.diff (515 B)

Event Timeline