CVE-2011-1781: Divide by Zero
A flaw was discovered in systemtap's handling of DWARF expressions where it did not guard against divide by zero when unwinding the stack. This can result in a kernel div-by-zero message and possible busywait during stap module shutdown. A div-by-zero could cause the kernel to panic and if the kernel reboot on panic flag was set (paniconoops), it would cause the system to reboot.
In order to trigger this flaw, an admin would have to enable unprivileged mode. If an admin has enabled unprivileged mode, a normal user could use this to crash the target machine.
A workaround is to disable unprivileged mode.
Other sources
SystemTap 1.4, when unprivileged (aka stapusr) mode is enabled, allows local users to cause a denial of service (divide-by-zero error and OOPS) via a crafted ELF program with DWARF expressions that are not properly handled by a stap script that performs stack unwinding (aka backtracing).
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Disable unprivileged (stapusr) mode.
SystemTap unprivileged (stapusr) mode = disabled
Event History
Frequently Asked Questions
What is the severity of CVE-2011-1781?
CVE-2011-1781 has a severity rating of medium due to its potential to cause a denial of service.
How do I fix CVE-2011-1781?
To fix CVE-2011-1781, upgrade SystemTap to a version later than 1.4 where the vulnerability has been resolved.
Who is affected by CVE-2011-1781?
CVE-2011-1781 affects users running SystemTap version 1.4 with unprivileged mode enabled.
What type of attack does CVE-2011-1781 facilitate?
CVE-2011-1781 facilitates a local denial of service attack through crafted ELF programs.
What are the symptoms of CVE-2011-1781 exploitation?
Exploitation of CVE-2011-1781 may lead to a divide-by-zero error and OOPS in the affected system.