Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72703 - x11-wm/fluxbox: Long title freeze
Summary: x11-wm/fluxbox: Long title freeze
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Commonbox Team
URL: http://quith.info/advisories/fluxboxf...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-28 02:14 UTC by Quith
Modified: 2004-12-06 14:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
long_title_fix.patch (long_title_dos_fix.patch,433 bytes, patch)
2004-11-28 05:15 UTC, Ciaran McCreesh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Quith 2004-11-28 02:14:16 UTC
Name: FluxBox
Homepage: http://www.fluxbox.org
Author: Quith <quith[at]linux-hell[dot]net>
Date: Fri Nov 26 15:07:30 UTC 2004

ISSUE:

FluxBox is a popular window manager for X, working under Linux/Unix operating
systems. It's based on BlackBox and has 100% theme/style compability.

(Xman is a manual page browser for the X Window Systems.)

DESCRIPTION:

FluxBox always freezes while executing XMAN or some other program with long value
of '-title' parameter. Simple example with perl interpreter:

$ xman -title `perl -e 'print "X" x 100000 '`

It was tested on 0.9.10 version and some older ones. Probably all are somehow
affected.

------------------------------
Quith <quith@linux-hell.net>
http://www.quith.info


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ciaran McCreesh 2004-11-28 05:11:52 UTC
http://www.securityfocus.com/archive/1/382398/2004-11-24/2004-11-30/2

Upstream are aware of the issue and are working on it. 0.9.11 is scheduled for release pretty soon, or we could apply the patch they make to 0.9.10 if necessary. According to upstream:
* openbox, pekwm, pwm3 and others have the same issue
* it's not just titles
* disabling xft is a workaround
* a quick fix if we don't want to wait for a full solution would be to limit the WM_NAME assignment in WinClient to 500 or less
Comment 2 Ciaran McCreesh 2004-11-28 05:15:44 UTC
Created attachment 44859 [details, diff]
long_title_fix.patch

upstream provided quick workaround. Security peeps -- do we go with this and do
a new rev to 0.9.10 or do we stick around and wait for a real fix?
Comment 3 Quith 2004-11-28 06:37:31 UTC
apply the patch in 0.9.11 version, it's not a critical bug.
Comment 4 Luke Macken (RETIRED) gentoo-dev 2004-11-28 08:19:08 UTC
This bug is not very critical, and hardly a vulnerability.  As long as upstream is  working on a fix, I personally don't think we need to patch it right away.

I use openbox, and that command freezes it for like 5 seconds, then works fine again. 

Ciaran, if you can get a list of all effected packages, we can then contact their upstreams and make sure this gets taken care of.
Comment 5 Mathias Gumz 2004-11-28 15:25:37 UTC
hi,

such long WM_NAME's are a problem for pekwm, openbox, pwm3, ion3, fluxbox, i deeply suspect blackbox too.

kde works, xfce4 and metacity works too but both use a toolkit to do things "right" i guess. and i doubt that kdelibs or gnome render all 10000 chars of the string. i somehow suspect xft to be the issue here, but i am not sure.
Comment 6 Thierry Carrez (RETIRED) gentoo-dev 2004-11-30 04:59:33 UTC
Quith :

Trying to determine if this can be considered a vulnerability... What would be the modus operandi ? User of the *box WM would run (or be tricked to run) a command that would freeze his own WM ? Or anything else I didn't think of ? If that's the only trigger, I can think of a dozen other commands that would eat up ressources as well. Unless a remote user (or a local user but not the one using the WM) can somehow trigger this, I don't think it should be considered a vulnerability... but just a bug that should be fixed.

Please prove me wrong, I may miss the necessary info :)
Comment 7 Luke Macken (RETIRED) gentoo-dev 2004-12-03 07:37:45 UTC
I say we bump 0.9.10 with the patch, and move on.

Ciaran/Security, your opinion?
Comment 8 Luke Macken (RETIRED) gentoo-dev 2004-12-06 08:43:03 UTC
This is not a security vulnerability.  Re-assigning to commonbox.
Comment 9 Ciaran McCreesh 2004-12-06 14:23:09 UTC
0.9.11 in the tree.