Code:  void grubfs_free (GrubFS *gf) {
 	if (gf) {
		if (gf->file && gf->file->device)
 			free (gf->file->device->disk);
 		free (gf->file);
 		free (gf);
	}
}

Vulnerability Type: DoS Overflow 
CWE ID: CWE-119
Summary: The grub_ext2_read_block function in fs/ext2.c in GNU GRUB before 2013-11-12, as used in shlr/grub/fs/ext2.c in radare2 1.5.0, allows remote attackers to cause a denial of service (excessive stack use and application crash) via a crafted binary file, related to use of a variable-size stack array.
Commit Message: Fix #7723 - crash in ext2 GRUB code because of variable size array in stack