Web Hosting Talk


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : New kernel root exploits for RHEL/linux 2.6*
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)

 
Thread Tools Search this Thread Display Modes
  #46  
Old 08-17-2009, 10:02 PM
ngham4host ngham4host is offline
View Beta Profile
Newbie
 
Join Date: Jan 2005
Posts: 18
could you post the links and more info

Reply With Quote
Sponsored Links
  #47  
Old 08-18-2009, 12:08 AM
felosi felosi is offline
View Beta Profile
Web Hosting Master
 
Join Date: May 2006
Location: Tennesee
Posts: 1,205
Quote:
Originally Posted by ngham4host View Post
is it possible to upgrade the kernel to kernel 2.6.31 -rc6
on CentOS 4.7
my current kernel version is 2.6.9-78.0.13.ELsmp


regards,
no, we wont allow you. You are not allowed to do that.

lol, jk

But yeah, like they said, nothing can stop you from compiling your own kernel, except in your case with centos4 you may have to update binutils or maybe even gcc

__________________



Reply With Quote
  #48  
Old 08-18-2009, 12:16 AM
ngham4host ngham4host is offline
View Beta Profile
Newbie
 
Join Date: Jan 2005
Posts: 18
Quote:
Originally Posted by felosi View Post
no, we wont allow you. You are not allowed to do that.

lol, jk

But yeah, like they said, nothing can stop you from compiling your own kernel, except in your case with centos4 you may have to update binutils or maybe even gcc

lol


thanks felosi
for your reply

Reply With Quote
Sponsored Links
  #49  
Old 08-18-2009, 01:47 AM
tchryan tchryan is offline
View Beta Profile
Junior Guru Wannabe
 
Join Date: Aug 2008
Location: Troy, MI
Posts: 53
Quote:
Originally Posted by tchryan View Post
Temporarily patch off this issue as follows, let me stress the importance of updating CentOS/RHEL 4 systems as they can very easily be compromised through any vulnerable web applications. The same is true of CentOS/RHEL 5 systems where selinux is not properly disabled and mmap_minaddr > 0.

CentOS/RHEL 5 run:
http://www.rfxn.com/downloads/set_mmap_minaddr

then reboot

CentOS/RHEL 4 run:
http://www.rfxn.com/downloads/upkern_cos4

then reboot

WARNING: The centos/rhel 4 script updates your kernel, it will not migrate in custom kernel modules (which majority of people do not use). The versioning of this kernel update is inline with upstream kernels so when a proper centos/rhel update is released it will apply straight over my kernel without issue.

This kernel is an rpm built from the mainstream 2.6.30-5 kernel with sock_sendpage fix and version changed for compatibility with centos/rhel 4. This is not intended as a long term replacement for upstream kernels, just as a short term fix to the null deference local root exploit.
The upkern_cos4 now uses native RHEL4 patched rpm's built off the 2.6.9-78.0.x source rpm. I have confirmed the patch to socket.c working as intended and all 3 versions of pof exploits for sock_sendpage null deference fail to execute.

This took a little bit of doing as the standard patch for 2.6.30-5 does not work on the 2.6.9 socket.c, in the end I took a snippet of code from the 2.4.x tree with the fix as the socket.c from 2.4.x tree more accurately resembles that of 2.6.9 socket.c.

Please see the following if you would like to manually install:
http://bala.tchmachines.com/kernel-2...8.0.30.tch.EL/

__________________
Ryan MacDonald
Data Center Manager | TotalChoice Hosting
Choice Does Matter! | Serving over 26,000 clients

Reply With Quote
  #50  
Old 08-18-2009, 09:14 AM
karem karem is offline
View Beta Profile
Junior Guru Wannabe
 
Join Date: Aug 2005
Location: Egypt
Posts: 78
what about 2.6.29.5-grsec-xxxxx-4.2.0-x86_64-libata

__________________
Arabian Linux administrator

egyhaty@gmail.com


Reply With Quote
  #51  
Old 08-18-2009, 09:20 AM
Dougy Dougy is online now
View Beta Profile
Web Hosting Master
 
Join Date: May 2006
Location: NJ, USA
Posts: 2,823
grsec is not vulnerable

Reply With Quote
  #52  
Old 08-18-2009, 09:25 AM
nospa nospa is offline
View Beta Profile
New Member
 
Join Date: Aug 2009
Posts: 1
I've disabled direct root login, disabled php system functions, disabled root login from untrusted ips, disabled compilers except root, rmmod sctp module and removed all .ko files wich are affected from /lib/modules/[kernel-version/kernel/net, disabled SElinux - what else I can do to protect Centos4?

Reply With Quote
  #53  
Old 08-18-2009, 04:15 PM
zacharooni zacharooni is offline
View Beta Profile
Premium Member
 
Join Date: Apr 2005
Location: Lansing, MI
Posts: 1,092
Upgrade to CentOS 5 @nospa
If you need help configuring modules in make menuconfig try this page, it's helped me a lot:

http://kmuto.jp/debian/hcl/

Reply With Quote
  #54  
