Cloudanix VulnDB

CVE-2026-64277

High · 7.8

CVSS

7.8

EPSS

0.2%

Published

Jul 25, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A flaw in some Linux touchpad driver code could let a local user or malicious program tamper with the operating system and possibly gain higher access.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Moderate
Impact
Privilege Gain
Component
OS kernel
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

This is a Linux kernel memory-corruption flaw in the Synaptics RMI4 input driver’s F3A GPIO keymap handling. A device can report a GPIO count greater than 6, while the driver allocates a smaller keymap buffer and then later treats the keymap as if it were sized to the full reported GPIO count. This creates out-of-bounds reads during F3A attention handling and through EVIOCGKEYCODE input ioctls, potentially leaking adjacent kernel slab memory to user space. It also allows out-of-bounds writes through EVIOCSKEYCODE by a local process that can open the affected evdev device node, potentially corrupting kernel memory and leading to privilege escalation or system instability.

Why it matters to the business

Successful exploitation can allow a local user or process with access to the affected input device to read sensitive kernel memory, corrupt kernel memory, crash the system, or potentially gain elevated privileges. The risk is highest on Linux systems using Synaptics RMI4 touchpad or pointing-device hardware where the affected driver is enabled and evdev device nodes are accessible to local users or sandboxed applications. This issue is not listed in CISA KEV, has low EPSS at this time, and has no reported public exploit maturity, but kernel local privilege-escalation flaws should still be prioritized on multi-user workstations, kiosk systems, developer endpoints, shared Linux desktops, and environments that expose input devices into containers, VMs, or sandboxed workloads.

How an attack unfolds

An attacker needs local code execution and access to the relevant /dev/input/event* node associated with a vulnerable Synaptics RMI4 device. The vulnerable condition is triggered when the RMI4 F3A function reports a GPIO count greater than the driver’s originally allocated keymap size. Once the affected evdev node is available, the attacker can interact with the Linux input subsystem using keymap ioctls. By requesting keycodes beyond the actually allocated keymap, EVIOCGKEYCODE can read past the keymap allocation and disclose adjacent kernel heap memory. By setting keycodes beyond the allocated keymap, EVIOCSKEYCODE can write attacker-controlled values past the allocation, corrupting nearby kernel memory. With sufficient heap grooming and knowledge of the target kernel layout, this could be developed into a local privilege-escalation exploit; without reliable exploitation, it may still cause crashes or undefined kernel behavior.

How to fix it

Upgrade to a Linux kernel build that includes the upstream fix for the Synaptics RMI4 F3A keymap allocation issue, described as sizing the keymap for the full reported GPIO count. Because no specific fixed package versions were provided, use the latest kernel updates from the operating system or appliance vendor and confirm the vendor advisory references this issue or the corresponding Synaptics RMI4 F3A keymap fix. Where immediate patching is not possible, reduce exposure by restricting access to /dev/input/event* nodes to trusted local users only, avoiding passthrough of host input devices into containers or virtual machines, disabling or unloading unused Synaptics RMI4 driver support where operationally safe, and blocking untrusted physical or peripheral access that could introduce malformed RMI4 device behavior. Mitigations should be treated as temporary because the vulnerable code remains present until the kernel is updated.

How to confirm the fix worked

Confirm remediation by verifying the running kernel version is at or above the vendor-fixed version and that the vendor changelog includes the Synaptics RMI4 F3A keymap allocation fix. On source-based or custom kernels, confirm the driver allocates the F3A keymap according to the full gpio_count rather than min(gpio_count, TRACKSTICK_RANGE_END), while still initializing unmapped entries as KEY_RESERVED. Validate exposure by checking whether the synaptics-rmi4/RMI4 input driver is present, whether Synaptics RMI4 devices appear under /proc/bus/input/devices or /sys/class/input, and whether unprivileged users can open the corresponding /dev/input/event* nodes. Confirm mitigation effectiveness by testing that only trusted users or groups have read/write access to the relevant evdev nodes and that containers or sandboxes are not granted access to host input devices unless required.

