Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106144512
D28570.id83635.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
515 B
Referenced Files
None
Subscribers
None
D28570.id83635.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D28570: usr.sbin/makefs: fix use-after-free in read_mtree_keywords()
Attached
Detach File
Event Timeline
Log In to Comment