Old 08-18-2009, 04:51 PM
tchryan tchryan is offline
View Beta Profile
Junior Guru Wannabe
 
Join Date: Aug 2008
Location: Troy, MI
Posts: 53
Upgrading to CentOS5 does not patch the issue, people are clearly not understanding this. The only way to patch the issues is to UPGRADE YOUR KERNEL.

__________________
Ryan MacDonald
Data Center Manager | TotalChoice Hosting
Choice Does Matter! | Serving over 26,000 clients

Reply With Quote
  #55  
Old 08-18-2009, 05:06 PM
zacharooni zacharooni is offline
View Beta Profile
Premium Member
 
Join Date: Apr 2005
Location: Lansing, MI
Posts: 1,092
I didn't say it would patch it, I just said he should probably upgrade to 5
Patch it with grsec

[root@tau ~]# uname -sri
Linux 2.6.30.4-grsec-lockdown x86_64

Reply With Quote
  #56  
Old 08-18-2009, 05:17 PM
tchryan tchryan is offline
View Beta Profile
Junior Guru Wannabe
 
Join Date: Aug 2008
Location: Troy, MI
Posts: 53
Its worth noting again, grsec prevents successful execution of the exploit but the exploit is still there, upgrade the kernel. It has happened many times in the past where exploits blow clean through grsec and stands to reason it can and will happen again in the future. Further grsec implies additional maintenance requirements outside the scope of management ability for many individuals who depend on stable, reliable and regular binary kernel updates.

__________________
Ryan MacDonald
Data Center Manager | TotalChoice Hosting
Choice Does Matter! | Serving over 26,000 clients

Reply With Quote
  #57  
Old 08-18-2009, 06:16 PM
Doobla Doobla is offline
View Beta Profile
Junior Guru Wannabe
 
Join Date: Dec 2002
Posts: 39
Thanks for your work on this ryan. Much appreciated.

Reply With Quote
  #58  
Old 08-18-2009, 06:23 PM
StevenG StevenG is offline
View Beta Profile
Web Hosting Master
 
Join Date: Apr 2002
Location: Auckland - New Zealand
Posts: 1,438
Sometimes upgrading kernels brings with it, new exploits, yet unknown. That has happened before as well. Sometimes patching a stable and tested build of kernel is preferable to installing a new and un-tested but stable kernel. Checking changelogs between the installed and new version of kernel, is always recommended before upgrading the version.

I'd still recommend upgrading to the latest kernel, if you aren't comfortable with patching and I'd agree that grsec isn't all that.

__________________
Out Of Retirement
Still Fishing

Reply With Quote
  #59  
Old 08-19-2009, 02:02 AM
kgeedorah kgeedorah is offline
View Beta Profile
New Member
 
Join Date: Aug 2009
Posts: 1
Quote:
Originally Posted by tchryan View Post
The upkern_cos4 now uses native RHEL4 patched rpm's buil
[...snip...]
tchryhan:

Thanks for all the useful info thus far - could you provide your spec file for this build? (I'm sure you're above board - but some of us might want to build/patch our own RPMs).

Reply With Quote
  #60  
Old 08-21-2009, 09:43 PM
tchryan tchryan is offline
View Beta Profile
Junior Guru Wannabe
 
Join Date: Aug 2008
Location: Troy, MI
Posts: 53
kgeedorah the source rpm file is located in the download directory
http://bala.tchmachines.com/kernel-2...8.0.30.tch.EL/

WARNING: CENTOS 4.8 was released today which contains kernel 2.6.9-89.0.7, this kernel IS VULNERABLE.

[root@hoth ~]# uname -a
Linux hoth.tchmachines.com 2.6.9-89.0.7.ELsmp #1 SMP Fri Aug 14 10:12:44 EDT 2009 i686 i686 i386 GNU/Linux
[test@hoth ~]$ ./1397041_exp_nulldef_sendpage
[+] MAPPED ZERO PAGE!
[+] Resolved security_ops to 0xc0457740
[+] Resolved sel_read_enforce to 0xc01b3e27
[+] got ring0!
[+] detected 2.6 style 4k stacks
[+] Disabled security of : SELinux
[+] Got root!
sh-3.00#

You can still apply centos 4.8 updates with the following command:
yum update --exclude=kernel --exclude=kernel-smp --exclude=kernel-devel

__________________
Ryan MacDonald
Data Center Manager | TotalChoice Hosting
Choice Does Matter! | Serving over 26,000 clients

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel 2.6.16.20 -- Known exploits? sonixi Hosting Security and Technology 2 03-12-2007 05:54 PM
Rhel ES 3.0 and 2.6 kernel, is possible? awww Hosting Security and Technology 1 08-01-2005 09:20 PM
update RHEL kernel Lem0nHead Hosting Security and Technology 1 03-21-2005 02:45 AM
New linux root exploit is out! Need an upgraded kernel? Look here! LP-Trel Employment Offers (by employers) 1 01-08-2005 01:56 AM
RHEL root commands Bodeba Web Hosting 1 10-26-2004 07:02 AM