Skip to content

Commit 037eb1c

Browse files
committed
Linux Check_creds plugins pointer verification improvements
1 parent e76d512 commit 037eb1c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

volatility3/framework/plugins/linux/check_creds.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class Check_creds(interfaces.plugins.PluginInterface):
1616

1717
_required_framework_version = (2, 0, 0)
1818

19+
_version = (1, 0, 1)
20+
1921
@classmethod
2022
def get_requirements(cls):
2123
return [
@@ -46,7 +48,11 @@ def _generator(self):
4648
tasks = pslist.PsList.list_tasks(self.context, vmlinux.name)
4749

4850
for task in tasks:
49-
cred_addr = task.cred.dereference().vol.offset
51+
task_cred_ptr = task.cred
52+
if not (task_cred_ptr and task_cred_ptr.is_readable()):
53+
continue
54+
55+
cred_addr = task_cred_ptr.dereference().vol.offset
5056

5157
if cred_addr not in creds:
5258
creds[cred_addr] = []

0 commit comments

Comments
 (0)