Typical attack path

  1. Identify a Linux system running an affected kernel with the Synaptics RMI4 input driver enabled and an F3A-capable device present.
  2. Obtain local code execution as an unprivileged user or compromise a process that has permission to open the affected /dev/input/event* device.
  3. Enumerate input devices, for example through /proc/bus/input/devices, sysfs, libinput, or evdev enumeration, to locate the Synaptics RMI4 event node.
  4. Use EVIOCGKEYCODE against indexes beyond the small allocated keymap to read out-of-bounds kernel memory.
  5. Optionally use leaked memory to improve exploit reliability, such as identifying heap contents or bypass-relevant kernel information.
  6. Use EVIOCSKEYCODE against out-of-range indexes to write controlled keycode values past the allocated keymap buffer.
  7. Attempt to shape the corrupted kernel heap state to achieve privilege escalation, disable security controls, or crash the host.

How to detect it

There are no public, exploit-specific indicators currently associated with this issue, and successful exploitation may leave limited forensic evidence beyond local process activity, kernel warnings, or crashes. To investigate possible prior exploitation, collect auditd, eBPF, EDR, or syscall telemetry for processes opening Synaptics RMI4-related /dev/input/event* devices and issuing EVIOCGKEYCODE or EVIOCSKEYCODE ioctls, especially at high volume or from unexpected applications. Review kernel logs for signs of memory corruption, slab allocator warnings, general protection faults, KASAN reports, BUG/Oops messages, or crashes involving the synaptics-rmi4, rmi_f3a, evdev, or input core code paths. Examine /proc/bus/input/devices and historical hardware inventory to determine whether affected RMI4 devices were present. For endpoints with suspicious activity, preserve dmesg/journal logs, audit logs, EDR process trees, loaded module lists, kernel version data, and any core or crash dumps for correlation.

  • synaptics-rmi4
  • rmi_f3a
  • EVIOCGKEYCODE
  • EVIOCSKEYCODE
  • /proc/bus/input/devices
  • /sys/class/input
  • /dev/input/event
  • KASAN:
  • slab-out-of-bounds
  • general protection fault
  • kernel BUG
  • Oops:

What your security team should do

  • Prioritize kernel updates for Linux workstations, shared desktops, kiosks, and any systems where untrusted local users or sandboxed workloads can access input devices.
  • Inventory systems with Synaptics RMI4 input devices by querying /proc/bus/input/devices, sysfs, hardware inventory, or endpoint management data.
  • Review permissions on /dev/input/event* devices and ensure only trusted users, seats, or input-related system services can access them.
  • Remove unnecessary input-device passthrough from containers, virtual machines, browser sandboxes, remote desktop brokers, and test automation environments.
  • Monitor for unusual evdev ioctl activity, especially repeated EVIOCGKEYCODE or EVIOCSKEYCODE calls against Synaptics RMI4 event devices.
  • For custom kernel builds, backport the upstream driver fix rather than relying only on access-control mitigations.
  • Treat kernel crashes, slab corruption warnings, or unexplained privilege changes on affected endpoints as potentially suspicious and collect volatile forensic data before rebooting where feasible.

The record

In the Linux kernel, the following vulnerability has been resolved: Input: synaptics-rmi4 - bound the F3A keymap to the GPIO count rmi_f3a_initialize() takes the GPIO count from the device query register (f3a->gpio_count = buf & RMI_F3A_GPIO_COUNT, range 0..127). rmi_f3a_map_gpios() then allocates gpio_key_map with min(gpio_count, TRACKSTICK_RANGE_END) == at most 6 entries, but rmi_f3a_attention() iterates the full gpio_count and dereferences gpio_key_map[i], and input->keycodemax is set to the full gpio_count while input->keycode points at the 6-entry allocation. A device that reports gpio_count > 6 therefore causes an out-of-bounds read of gpio_key_map[] on every attention interrupt, and out-of-bounds accesses through the input core's default keymap ioctls: EVIOCGKEYCODE reads past the buffer (leaking adjacent slab memory to user space) and EVIOCSKEYCODE writes a caller-controlled value past it, for any process able to open the evdev node, since input_default_getkeycode() and input_default_setkeycode() only bound the index against keycodemax. Size the keymap for the full gpio_count. The mapping loop is unchanged: it still assigns only the first min(gpio_count, TRACKSTICK_RANGE_END) entries; the remaining slots stay KEY_RESERVED (devm_kcalloc zero-fills) and are skipped when reporting.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities