fs/ntfs3: Add rough attr alloc_size check
PATCH 1/1 fs/ntfs3: Add rough attr alloc_size check
From: Konstantin Komarov <[email protected]>
[ Upstream commit c4a8ba334262e9a5c158d618a4820e1b9c12495c ]
Reported-by [email protected]
Signed-off-by Konstantin Komarov <[email protected]>
Signed-off-by Bin Lan <[email protected]>
--- fs/ntfs3/record.c | 3 +++ 1 file changed, 3 insertions(+)
fs/ntfs3/record.c +3 -0
@@ -329,6 +329,9 @@ struct ATTRIB *mi_enum_attr(struct mft_inode *mi, struct ATTRIB *attr)if (attr->nres.c_unit)return NULL ; + +if (alloc_size > mi->sbi->volume.size) +return NULL ; }return attr;
Signature · 1 line
2.43.0