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

Open
opened 2024-05-23 16:43:38 +02:00 by hgruniaux · 0 comments
hgruniaux commented 2024-05-23 16:43:38 +02:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
hubert/Pi-kachULM_OS#69
No description provided.