Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] KernelSymbolTable exposed to owner value vulnerability #264

Open
AlonZivony opened this issue Oct 25, 2022 · 0 comments
Open

[BUG] KernelSymbolTable exposed to owner value vulnerability #264

AlonZivony opened this issue Oct 25, 2022 · 0 comments

Comments

@AlonZivony
Copy link
Contributor

When initializing the KernelSymbolTable via the NewKernelSymbolsMap, we give symbols without an owner the default owner value of "system".
This is problematic, because a module can call its owner "system", which will cause its symbols to look like they belong to the kernel.
The parsing of the owner also removes the '[' and ']' characters, which might cause corruption in the names parsed.
We should give some uninitialized value as the owner which could not be mocked by anyone so we can distinguish between system and module symbols.

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

No branches or pull requests

1 participant