-
Notifications
You must be signed in to change notification settings - Fork 29
Integer overflow in allocation size #7
Copy link
Copy link
Closed
Description
Hi. I am testing a secure allocator and found integer overflow.
Here is PoC code.
#include <stdio.h>
#include <stdlib.h>
int main() {
fprintf(stderr, "%p\n", malloc(-8));
}
$ LD_PRELOAD=$(pwd)/libisoalloc.so ./poc
0x7febb1fa3000It seems because you don't have integer overflow check in ROUND_UP_PAGE(size).
Line 674 in d433f3c
| size = ROUND_UP_PAGE(size); |
Best,
Insu Yun.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels