Closed
Bug 1156769
Opened 11 years ago
Closed 10 years ago
A web page can easily bring down the x server by creating large canvases (or many small ones) on Linux
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: nical, Unassigned)
Details
(Keywords: csectype-dos, sec-moderate, Whiteboard: [gfx-noted])
Allocating xlib surfaces creates memory that belongs to the x server. If we create many of them and run out of memory, the x server is killed by the low memory killer along with the desktop and all open applications rather than just firefox. It's trivial to have a page create a bunch of very large canvases and see the x server getting killed instead of the firefox process, and this seems pretty bad.
We could do what we do on firefox OS and have all xlib allocations be made by a dedicated thread (in the compositor process with e10s), which ensures that we don't do too many allocations. I suppose it's the best solution as far as security is concerned, though it has a performance penalty.
we could mitigate the issue by restricting the content thread to a maximum memory budget for canvases and video, and disallow unreasonable sizes for these elements individually (though a compromised content process would still be able to do some damage). Thoughts?
| Reporter | ||
Updated•11 years ago
|
Summary: A web page can easily bring down the x server by creating large canvases (or many small ones) → A web page can easily bring down the x server by creating large canvases (or many small ones) on Linux
Updated•11 years ago
|
Keywords: csectype-dos,
sec-moderate
Comment 1•11 years ago
|
||
To be explicit, why is killing the X server a security risk?
Comment 2•11 years ago
|
||
I'm also unclear as to why this would be security sensitive.
Flags: needinfo?(dveditz)
Whiteboard: [gfx-noted]
Comment 3•11 years ago
|
||
Actually, my apologies, I suppose I see why it's annoying and could be considered a DOS to lose your x-server. But I feel it's less bad than bringing down an entire machine I suppose.
Flags: needinfo?(dveditz)
Updated•10 years ago
|
Group: core-security → gfx-core-security
| Reporter | ||
Comment 4•10 years ago
|
||
Fixed by disabling xrender.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Group: gfx-core-security → core-security-release
Updated•7 years ago
|
Group: core-security-release
You need to log in
before you can comment on or make changes to this bug.
Description
•