Merge pull request #1593 from volatilityfoundation/mountinfo_superblock_check

Add missing pointer validation check in mountinfo
This commit is contained in:
ikelos
2025-02-01 01:43:13 +00:00
committed by GitHub
@@ -93,11 +93,14 @@ class MountInfo(plugins.PluginInterface):
return None
mnt_root_path = mnt_root.path()
superblock = mnt.get_mnt_sb()
mnt_id: int = mnt.mnt_id
parent_id: int = mnt.mnt_parent.mnt_id
superblock = mnt.get_mnt_sb()
if not (superblock and superblock.is_readable()):
return None
st_dev = f"{superblock.major}:{superblock.minor}"
mnt_opts: List[str] = []