Linux BASH | Fedora | Ubuntu

Taken from this page – http://fedoramagazine.org/flaw-discovered-in-the-bash-shell-update-your-fedora-systems/

Seems like a security flaw has been discovered in BASH

You can see if you’re affected by running this command

env x='() { :;}; echo OOPS' bash -c /bin/true

And if that command returns OOPS, then your bash shell is vulnerable. If you are running a patched bash, output should look something like:

bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x’

If you’re running a rpm based system, then you can alternatively check this.

Alternatively, you can run the following command on your system to check which version of bash installed :

rpm -q bash

and make sure it is not older than:

Fedora 19: bash-4.2.47-2.fc19
Fedora 20: bash-4.2.47-4.fc20
Fedora 21: bash-4.3.22-3.fc21

Perhaps you don’t want to wait for the updates to make their way through the signing and mirroring systems. If not, you can download them right away from the official Fedora package build system and install them, using the following commands:

Fedora 21 Alpha

Run these commands:

su -c "yum -y install koji"   # provide root password...
koji download-build --arch=$(uname -m) bash-4.3.22-3.fc21
su -c "yum localinstall bash-4.3.22-3.fc21.$(uname -m).rpm"   # provide root password again...

Fedora 20

Run these commands:

su -c "yum -y install koji"   # provide root password...
koji download-build --arch=$(uname -m) bash-4.2.47-4.fc20
su -c "yum localinstall bash-4.2.47-4.fc20.$(uname -m).rpm"   # provide root password again...

Fedora 19

Run these commands:

su -c "yum -y install koji"   # provide root password...
koji download-build --arch=$(uname -m) bash-4.2.47-2.fc19
su -c "yum localinstall bash-4.2.47-2.fc19.$(uname -m).rpm"   # provide root password again...

If you’re running an apt system, then you should be able to just run the updater

sudo apt-get update ;; sudo apt-get dist-upgrade
Advertisements

2 thoughts on “Linux BASH | Fedora | Ubuntu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s