KernelScan.io

HIGH

rust_binder VMA TOCTOU

CVE-2026-43434

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI6.2MEDIUM

01

In the Linux kernel, the following vulnerability has been resolved: rust_binder: check ownership before using vma When installing missing pages (or zapping them), Rust Binder will look up the vma in the mm by address, and then call vm_insert_page (or zap_page_range_single). However, if the vma is closed and replaced with a different vma at the same address, this can lead to Rust Binder installing pages into the wrong vma. By installing the page into a writable vma, it becomes possible to write to your own binder pages, which are normally read-only. Although you're not supposed to be able to write to those pages, the intent behind the design of Rust Binder is that even if you get that ability, it should not lead to anything bad. Unfortunately, due to another bug, that is not the case. To fix this, store a pointer in vm_private_data and check that the vma returned by vma_lookup() has the right vm_ops and vm_private_data before trying to use the vma. This should ensure that Rust Binder will refuse to interact with any other VMA. The plan is to introduce more vma abstractions to avoid this unsafe access to vm_ops and vm_private_data, but for now let's start with the simplest possible fix. C Binder performs the same check in a slightly different way: it provides a vm_ops->close that sets a boolean to true, then checks that boolean after calling vma_lookup(), but this is more fragile than the solution in this patch. (We probably still want to do both, but the vm_ops->close callback will be added later as part of the follow-up vma API changes.) It's still possible to remap the vma so that pages appear in the right vma, but at the wrong offset, but this is a separate issue and will be fixed when Rust Binder gets a vm_ops->close callback.

02

Engine v0.2.0

Risk summary

Local attackers with low privileges can exploit a race condition in Rust Binder's VMA handling to write to normally read-only binder pages. This could lead to memory corruption or privilege escalation by manipulating binder transaction data that should be immutable.

Affecteddrivers/android/binder/page_range.rs (Android Binder)

Vulnerability analysis

The vulnerability is a time-of-check time-of-use (TOCTOU) race condition in Rust Binder's memory management. When installing missing pages or zapping them, the driver looks up a VMA by address using vma_lookup(), but does not verify that the returned VMA is still the same binder-owned VMA before calling vm_insert_page() or zap_page_range_single(). An attacker can close and replace the VMA with a different (potentially writable) VMA at the same address between the lookup and use. This allows binder pages to be installed into a writable VMA, bypassing the intended read-only restrictions. The fix adds ownership verification by storing a pointer in vm_private_data and checking that both vm_ops and vm_private_data match expected values before using the VMA. The attack surface is local-only, requiring access to the binder device and the ability to manipulate memory mappings, which is typically available to unprivileged applications on Android.

03

BranchFixed inPatch commit
6.186.18.1920a01f20d1f4
6.196.19.95a472d04fb4b
mainline7.08ef2c15aeae0