should be marked undumpable to avoid PTRACE attach

Bug #572045 reported by Kees Cook
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GNOME Keyring
Fix Released
Critical
GnuPG2
Fix Released
Unknown
gnome-keyring (Ubuntu)
Triaged
Wishlist
Unassigned
gnupg2 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: gnome-keyring

Programs that keep sensitive information in memory should avoid dumping core or being PTRACEable. Things like ssh-agent already accomplish this by calling:

        prctl(PR_SET_DUMPABLE, 0);

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: gnome-keyring 2.92.92.is.2.30.0-0ubuntu3
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic x86_64
Architecture: amd64
Date: Thu Apr 29 22:19:39 2010
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: gnome-keyring

Revision history for this message
Kees Cook (kees) wrote :
Revision history for this message
Kees Cook (kees) wrote :

To more directly illustrate:

$ gdb /usr/bin/ssh-agent $(pidof ssh-agent)
...
Attaching to program: /usr/bin/ssh-agent, process 16395
ptrace: Operation not permitted.

$ gdb /usr/bin/gpg-agent $(pidof gpg-agent)
...
Attaching to program: /usr/bin/gpg-agent, process 16396
...
0x00007f68d288af93 in __select_nocancel ()
    at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
 in ../sysdeps/unix/syscall-template.S
(gdb)

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

Changed in gnome-keyring (Ubuntu):
importance: Undecided → Wishlist
Changed in gnupg2 (Ubuntu):
status: New → Confirmed
Changed in gnome-keyring (Ubuntu):
status: New → Confirmed
Kees Cook (kees)
Changed in gnupg2 (Ubuntu):
importance: Undecided → Low
Changed in gnupg2:
status: Unknown → Fix Released
Changed in gnome-keyring:
status: Unknown → Confirmed
Changed in gnome-keyring (Ubuntu):
status: Confirmed → Triaged
Changed in gnome-keyring:
importance: Unknown → Critical
Changed in gnupg2:
status: Fix Released → Incomplete
Changed in gnupg2:
status: Incomplete → Fix Released
Changed in gnome-keyring:
status: Confirmed → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote :

This was actually fixed (with a Debian patch) in the gnupg 2.1.7-1 upload.

Changed in gnupg2 (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.