# CVE-2026-64363: HID: appleir: fix UAF on pending key\_up\_timer in remove()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-07-25T08:50:18.824Z
- **Modified:** 2026-11-06T17:18:51.860Z

## Who should check

- Anyone running Linux \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 89ef67359672bf4cd6921524e39f61648fe38c0f; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 3d30a0bb0e79621ae921b487835c56198adfafa3; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 37a52c61d4f78153c38ae1f7491dfcc8ac828dcf; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 05e3decc55d1deca9410e0eb36466651fcbe57a5; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 3755f6e25776b8b12ddf062f9b573f05090e4034; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< b363d964ca829c1761c9f04188dfa28f90b0f2d4; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 6b0838e86da88b1d3bff86f19761ff25af73eaca; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 75fe87e19d8aff81eb2c64d15d244ab8da4de945
- Anyone running Linux 3.10

## Description

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.

## Affected and fixed versions

- Linux: \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 89ef67359672bf4cd6921524e39f61648fe38c0f; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 3d30a0bb0e79621ae921b487835c56198adfafa3; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 37a52c61d4f78153c38ae1f7491dfcc8ac828dcf; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 05e3decc55d1deca9410e0eb36466651fcbe57a5; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 3755f6e25776b8b12ddf062f9b573f05090e4034; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< b363d964ca829c1761c9f04188dfa28f90b0f2d4; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 6b0838e86da88b1d3bff86f19761ff25af73eaca; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 75fe87e19d8aff81eb2c64d15d244ab8da4de945 (cvelist)
- Linux: 3.10 (cvelist)

## Mitigation

- Upgrade Linux to 75fe87e19d8aff81eb2c64d15d244ab8da4de945 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64363. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64363.md
Affected: Linux >= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, < 89ef67359672bf4cd6921524e39f61648fe38c0f; >= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, < 3d30a0bb0e79621ae921b487835c56198adfafa3; >= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, < 37a52c61d4f78153c38ae1f7491dfcc8ac828dcf; >= 9a4a5574ce427c364d81746…
Fixed in: Linux 89ef67359672bf4cd6921524e39f61648fe38c0f, Linux 3d30a0bb0e79621ae921b487835c56198adfafa3, Linux 37a52c61d4f78153c38ae1f7491dfcc8ac828dcf, Linux 05e3decc55d1deca9410e0eb36466651fcbe57a5, Linux 3755f6e25776b8b12ddf062f9b573f05090e4034, Linux 6b0838e86da88b1d3bff86f19761ff25af73eaca, Linux 75fe8…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64363 being exploited?

There is no confirmed exploitation: CVE-2026-64363 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64363?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64363?

Linux \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 89ef67359672bf4cd6921524e39f61648fe38c0f; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 3d30a0bb0e79621ae921b487835c56198adfafa3; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 37a52c61d4f78153c38ae1f7491dfcc8ac828dcf; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 05e3decc55d1deca9410e0eb36466651fcbe57a5; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 3755f6e25776b8b12ddf062f9b573f05090e4034; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< b363d964ca829c1761c9f04188dfa28f90b0f2d4; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 6b0838e86da88b1d3bff86f19761ff25af73eaca; \>= 9a4a5574ce427c364d81746fc7fb82d86b5f1a7e, \< 75fe87e19d8aff81eb2c64d15d244ab8da4de945; Linux 3.10.

### Is there a fix for CVE-2026-64363?

Yes. Fixed in Linux 89ef67359672bf4cd6921524e39f61648fe38c0f, Linux 3d30a0bb0e79621ae921b487835c56198adfafa3, Linux 37a52c61d4f78153c38ae1f7491dfcc8ac828dcf, Linux 05e3decc55d1deca9410e0eb36466651fcbe57a5, Linux 3755f6e25776b8b12ddf062f9b573f05090e4034, Linux 6b0838e86da88b1d3bff86f19761ff25af73eaca, Linux 75fe87e19d8aff81eb2c64d15d244ab8da4de945. Upgrade Linux to 75fe87e19d8aff81eb2c64d15d244ab8da4de945 or later.

### How do I check if I'm affected by CVE-2026-64363?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/89ef67359672bf4cd6921524e39f61648fe38c0f>
- patch: <https://git.kernel.org/stable/c/3d30a0bb0e79621ae921b487835c56198adfafa3>
- patch: <https://git.kernel.org/stable/c/37a52c61d4f78153c38ae1f7491dfcc8ac828dcf>
- patch: <https://git.kernel.org/stable/c/05e3decc55d1deca9410e0eb36466651fcbe57a5>
- patch: <https://git.kernel.org/stable/c/3755f6e25776b8b12ddf062f9b573f05090e4034>
- patch: <https://git.kernel.org/stable/c/b363d964ca829c1761c9f04188dfa28f90b0f2d4>
- patch: <https://git.kernel.org/stable/c/6b0838e86da88b1d3bff86f19761ff25af73eaca>
- patch: <https://git.kernel.org/stable/c/75fe87e19d8aff81eb2c64d15d244ab8da4de945>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64363>

HTML: <https://flawdb.com/CVE-2026-64363> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64363>
