CVE-2016-3070: Null Pointer Dereference
A security flaw was found in the Linux kernel that an attempt to move page mapped by AIO ring buffer to the other node triggers NULL pointer dereference at tracewritebackdirtypage(), because aiofsbackingdevinfo.dev is 0.
Other sources
It was reported that attempt to move page mapped by aio ring buffer to other node triggers NULL pointer dereference at tracewritebackdirtypage(), because aiofsbackingdevinfo.dev is 0.
Product bug (contains reproducer):
https://bugzilla.redhat.com/showbug.cgi?id=1306851
Upstream patch:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=42cb14b110a5698ccf26ce59c4441722605a3743
— Red Hat
The tracewritebackdirtypage implementation in include/trace/events/writeback.h in the Linux kernel before 4.4 improperly interacts with mm/migrate.c, which allows local users to cause a denial of service (NULL pointer dereference and system crash) or possibly have unspecified other impact by triggering a certain page move.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/kernel-rtto a version that resolves this vulnerability.Fixed in 0:3.10.0-514.rt56.420.el7 - Upgrade
Upgrade
redhat/kernelto a version that resolves this vulnerability.Fixed in 0:3.10.0-514.el7 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 3.13.0-92.139 - Upgrade
Upgrade
ubuntu/linux-lts-utopicto a version that resolves this vulnerability.Fixed in 3.16.0-77.99~14.04.1 - Upgrade
Upgrade
ubuntu/linux-lts-vividto a version that resolves this vulnerability.Fixed in 3.19.0-65.73~14.04.1 - Upgrade
Upgrade
ubuntu/linux-lts-wilyto a version that resolves this vulnerability.Fixed in 4.2.0-42.49~14.04.1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 3.16.7-ckt25-2+deb8u2Fixed in 4.4.2-1 - Upgrade
Upgrade
Linux kernelto a version that resolves this vulnerability.Fixed in 4.4
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
Who can exploit this issue?
A local user can trigger the flaw. The provided vector requires local access and low privileges, with no user interaction required.
What conditions are needed to trigger the crash?
The issue is triggered when moving a page mapped by an AIO ring buffer to another NUMA node. This can cause a NULL pointer dereference in trace_writeback_dirty_page() because aio_fs_backing_dev_info.dev is zero.
What is the impact of successful exploitation?
Successful triggering can crash the system, causing a denial of service. The description also notes the possibility of other unspecified impact.
Which kernel versions are affected?
The affected implementation is described as Linux kernel versions before 4.4. The listed affected software includes Linux kernel packages from Ubuntu, Debian, and Red Hat, including realtime kernel variants.