Comments

An important Linux fix

It's not often that Linux needs to be fixed, but a recently discovered security problem does deserve your attention.

View full article »
Chatter

Karmic

Checking in Karmic Koala, mine is in fact 0!! Although I do have Wine installed, but I shall be keeping my eye on updates, and having a look at those permanent fixes.
| reply

Karmic with wine = 0 for me as well.

I followed the instructions and got the bad news also. I too will wait (and hopefully not long) for the patched kernel. I was thinking about getting rid of WINE and well, I decided that's no solution for my needs.
| reply

Karmic (no-wine) OK :)

Checked and I'm fine - Thanks for a way to confirm.
| reply

Particular applications with wine need the 0 address accesable.

Note Particular applications. About 90 percent of time you can disable it with no ill effect.

Just moving it to 1 from 0 blocks the issue and lets all bar a few badly coded programs work.

As with all these things details get lost.

Simple thing to follow.
1) Disable it.
2) If applications don't work try value of 1.
3) If 0 is need really consider if you need that application.
| reply

No reboot?

"(...)like most Linux users, I tend to re-boot my systems once every blue moon, (...)"

Is that so? Do you leave your car with the engine idling away in the garage in the evening because you're going to need it in the morning again?

I switch my work computer off when I go home and switch my home computer off when I don't need it anymore. Why waste electricity on a system I don't need presently?

What I'd like to know: does that security risk apply only to non-privileged users with physical access to the computer or does it apply to users over the network, too, on a system which doesn't accept logins from outside anyway? Is it necessary for a user to have an account on the system in the first place in order to use this exploit? Because that would mean that most people who aren't running servers don't have a problem anyway.

| reply

Fedora ok

Just tried the test on Fedora 11 and 9. Both return non zero values.
| reply

Debian 5.x is 0

Debian 5.0.x has a value of 0 without wine installed. Debian 6 is 4096.

to fix Deb 5.x create a file /etc/sysctl.d/mmap_min_addr.conf with the following content


# Prevent kernel null pointer vulnerability
vm.mmap_min_addr=1024

| reply

OpenSuSE 11.1 ok

Just run a full update on my 11.1 32bit OpenSuSE with the vendor patches, and the number is 65536
| reply

openSuSE vulnerable?

I'm running openSuSE and I didn't change the setting manually, but on my machine the minimum pointer address is 65535, so it's not vulnerable.
| reply

SuSE fixed in August

Novell Security Advisory

Contrary to what is reported in the article, this was fixed in August 2009. See the link, love the SuSE :)

Excerpts:
Date: Thu, 20 Aug 2009 16:02:11 +0200

---- snip ----

The mmap_min_addr sysctl is now enabled by default to protect
against kernel NULL page exploits.
[SLE11, openSUSE 11.0-11.1]

The -fno-delete-null-pointer-checks compiler option is now used to
build the kernel to avoid gcc optimizing away NULL pointer checks.
Also -fwrapv is now used everywhere.
[SLES9, SLES10-SP2, SLE11, openSUSE]

| reply

this has already been

this has already been backported by most of the key vendors: i.e. redhat and debian, so most users are protected at this point
| reply

CentOS is fixed

Just checked my CentOS servers running 5.3 and 5.4, and it's fixed on them. Both releases show 4096. It's probably safe to say the upstream RHEL releases of 5.x are fixed as wwell.
| reply

Karmic

Most seem to be using Karmic.... Ubuntu's is the best hope for linux
| reply

This is already fixed

On kernels 6.31-rc3 onwards. And sure most of distros had backported it.
And the mmap_min > 0 trick didn't solve anything. Just make it non trivial. So don't feel safe just for this, exploiters will know already the workarounds.
Go here for more info:
http://blog.cr0.org/2009/06/bypassing-linux-null-pointer.html

You need a patched kernel or a kernel above 2.6.31-rc3
Karmic has it back to 0 to avoid dosemu and wine problems. (The mmap trick breaks it)

This article scares everyone and points to a wrong solution that adds even more confusion. More investigation next time, please.

| reply

1 after 65535

Or, you can use any other numeric value up to 65535

So, why can't the value be more than 65535?

My Hardy, with full updates, has a value of 65536.
| reply
Post a reply
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
peer-to-peer

Esther Schindler
If the comments are ugly, the code is ugly

claird
SVG a graphics format for 21st century

pasmith
Take Chrome OS for a test spin

Sandra Henry-Stocker
Solaris Tip: Have Your Files Changed Since Installation?

sjvn
64-bits of protection?

jfruh
Android fragments vs. the iPhone monolith

mikelgan
What Gizmodo missed about the Pro WX Wireless USB disk drive

 

Sidekick: The Good News & the Bad News
Either way you look at it Microsoft Data Center management did not follow standards or best practices in this failure. In which case it makes me wonder more about the outsourcing of corporate data much less personal data.
- mburton325

Join the conversation here

The Daily Tip

The Daily TipQuick, practical advice for IT pros. Made fresh daily.

Hot tips:

Want to cash in on your IT savvy? Send your tip to tips@itworld.com. If we post it, we'll send you a $25 Amazon e-gift card.

Newsletters

Subscribe to ITWORLD TODAY and receive the latest IT news and analysis.

I would like to receive offers via email from ITworld partners.
By clicking submit you agree to the terms and conditions outlined in ITworld's privacy policy.
Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

Marketplace