Bug 39222
Summary: | Timerace in sys_execve when copying argv/env data from userspace | ||
---|---|---|---|
Product: | Other | Reporter: | me |
Component: | Other | Assignee: | other_other |
Status: | NEW --- | ||
Severity: | normal | CC: | xerofoify |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.0.0-rc2 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
me
2011-07-12 14:53:29 UTC
Sorry imprecise: POC for timerace is available, exploitation not very complicated using CLONE_VM, but POC failed to trigger any OOPSes or lead to privilege escalation. Here is the POC: * Two processes in same memory space, one doing exec, one changing arg data: http://www.halfdog.net/Security/2011/KernelExecveArgvCopyTimerace/ExecArgAllTimerace.c * Tool to detect when race was successful: http://www.halfdog.net/Security/2011/KernelExecveArgvCopyTimerace/ArgAnomalyDetect.c * Call it via test script to show arg0-removal: http://www.halfdog.net/Security/2011/KernelExecveArgvCopyTimerace/TestScript.sh Please test this bug against a newer kernel to see if it's fixed. Thanks Nick |