Skip to main content
Vulnerability Database/CVE-2026-98776

CVE-2026-98776: Linux Kernel binderfs UAF Vulnerability

CVE-2026-98776 is a use-after-free flaw in the Linux kernel binderfs component that allows race conditions during device creation. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98776 Overview

CVE-2026-98776 is a use-after-free (UAF) write vulnerability in the Linux kernel's binderfs subsystem. The flaw resides in binderfs_binder_device_create() within drivers/android/binderfs.c, where a race condition between device creation and unlinkat() can cause binder_add_device() to write to freed memory. The issue was discovered through a modified Syzkaller fuzzing campaign and reported with a KASAN slab-use-after-free trace. Local attackers with the ability to issue ioctl calls against the binder control device can trigger the condition, potentially leading to kernel memory corruption and privilege escalation on affected systems, including Android devices built on vulnerable kernel versions.

Critical Impact

A local, unprivileged attacker can race unlinkat() against binder device creation to achieve a kernel use-after-free write, enabling potential privilege escalation or denial of service.

Affected Products

  • Linux kernel binderfs driver (drivers/android/binderfs.c)
  • Linux kernel binder driver (drivers/android/binder.c)
  • Downstream Android distributions built on affected kernel versions

Discovery Timeline

  • 2026-10-18 - CVE-2026-98776 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98776

Vulnerability Analysis

The vulnerability is a classic time-of-check to time-of-use race window created by premature lock release in binderfs_binder_device_create(). The function publishes a newly created dentry through d_make_persistent() and then invokes simple_done_creating(), which releases the parent directory lock and drops the creator's dentry reference. After these actions, the function still calls binder_add_device() to insert the device into the global binder_devices hash list.

Because the parent directory lock has already been dropped, a concurrent unlinkat() syscall can remove the newly published entry. When the creator's dentry reference is released, this triggers binderfs_evict_inode(), which frees the underlying binder_device object. The subsequent binder_add_device() call then performs an hlist_add_head() write against the freed allocation.

Root Cause

The root cause is incorrect lock ordering: binder_add_device() must complete while the parent directory lock is still held and before the creator's reference is dropped. By releasing the lock first, the kernel exposes a window in which another thread can race the device out from under the publisher. This is a race condition leading to a use-after-free write [CWE-416, CWE-362].

Attack Vector

Exploitation requires local access and the ability to issue ioctl calls on the binder control device at /dev/binderfs/binder-control. An attacker spawns two threads: one repeatedly invokes the BINDER_CTL_ADD ioctl to create new binder devices, while a second thread races unlinkat() against the newly created device nodes. Winning the race causes binder_add_device() to insert an hlist node into freed slab memory. The KASAN report confirms an 8-byte write at the freed address during hlist_add_head, which an attacker can leverage to corrupt adjacent slab objects and pivot toward kernel code execution.

No synthetic exploit code is provided. Technical details are available in the upstream fix commits Kernel Git Commit 30d15f44 and Kernel Git Commit 885bbbe5.

Detection Methods for CVE-2026-98776

Indicators of Compromise

  • KASAN reports referencing slab-use-after-free in binder_add_device or hlist_add_head from drivers/android/binder.c
  • Unexpected kernel oops or panic traces originating in binderfs_binder_device_create or binderfs_evict_inode
  • Unusual volumes of BINDER_CTL_ADD ioctl calls paired with rapid unlinkat() syscalls on /dev/binderfs/

Detection Strategies

  • Enable KASAN on test and canary kernels to surface the UAF write during fuzzing or regression testing
  • Audit syscall telemetry for processes performing concurrent ioctl(BINDER_CTL_ADD) and unlinkat() operations against binder control paths
  • Correlate kernel ring buffer messages (dmesg) with process execution events to identify suspicious binder-related crashes

Monitoring Recommendations

  • Forward kernel logs to a centralized SIEM and alert on signatures matching binder_add_device, binderfs_evict_inode, or KASAN slab-use-after-free entries
  • Monitor Android and Linux endpoints for repeated kernel panics or soft lockups linked to binder subsystem functions
  • Track unprivileged process access patterns to /dev/binderfs/binder-control and flag anomalous ioctl concurrency

How to Mitigate CVE-2026-98776

Immediate Actions Required

  • Apply the upstream kernel patches referenced in commits 30d15f44 and 885bbbe5 as soon as vendor builds become available
  • Rebuild and redeploy custom kernels that include the binderfs driver, prioritizing Android and container host systems
  • Restrict access to /dev/binderfs/binder-control to trusted processes using filesystem permissions and MAC policies (SELinux, AppArmor)

Patch Information

The upstream fix reorders the publication sequence in binderfs_binder_device_create() so that binder_add_device() executes before simple_done_creating() releases the parent directory lock and drops the creator's dentry reference. Review the patches at Kernel Git Commit 30d15f44 and Kernel Git Commit 885bbbe5. Downstream distribution kernels (Android Common Kernel, Debian, Ubuntu, RHEL derivatives) should pick up the backport in their next stable release.

Workarounds

  • Unmount binderfs on systems that do not require the Android binder IPC subsystem
  • Disable the CONFIG_ANDROID_BINDERFS kernel option in custom builds where binder functionality is not needed
  • Apply SELinux policy to deny unprivileged domains the ability to issue ioctl against the binder control device until a patched kernel is deployed

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.