CVE-2026-64363: HID: appleir: fix UAF on pending key_up_timer in remove()

High 7.8 EPSS 0.2% Linux kernel

In the Linux kernel, the following vulnerability has been resolved: HID: appleir: fix UAF on pending key_up_timer in remove() appleir_remove() runs hid_hw_stop() before timer_delete_sync(). hid_hw_stop() synchronously unregisters the HID input device via hid_disconnect() -> hidinput_disconnect() -> input_unregister_device(), which drops the last reference and frees the underlying input_dev when no userspace handle holds it open. key_up_tick() reads appleir->input_dev and calls input_report_key() / input_sync() on it. The timer is armed from appleir_raw_event() with a HZ/8 (~125 ms) timeout on every keydown and key-repeat report. If a key was pressed shortly before the device is disconnected, the timer can fire after hid_hw_stop() has freed input_dev but before the teardown drains it. A simple reorder is not sufficient. Putting the timer drain first still leaves a window where a USB URB completion (raw_event) running during hid_hw_stop() can call mod_timer() and re-arm the timer, which then fires after hidinput_disconnect() has freed input_dev. The same URB-completion window also lets raw_event() reach key_up(), key_down() and battery_flat() directly, all of which dereference appleir->input_dev. Introduce a 'removing' flag on struct appleir, gated by the existing spinlock. appleir_remove() sets the flag under the lock and then shuts down the timer with timer_shutdown_sync(), which both drains any in-flight callback and permanently disables further mod_timer() calls. appleir_raw_event() and key_up_tick() bail out early if the flag is set, so no path can arm or run the timer, or dereference appleir->input_dev, after remove() has started tearing down. The keyrepeat and flatbattery branches of appleir_raw_event() previously called into the input layer without holding the spinlock; take it now so the flag check is well-defined. This incidentally closes a pre-existing read-side race on appleir->current_key in the keyrepeat branch. This bug is structurally a sibling of commit 4db2af929279 ("HID: appletb-kbd: fix UAF in inactivity-timer cleanup path") and has been present since the driver was introduced.

What do these terms mean? CVE · CVSS score · exploited (KEV) · EPSS · backported fix · all terms

What to do now

  1. Check whether you run Linux kernel and which version (commands below).
  2. Install the fixed version for your system: see “Patch it” below.
  3. Reboot into the new kernel (uname -r to confirm); live patching (kpatch, Ubuntu Livepatch, SUSE kGraft/klp) can defer the reboot for some CVEs

Affected and fixed versions

Affected:

Patch it

Use the commands for your system. Distribution packages often keep an older version number with the fix backported, so compare with the fixed package versions in the table below, not only with the upstream version.

Debian
sudo apt update
sudo apt install --only-upgrade linux-image-amd64
Ubuntu
sudo apt update
sudo apt install --only-upgrade linux-image-generic (or the installed flavour: linux-image-aws, -azure, -gcp, -virtual)
RHEL, AlmaLinux, Rocky, Oracle
sudo dnf upgrade --refresh kernel
Fedora
sudo dnf upgrade --refresh kernel
SUSE / openSUSE
sudo zypper refresh
sudo zypper update kernel-default
Amazon Linux
sudo dnf upgrade --releasever=latest kernel kernel6.12
Arch Linux
sudo pacman -Syu
Alpine
apk update && apk upgrade linux-lts linux-virt
FreeBSD
not Linux

General update steps for every system are on the Linux and Unix & BSD pages; after updating, see which services to restart.

Fix status in Linux distributions

ReleasePackageStatusFixed version / advisory
Debian 12linuxfixed6.1.180-1
Debian 13linuxfixed6.12.100-1
Debian testinglinuxfixed7.1.4-1
Debian 12linux-6.12fixed6.12.100-1~deb12u1
Ubuntu 22.04linuxfixed5.15.0-198.208
Ubuntu 18.04 (ESM)linuxnot fixed yet
Ubuntu 20.04 (ESM)linuxnot fixed yet
Ubuntu 26.04linuxfixed7.0.0-31.31
Ubuntu 24.04linuxfixed6.8.0-147.147
Ubuntu 26.10linuxnot affected
Ubuntu 18.04 (ESM)linux-hwenot planned
Ubuntu 18.04 (ESM)linux-hwe-5.4not fixed yet
Ubuntu 20.04 (ESM)linux-hwe-5.8not planned
Ubuntu 20.04 (ESM)linux-hwe-5.11not planned
Ubuntu 20.04 (ESM)linux-hwe-5.13not planned
Ubuntu 20.04 (ESM)linux-hwe-5.15fixed5.15.0-198.208~20.04.1
Ubuntu 22.04linux-hwe-5.19not planned
Ubuntu 22.04linux-hwe-6.2not planned
Ubuntu 22.04linux-hwe-6.5not planned
Ubuntu 22.04linux-hwe-6.8fix pending
Ubuntu 24.04linux-hwe-6.11not planned
Ubuntu 24.04linux-hwe-6.14not planned
Ubuntu 24.04linux-hwe-6.17not fixed yet
Ubuntu 24.04linux-hwe-7.0fixed7.0.0-31.31~24.04.1
Ubuntu 18.04 (ESM)linux-hwe-edgenot planned
Ubuntu 18.04 (ESM)linux-kvmnot fixed yet
Ubuntu 20.04 (ESM)linux-kvmnot fixed yet
Ubuntu 22.04linux-kvmfixed5.15.0-1109.114
Ubuntu 22.04linux-allwinner-5.19not planned
Ubuntu 18.04 (ESM)linux-awsnot fixed yet
Ubuntu 20.04 (ESM)linux-awsnot fixed yet
Ubuntu 26.04linux-awsfixed7.0.0-1012.12
Ubuntu 24.04linux-awsfixed6.8.0-1067.70
Ubuntu 22.04linux-awsfixed5.15.0-1117.124
Ubuntu 26.10linux-awsnot affected
Ubuntu 18.04 (ESM)linux-aws-5.0not planned
Ubuntu 18.04 (ESM)linux-aws-5.3not planned
Ubuntu 18.04 (ESM)linux-aws-5.4not fixed yet
Ubuntu 20.04 (ESM)linux-aws-5.8not planned
Ubuntu 20.04 (ESM)linux-aws-5.11not planned
Ubuntu 20.04 (ESM)linux-aws-5.13not planned
Ubuntu 20.04 (ESM)linux-aws-5.15fixed5.15.0-1117.124~20.04.1
Ubuntu 22.04linux-aws-5.19not planned
Ubuntu 22.04linux-aws-6.2not planned
Ubuntu 22.04linux-aws-6.5not planned
Ubuntu 22.04linux-aws-6.8fixed6.8.0-1069.74~22.04.1
Ubuntu 24.04linux-aws-6.14not planned
Ubuntu 24.04linux-aws-6.17not planned
Ubuntu 18.04 (ESM)linux-azurenot planned
Ubuntu 20.04 (ESM)linux-azurenot fixed yet
Ubuntu 24.04linux-azurefixed6.8.0-1071.79
Ubuntu 26.04linux-azurefixed7.0.0-1014.14
Ubuntu 22.04linux-azurefixed5.15.0-1123.132
Ubuntu 26.10linux-azurenot affected
Ubuntu 18.04 (ESM)linux-azure-4.15not fixed yet
Ubuntu 18.04 (ESM)linux-azure-5.3not planned
Ubuntu 18.04 (ESM)linux-azure-5.4not fixed yet
Ubuntu 20.04 (ESM)linux-azure-5.8not planned
Ubuntu 20.04 (ESM)linux-azure-5.11not planned
Ubuntu 20.04 (ESM)linux-azure-5.13not planned

From the Debian security tracker, Ubuntu CVE tracker and Red Hat Security Data API, refreshed every few hours.

Sources

Page generated automatically from official sources on 2026-11-11 17:22 UTC. Always confirm with your vendor's advisory.