gdb run as root: untrusted .gdbinit causes malloc arena corruption crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdb |
Invalid
|
Low
|
|||
gdb (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
When running gdb as root, the existence of ~/.gdbinit (untrusted) causes gdb to
crash with a duplicate free or other heap corruption.
This bug is due to some debian/ubuntu specific patches
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: gdb 7.5-0ubuntu2
ProcVersionSign
Uname: Linux 3.5.0-23-generic x86_64
NonfreeKernelMo
ApportVersion: 2.6.1-0ubuntu10
Architecture: amd64
Date: Fri Feb 22 17:36:12 2013
InstallationDate: Installed on 2011-10-31 (480 days ago)
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Release amd64+mac (20111012)
MarkForUpload: True
SourcePackage: gdb
UpgradeStatus: Upgraded to quantal on 2012-10-14 (131 days ago)
Changed in gdb: | |
importance: | Unknown → Low |
status: | Unknown → Invalid |
Created attachment 6888
Full backtrace
When running gdb as root, the existence of ~/.gdbinit (untrusted) causes gdb to crash with a duplicate free or other heap corruption.
Workaround: "mv ~/.gdbinit ~/gdbinit".
See attachment for full backtrace.
# gdb xxx gnu.org/ licenses/ gpl.html> www.gnu. org/software/ gdb/bugs/>...
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://
warning: not using untrusted file "/users/ joeuser/ .gdbinit"
*** glibc detected *** /usr/bin/gdb: double free or corruption (!prev): 0x0000000000f25940 ***