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] Userspace programs can arbitrary write into kernel memory #69

Open
hgruniaux opened this issue May 23, 2024 · 0 comments
Open

[bug] Userspace programs can arbitrary write into kernel memory #69

hgruniaux opened this issue May 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hgruniaux
Copy link
Owner

The check_ptr() function in kernel syscalls do not check the number of bytes that will be written by the kernel. It only check if the address is valid and accessible (that is only the first byte, but not the other bytes).

That is, check_ptr() should take an additional argument: the expected number of bytes that will be written by the kernel and check if the memory range is accessible.

@hgruniaux hgruniaux added the bug Something isn't working label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant