Bug 192474 - Command halts the system
Command halts the system
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: bash (Show other bugs)
5
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-19 17:21 EDT by Hugo Cisneiros
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-05-19 17:54:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Hugo Cisneiros 2006-05-19 17:21:34 EDT
Description of problem:

I don't know if this is really a bug in bash, but it's worthy looking. When 
any user executes a certain command, the system halts and becomes inaccessible 
(even with ssh). This is really annoying and brings some concerns about system 
security.

The command is:
(:(){ :|:;};:)

Version-Release number of selected component (if applicable):

bash-3.1-6.2

How reproducible:


Steps to Reproduce:
1. Open a terminal as any user (root or not root)
2. Type the following command: (:(){ :|:;};:)
3. Press Enter and see your system hanging and Hard Disk working.
Comment 1 Tim Waugh 2006-05-19 17:54:19 EDT
You need to set user limits with 'ulimit' or PAM's limits.conf.
Comment 2 Hugo Cisneiros 2006-05-19 18:14:59 EDT
Thank you for the input, I was already thinking of this... BTW, isn't be good 
to set a reasonable limit in FC defaults? As any user can execute that, normal 
users can be tricked to execute this, hanging the system. I think that 
preventing this per default is a good thing :) Just a thought.

Note You need to log in before you can comment on or make changes to this bug.