Skip to content

syscalls: Fix NULL pointer crash when enumerating kernel modules#1863

Merged
tklengyel merged 1 commit intotklengyel:mainfrom
lfreijo:main
Feb 1, 2026
Merged

syscalls: Fix NULL pointer crash when enumerating kernel modules#1863
tklengyel merged 1 commit intotklengyel:mainfrom
lfreijo:main

Conversation

@lfreijo
Copy link
Copy Markdown
Contributor

@lfreijo lfreijo commented Jan 29, 2026

Creating this again. The first PR had the wrong info for my user on the commit.

Found this bug while testing Windows 10 x64 with multiple plugins (syscalls + procmon + filetracer + fileextractor + memdump + tlsmon)

Add NULL check for module_info->full_name before accessing its contents in enum_modules_cb(). Some kernel modules (e.g., certain drivers in PID 4) do not have a full_name populated, causing a SIGSEGV when syscalls is combined with other plugins.

This was the root cause of the crash (exit 139) when running syscalls alongside procmon, filetracer, and other plugins. The crash occurred during module enumeration on Windows, before any syscall events could be captured.

Add NULL check for module_info->full_name before accessing its contents
in enum_modules_cb(). Some kernel modules (e.g., certain drivers in
PID 4) do not have a full_name populated, causing a SIGSEGV when
syscalls is combined with other plugins.

This was the root cause of the crash (exit 139) when running syscalls
alongside procmon, filetracer, and other plugins. The crash occurred
during module enumeration on Windows, before any syscall events could
be captured.

Tested with 6-plugin combo (syscalls + procmon + filetracer +
fileextractor + memdump + tlsmon) - 73,570 events, clean exit.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@drakvuf-jenkins
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@tklengyel
Copy link
Copy Markdown
Owner

@drakvuf-jenkins Test this please

@tklengyel tklengyel merged commit 628114f into tklengyel:main Feb 1, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants