Join the community today
Register Now

Security glibc vulnerability CVE-2015-7547

Discussion in 'CentOS, Redhat & Oracle Linux News' started by dorobo, Feb 17, 2016.

  1. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    11:35 AM
    latest
    latest
  2. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah explains why i got a yum update notice for this :)

    centos 6
    Code:
    rpm -qa --changelog glibc | head -n3
    * Thu Jan 28 2016 Carlos O'Donell <carlos@redhat.com> - 2.12-1.166.7
    - Update fix for CVE-2015-7547 (#1296028).
    centos 7
    Code:
    rpm -qa --changelog glibc | head -n9
    * Fri Feb 05 2016 Florian Weimer <fweimer@redhat.com> - 2.17-106.4
    - Revert problematic libresolv change, not needed for the
      CVE-2015-7547 fix (#1296030).
    
    * Fri Jan 15 2016 Carlos O'Donell <carlos@redhat.com> - 2.17-106.3
    - Fix CVE-2015-7547: getaddrinfo() stack-based buffer overflow (#1296030).
    - Fix madvise performance issues (#1298930).
    - Avoid "monstartup: out of memory" error on powerpc64le (#1298956).
    
     
    Last edited: Feb 17, 2016
  3. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    CVE-2015-7547 - Red Hat Customer Portal

     
  4. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    11:35 AM
    Mainline
    10.2
    Thanks!
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    11:35 AM
    Mainline
    10.2
    And some that I work for don't want me to auto update MariaDB :D.
    They don't want even just a second downtime without preparation or doing on off peak hours.
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Working on my own yum-cron script specific to Centmin Mod stack environments too https://community.centminmod.com/posts/24401/
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI, folks might need to reboot their servers after glibc update due to services that use glibc or at the very least restart services which use glibc
    list of processes on centos 7 install that use glibc for me
    Code:
    lsof | awk '/libc-/ {print $2,$1,$4,$NF}' | uniq
    1 systemd mem /usr/lib64/libc-2.17.so
    100 dbus-daem mem directory)
    115 agetty mem directory)
    117 agetty mem directory)
    358 sshd mem directory)
    360 bash mem directory)
    657 systemd-u mem /usr/lib64/libc-2.17.so
    662 systemd-j mem /usr/lib64/libc-2.17.so
    1074 sshd mem /usr/lib64/libc-2.17.so
    1116 systemd-l mem /usr/lib64/libc-2.17.so
    3006 php-fpm mem /usr/lib64/libc-2.17.so
    3006 php-fpm mem /usr/lib64/libc-client.so.2007
    7500 master mem /usr/lib64/libc-2.17.so
    7502 qmgr mem /usr/lib64/libc-2.17.so
    10670 nsd mem /usr/lib64/libc-2.17.so
    10672 nsd mem /usr/lib64/libc-2.17.so
    10673 nsd mem /usr/lib64/libc-2.17.so
    10698 mysqld mem /usr/lib64/libc-2.17.so
    10698 mysqld mysql /usr/lib64/libc-2.17.so
    11965 bash mem /usr/lib64/libc-2.17.so
    12059 nginx mem /usr/lib64/libc-2.17.so
    12060 nginx mem /usr/lib64/libc-2.17.so
    12060 nginx nginx /usr/lib64/libc-2.17.so
    12061 nginx mem /usr/lib64/libc-2.17.so
    12061 nginx nginx /usr/lib64/libc-2.17.so
    12147 pickup mem /usr/lib64/libc-2.17.so
    12164 crond mem /usr/lib64/libc-2.17.so
    12243 lfd mem /usr/lib64/libc-2.17.so
    12334 lsof mem /usr/lib64/libc-2.17.so
    12335 awk mem /usr/lib64/libc-2.17.so
    12336 uniq mem /usr/lib64/libc-2.17.so
    12337 lsof mem /usr/lib64/libc-2.17.so
    12370 pure-ftpd mem /usr/lib64/libc-2.17.so
    12626 rsyslogd mem /usr/lib64/libc-2.17.so
    12626 in:imjour root /usr/lib64/libc-2.17.so
    12626 rs:main root /usr/lib64/libc-2.17.so
    21335 memcached mem /usr/lib64/libc-2.17.so
    21335 memcached nobody /usr/lib64/libc-2.17.so
    for centos 6.x services with init.d files
    Code:
    for s in $(lsof | awk '/libc-/ {print $1}' | uniq ); do if [ -f /etc/init.d/$s ]; then echo $s; fi; done
    nsd
    lfd
    php-fpm
    sshd
    ntpd
    haveged
    memcached
    nginx
    crond
    sshd
    Code:
    for s in $(lsof | awk '/libc-/ {print $1}' | uniq ); do if [ -f /etc/init.d/$s ]; then ps aux | grep $s | grep -v grep >/dev/null; ON=$?;    if [[ "$ON" = '0' ]]; then echo $s;  echo "/etc/init.d/$s restart";  /etc/init.d/$s restart; fi;    fi; done
    For CentOS 7 Critical glibc buffer overflow vulnerability in getaddrinfo() on Linux (CVE-2015-7547 & CVE-2015-5229)
    Code:
    systemctl daemon-reexec
     
    Last edited: Feb 18, 2016
  9. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Media coverage
    guess more updates to come ?
    sheer luck ?
    for GHOST glibc Vulnerability Affects WordPress and PHP applications

    i get
    Code:
    php -r '$e="0";for($i=0;$i<2500;$i++){$e="0$e";} gethostbyname($e);' Segmentation fault
    PHP Warning:  gethostbyname(): Host name is too long, the limit is 255 characters in Command line code on line 1
    
    Code:
    php -r '$e="0";for($i=0;$i<2500;$i++){$e="0$e";} gethostbyname($e);'                  
    PHP Warning:  gethostbyname(): Host name is too long, the limit is 255 characters in Command line code on line 1
     
    Last edited: Feb 18, 2016
  10. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    11:35 AM
    1.15.x
    MariaDB 10.3.x
  11. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah that's why my centmin mod custom yumupdates.sh script I am working on (based off of yum-cron), will also detect glibc package updates (via querying the yum history info id of last yum update made) and auto restart all services attached associated with libc-* AND are actually services which are already running ONLY. Not 100% fool proof, but a stop gap measure until you can schedule a server reboot i.e. when sleeping :D
     
  12. Matt

    Matt Well-Known Member

    932
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    3:35 AM
    1.5.15
    MariaDB 10.2
    I'm just going through and prepping everything for reboots over night tonight. All the cPanel servers have already got the update from the nightly yum.cron they run.
     
  13. Matt

    Matt Well-Known Member

    932
    415
    63
    May 25, 2014
    Rotherham, UK
    Ratings:
    +671
    Local Time:
    3:35 AM
    1.5.15
    MariaDB 10.2
  14. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yup reboot is best when you can :)
     
  15. trxerz

    trxerz Member

    69
    5
    8
    Jun 25, 2015
    Ratings:
    +7
    Local Time:
    3:35 AM
  16. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    check your spam and junk folders as emails from root usually get trapped there - you can setup a filter rule for emails from root@yourhostname to not go to spam and label/filter then etc

    rpm changelog commands posted at Security - glibc vulnerability CVE-2015-7547 | Centmin Mod Community should verify if you have CVE-2015-7547 fixed