CVE-2012-2133: Use After Free

Published Apr 30, 2012
·
Updated

Last updated 24 July 2024

Other sources

There is a use after free bug in the kernel hugetlb code. The bug can allow an authenticated, unprivileged local attacker to crash the system (and possibly gain higher privileges) if huge pages are enabled in the system.

A fix has been committed to upstream, commit 90481622d75715bfcb68501280a917dbfe516029 "hugepages: fix use after free bug in "quota" handling"

Version-Release number of selected component (if applicable): The bug exists in kernel versions 2.6.24 and above.

How reproducible: The attached tarball includes an example code which utilizes a fuse mount with ODIRECT flag to reproduce the issue. The code will work only on kernels 2.6.32 and above since it uses the new "anonymous mapping" API for getting huge pages. Similar reproduction is possible when using the shmem API or the hugetlbfs API. Stock kernel might not crash, debug kernel will detect the corruption and kill the process.

Steps to Reproduce: 1. Untar the attached file 2. Run runtest.sh. The fuse-devel package and sudo rights are required for the fuse mount. Sudo rights are also required for enabling huge pages. 3. Observe the kernel crash when running debug kernel. Normal kernels will (usually) not crash, as the slab allocator will not return the memory blocks to the system general pool for a while.

Actual results: A general protection fault message is printed, and the server is frozen.

Expected results: The process should exit without the kernel crashing.

Additional info: Verified on RHEL 6.0 with Dell PowerEdge 2950, should exist also on RHEL 6.2 and 6.1.

Upstream commit: http://git.kernel.org/linus/90481622d75715bfcb68501280a917dbfe516029

Acknowledgements:

Red Hat would like to thank Shachar Raindel for reporting this issue.

Red Hat

Use-after-free vulnerability in the Linux kernel before 3.3.6, when huge pages are enabled, allows local users to cause a denial of service (system crash) or possibly gain privileges by interacting with a hugetlbfs filesystem, as demonstrated by a umount operation that triggers improper handling of quota data.

Launchpad

Affected Software

7 affected components
debian/linux-2.6
Linux Linux kernel<=3.3.5
Linux Linux kernel=3.3
Linux Linux kernel=3.3.1
Linux Linux kernel=3.3.2
Linux Linux kernel=3.3.3
Linux Linux kernel=3.3.4

Event History

Apr 30, 2012
Data Sourced
via Red Hat·01:05 AM
DescriptionSeverityAffected Software
Jul 3, 2012
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·09:58 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·12:49 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2012-2133?

CVE-2012-2133 has a severity rating that indicates it can allow an authenticated, unprivileged local attacker to crash the system or gain heightened privileges when huge pages are enabled.

2

How do I fix CVE-2012-2133?

To fix CVE-2012-2133, ensure you apply the latest patches from your Linux distribution that address this vulnerability.

3

Which versions of the Linux kernel are affected by CVE-2012-2133?

CVE-2012-2133 affects Linux kernel versions up to and including 3.3.5.

4

What exploitability concerns are associated with CVE-2012-2133?

CVE-2012-2133 poses a risk as it allows a local attacker to exploit the vulnerability, potentially leading to system crashes or privilege escalation.

5

Is CVE-2012-2133 present in all Linux distributions?

CVE-2012-2133 may be present in Linux distributions that utilize the vulnerable versions of the Linux kernel, specifically those using huge pages.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203