ghost on mageia 3

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

ghost on mageia 3

Postby leon244 » Jan 29th, '15, 02:41

Is there a way for me to patch glibc on Mageia3 against the Ghost vulnerability?
leon244
 
Posts: 127
Joined: Jun 4th, '11, 19:41
Location: Massachusetts, USA

Re: ghost on mageia 3

Postby benmc » Jan 29th, '15, 07:37

As Mageia 3 is End of Life- no longer officially supported, it is unlikely that a patched glibc will be provided by Mageia.

from ZDnet " the bug had actually been patched with a minor bug fix released on May 21, 2013 between the releases of glibc-2.17 and glibc-2.18."
therefore, if your glibc version is 2.18, you should be ok.
you can check ẗo see if you are vulnerable by following this " http://www.cyberciti.biz/faq/cve-2015-0 ... hel-linux/ ",

have you considered upgrading to Mageia 4.1?

regards

Benmc
benmc
 
Posts: 1215
Joined: Sep 2nd, '11, 12:45
Location: Pirongia, New Zealand

Re: ghost on mageia 3

Postby leon244 » Jan 29th, '15, 14:10

thank you. I have tested and am vulnerable. I have considered 4.1, but was planning to wait for 5. Since updating for me is a fresh install (I am leary of an update) and a lot of work, I wanted to wait for Mageia5 which, I believe, should be out in a couple of months. I guess I will just have to wait and take my chances.
leon244
 
Posts: 127
Joined: Jun 4th, '11, 19:41
Location: Massachusetts, USA

Re: ghost on mageia 3

Postby gregms » Jan 29th, '15, 17:59

So is the source rpm version that is out there: glibc-2.20-14.mga5.src.rpm is that one vulnerable or not?
gregms
 
Posts: 1
Joined: Jan 29th, '15, 04:46

Re: ghost on mageia 3

Postby jkerr82508 » Jan 29th, '15, 18:39

No, glibc-2.20-14.mga5 is not vulnerable. Nor is the current version for Mageia 4, glibc-2.18-9.8.mga4

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: ghost on mageia 3

Postby claire » Jan 30th, '15, 20:59

As far as I'm aware, it's only exim mailserver which has been shown to be remotely exploitable by the ghost vulnerability. Unless you expose services to the public or are worried about others who may use your computer potentially finding a privilege escalation, it's not as urgent as the popular media suggest it to be.

If you are still using Mageia 3 then you haven't had any updates for some time now and probably have bigger things to worry about, like flash updates etc. If you're using Mageia 3 still and you are exposing services to the public however then I'd recommend not doing so until you upgrade.
Help to make Mageia! Get involved.. Please come and join us
claire
 
Posts: 161
Joined: May 28th, '11, 19:17
Location: UK

Re: ghost on mageia 3

Postby jiml8 » Jan 31st, '15, 23:42

For anyone who is interested, this code shows the vulnerability. I picked it up on another board.
Code: Select all
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>

#define CANARY "in_the_coal_mine"

struct {
char buffer[1024];
char canary[sizeof(CANARY)];
} temp = { "buffer", CANARY };

int main(void) {
struct hostent resbuf;
struct hostent *result;
int herrno;
int retval;

/*** strlen (name) = size_needed - sizeof (*host_addr) - sizeof (*h_addr_ptrs) - 1; ***/
size_t len = sizeof(temp.buffer) - 16*sizeof(unsigned char) - 2*sizeof(char *) - 1;
char name[sizeof(temp.buffer)];
memset(name, '0', len);
name[len] = '\0';

retval = gethostbyname_r(name, &resbuf, temp.buffer, sizeof(temp.buffer), &result, &herrno);

if (strcmp(temp.canary, CANARY) != 0) {
puts("vulnerable");
exit(EXIT_SUCCESS);
}
if (retval == ERANGE) {
puts("not vulnerable");
exit(EXIT_SUCCESS);
}
puts("should not happen");
exit(EXIT_FAILURE);
}
jiml8
 
Posts: 1254
Joined: Jul 7th, '13, 18:09

ghost on mageia 3

Postby Brain » Feb 4th, '15, 15:54

Hi, i've create rpm patched packages for mageia3 this night. I'll test them this afternoon. If it's ok, i'll put them on my website.

best regards,

--
Christophe Casalegno
http://www.christophe-casalegno.com

Moved from moderation-queue by moderator
Brain
 
Posts: 3
Joined: Feb 4th, '15, 15:53

Re: ghost on mageia 3

Postby Brain » Feb 4th, '15, 16:36

Hi, after tests i've succefully patched Glibc againt GHOST vulnerability. I'll put patched rpm online in the next hours,

best regards,

--
Christophe Casalegno
http://www.christophe-casalegno.com
Brain
 
Posts: 3
Joined: Feb 4th, '15, 15:53

Re: ghost on mageia 3

Postby Brain » Feb 4th, '15, 20:30

Tests are ok : http://www.christophe-casalegno.com/201 ... 2-mageia3/

PS : dont forget to backup, etc. before. I've patched more than 25 servers this afternoon with success.

best regards,

--
Christophe Casalegno
http://www.christophe.casalegno.com
Brain
 
Posts: 3
Joined: Feb 4th, '15, 15:53


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest