CVE-2012-1146: Null Pointer Dereference

Published Mar 7, 2012
·
Updated

Last updated 24 July 2024

Other sources

The memcgroupusageunregisterevent function in mm/memcontrol.c in the Linux kernel before 3.2.10 does not properly handle multiple events that are attached to the same eventfd, which allows local users to cause a denial of service (NULL pointer dereference and system crash) or possibly have unspecified other impact by registering memory threshold events.

Launchpad

There is an issue when memcg unregisters events that were attached to the same eventfd:

- On the first call memcgroupusageunregisterevent() removes all events attached to a given eventfd, and if there were no events left, thresholds->primary would become NULL;

- Since there were several events registered, cgroups core will call memcgroupusageunregisterevent() again, but now kernel will oops, as the function doesn't expect that threshold->primary may be NULL.

FWIW, w/o the patch the following oops may be observed:

BUG: unable to handle kernel NULL pointer dereference at 0000000000000004 IP: [<ffffffff810be32c>] memcgroupusageunregisterevent+0x9c/0x1f0 Pid: 574, comm: kworker/0:2 Not tainted 3.3.0-rc4+ #9 Bochs Bochs RIP: 0010:[<ffffffff810be32c>] [<ffffffff810be32c>] memcgroupusageunregisterevent+0x9c/0x1f0 RSP: 0018:ffff88001d0b9d60 EFLAGS: 00010246 Process kworker/0:2 (pid: 574, threadinfo ffff88001d0b8000, task ffff88001de91cc0) Call Trace: [<ffffffff8107092b>] cgroupeventremove+0x2b/0x60 [<ffffffff8103db94>] processonework+0x174/0x450 [<ffffffff8103e413>] workerthread+0x123/0x2d0

A local attacker able to register threshold events could use this flaw to crash the system.

Upstream commit: http://git.kernel.org/linus/371528c

Red Hat

Affected Software

7 affected components
debian/linux-2.6
Linux Linux kernel<3.2.10
Fedoraproject Fedora=16
SUSE Linux Enterprise Desktop=11-sp2
SUSE Linux Enterprise High Availability Extension=11-sp2
SUSE Linux Enterprise Server Vmware=11-sp2
SUSE Linux Enterprise Server=11-sp2

Event History

Mar 7, 2012
Data Sourced
via Red Hat·10:33 AM
DescriptionSeverityAffected Software
May 17, 2012
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Data Sourced
via NVD·11:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·09:58 PM
Description
Sep 15, 2024
Data Sourced
via Ubuntu·10:44 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2012-1146?

CVE-2012-1146 has a medium severity rating as it allows local users to trigger a denial of service.

2

How do I fix CVE-2012-1146?

To fix CVE-2012-1146, update the Linux kernel to version 3.2.10 or later.

3

Which Linux versions are affected by CVE-2012-1146?

CVE-2012-1146 affects Linux kernel versions prior to 3.2.10.

4

What type of vulnerability is CVE-2012-1146?

CVE-2012-1146 is a denial of service vulnerability caused by improper handling of multiple eventfd events.

5

Can CVE-2012-1146 impact system stability?

Yes, CVE-2012-1146 can lead to system crashes due to NULL pointer dereferences.

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