SHARE
Facebook X Pinterest WhatsApp

Fun with NULL pointers, part 2

Written By
JC
Jonathan Corbet
Jul 31, 2009

“One obvious problem is that when the security module mechanism
is configured into the kernel, the administrator-specified limits
on the lowest valid user-space virtual address are ignored security
modules are allowed to override the administrator-specified limit
(mmap_min_addr) on the lowest valid user-space address. This
behavior is a violation of the understanding by which security
modules operate: they are supposed to be able to restrict
privileges, but never increase them. In this case, the mere
presence of SELinux increased privilege, and the policy enforced by
most SELinux deployments failed to close that hole (comments in the
exploit code suggest that AppArmor fared no better).

“Additionally, with security modules configured out entirely,
mmap_min_addr was not enforced at all. The mainline now has a patch
which causes the map_min_addr sysctl knob to always be in effect;
this patch has also been put into the 2.6.27.27 and 2.6.30.2
updates (as have many of the others described here).

“Things are also being fixed at the SELinux level. Future
versions of Red Hat’s SELinux policy will no longer allow
unconfined (but otherwise unprivileged) processes to map pages into
the bottom of the address space. There are still some open
problems, though, especially when programs like WINE are thrown
into the mix. It’s not yet clear how the system can securely
support a small number of programs needing the ability to map the
zero page. Ideas like running WINE with root privilege – thus,
perhaps, carrying Windows-like behavior a little too far – have
garnered little enthusiasm.”

Complete Story

JC

Jonathan Corbet

Recommended for you...

A Thorough Approach to Improve the Privacy and Security of Your Linux PC
Damien
Oct 24, 2024
Several Russian Maintainers Removed From Linux Kernel Due To Compliance Concerns
Senthil Kumar
Oct 23, 2024
OpenSSH Splits Again: New Authentication Binary Unveiled
Bobby Borisov
Oct 16, 2024
13 Best Free and Open Source Anti-Malware Tools
webmaster
Oct 14, 2024
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.