首页 > 电脑控 > Linux Bash 2014-09-24严重漏洞修复
2014
09-25

Linux Bash 2014-09-24严重漏洞修复

接到阿里云短信和邮件紧急通知,不得从床上爬起来把漏洞补上。
Redhat官网报告:https://access.redhat.com/security/cve/CVE-2014-6271

【漏洞检测方法】
打开ssl,输入:

env x='() { :;}; echo vulnerable' bash -c "echo this is a test"

输出: this is a test
则需要修复

【修复方法】
请您根据Linux版本选择您需要修复的命令, 为了防止意外情况发生,建议您执行命令前先对Linux服务器系统盘打个快照,如果万一出现升级影响您服务器使用情况,可以通过回滚系统盘快照解决。
后台查看linux版本,再选择下面修复方法。
centos:
yum -y update bash

ubuntu:
14.04 64bit
wget http://mirrors.aliyun.com/fix_stuff/bash_4.3-7ubuntu1.1_amd64.deb && dpkg -i bash_4.3-7ubuntu1.1_amd64.deb

14.04 32bit
wget http://mirrors.aliyun.com/fix_stuff/bash_4.3-7ubuntu1.1_i386.deb && dpkg -i bash_4.3-7ubuntu1.1_i386.deb

12.04 64bit
wget http://mirrors.aliyun.com/fix_stuff/bash_4.2-2ubuntu2.2_amd64.deb && dpkg -i bash_4.2-2ubuntu2.2_amd64.deb

12.04 32bit
wget http://mirrors.aliyun.com/fix_stuff/bash_4.2-2ubuntu2.2_i386.deb && dpkg -i bash_4.2-2ubuntu2.2_i386.deb

10.10 64bit
wget http://mirrors.aliyun.com/fix_stuff/bash_4.1-2ubuntu3.1_amd64.deb && dpkg -i bash_4.1-2ubuntu3.1_amd64.deb

10.10 32bit
wget http://mirrors.aliyun.com/fix_stuff/bash_4.1-2ubuntu3.1_i386.deb && dpkg -i bash_4.1-2ubuntu3.1_i386.deb

debian:
7.5 64bit && 32bit
apt-get -y install –only-upgrade bash

6.0.x 64bit
wget http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3%2bdeb6u1_amd64.deb && dpkg -i bash_4.1-3+deb6u1_amd64.deb

6.0.x 32bit
wget http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3%2bdeb6u1_i386.deb && dpkg -i bash_4.1-3+deb6u1_i386.deb

opensuse:
13.1 64bit
wget http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.x86_64.rpm && rpm -Uvh bash-4.2-68.4.1.x86_64.rpm

13.1 32bit
wget http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.i586.rpm && rpm -Uvh bash-4.2-68.4.1.i586.rpm

aliyun linux:
5.x 64bit
wget http://mirrors.aliyun.com/centos/5/updates/x86_64/RPMS/bash-3.2-33.el5.1.x86_64.rpm && rpm -Uvh bash-3.2-33.el5.1.x86_64.rpm

5.x 32bit
wget http://mirrors.aliyun.com/centos/5/updates/i386/RPMS/bash-3.2-33.el5.1.i386.rpm && rpm -Uvh bash-3.2-33.el5.1.i386.rpm

【漏洞检测是否修复成功】
打开ssl,输入:
env x='() { :;}; echo vulnerable’ bash -c “echo this is a test”
输出:
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x’
this is a test
代表修复成功。


Linux Bash 2014-09-24严重漏洞修复》有 7 条评论

  1. Tibetanarms 说:

    centos:
    yum -y update bash

    ubuntu: ——这条代码以下是什么意思?博主 Linux Bash 2014-09-24严重漏洞修复 - 第1张  | 昆特斯装备控

  2. 逗比妹 说:

    centos代码是错的,修复不了,应该用yum update -y bash

  3. 暗語清風 说:

    centOS升级后重启还是提示this is a test

  4. 阿里云放出最终修复方案了:www.kuntesi.com/jsk/linux-bash-2.html