pidgin-otr should interrupt key creation attempt when /dev/random delivers not enough data

Bug #240640 reported by Caspar Clemens Mierau
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pidgin-otr (Debian)
Fix Released
Unknown
pidgin-otr (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: pidgin-otr

When creating a new otr key - either by calling the "Generate" button manually or an automatic attempt, pidgin gets frozen until this process is completed. The duration of this process heavily depends on the speed of /dev/random. Under some circumstances /dev/random does not deliver enough data. E.g. when using "synergy" as a mouse/keyboard sharing tool over tcp. It would be really helpfull when pidgin-otr would ask after a period of 30 or 60 seconds if it should proceed waiting for random data.

The most sophisticated way of course'd be asking the user if he wants to switch to /dev/urandon or just grab the movement of the mouse cursor directly.

Related branches

Revision history for this message
tshay (c-launchpad-deb-kunde-j8l-de) wrote :

Using /dev/random at all for such key generation seems totally inappropriate. Don't bother the user he doesn't care or at least he shouldn't. It breaks every other programm, which really needs highest quality entropy. To understand how severe this issue is, see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489523

What disturbed me most: This makes enabling a crypto-partition with a key from /dev/random hang. I had this problem when enabling swap. The proper fix was to use /dev/urandom for swap, since /dev/random offers no security advantage. In this particular case.

Is anyone who already knows the code willing to fix this? - Just changing /dev/random into /dev/urandom should be rather easy for anyone.

Revision history for this message
T-Bone (varenet) wrote :

Fix uploaded to debian as 3.2.0-2

Changed in pidgin-otr:
status: Unknown → Fix Released
Revision history for this message
Caspar Clemens Mierau (leitmedium) wrote :

Confirming as this has also been confirmed in Debian. Needs check against Intrepid.

Changed in pidgin-otr:
status: New → Confirmed
Revision history for this message
Felix Geyer (debfx) wrote :

Has been fixed in jaunty:

pidgin-otr (3.2.0-2) unstable; urgency=high

  * Make key generation use /dev/urandom (Closes: #489523)

 -- Thibaut VARENE <email address hidden> Thu, 10 Jul 2008 17:34:32 +0200

Changed in pidgin-otr (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Felix Geyer (debfx) wrote :

There's a regression in karmic.
It seems to be reading from /dev/urandom and /dev/random.

Changed in pidgin-otr (Ubuntu):
status: Fix Released → Confirmed
tags: added: regression-potential
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pidgin-otr - 3.2.0-4ubuntu1

---------------
pidgin-otr (3.2.0-4ubuntu1) karmic; urgency=low

  * otr-plugin.c: Fix: key generation doesn't use /dev/urandom with more recent
    libgcrypt versions (LP: #240640)
  * gtk-dialog.c: Allow to copy the fingerprints from the authentication dialog
    (LP: #310769)

 -- Felix Geyer <email address hidden> Mon, 28 Sep 2009 21:21:55 +0200

Changed in pidgin-otr (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
chrisballinger (chrisballinger) wrote :

This bug still exists on Ubuntu 13.10

 http://sourceforge.net/p/otr/bugs/22/

Revision history for this message
Thomas Balthazar (tbalthazar) wrote :

I also have the problem on Ubuntu 13.10 / Pidgin 2.10.7 / pidgin-otr 4.0.0-1.

Revision history for this message
J Fraczek (j-fraczek) wrote :

Same issue on Manjaro 3.16.7.8-1 / Pidgin-2.10.11-1 / pidgin-otr-4.0.1-2 / synergy-1.6.2.-1. Hung, then finally worked on mouse input after some time.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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