Description
In the Linux kernel, the following vulnerability has been resolved:

USB: idmouse: fix use-after-free on disconnect race

mutex_unlock() may access the mutex structure after releasing the lock
and therefore cannot be used to manage lifetime of objects directly
(unlike spinlocks and refcounts). [1][2]

Use a kref to release the driver data to avoid use-after-free in
mutex_unlock() when release() races with disconnect().

[1] a51749ab34d9 ("locking/mutex: Document that mutex_unlock() is
non-atomic")
[2] 2b9d9e0a9ba0 ("locking/mutex: Clarify that mutex_unlock(), and most
other sleeping locks, can still use the lock object
after it's unlocked")
Published: 2026-07-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A race condition between the release() function and disconnect() in the Linux kernel’s idmouse USB driver can trigger an unsafe mutex unlock that accesses freed data. This issue falls under CWE-364, a use‑after‑free weakness. If an attacker can induce this race, a use‑after‑free occurs, potentially causing a kernel crash or enabling arbitrary code execution with kernel privileges, as documented by the remediation commit series.

Affected Systems

Affected are all builds of the Linux kernel that the idmouse driver but precede the patch added by commit IDs 31e75fed8f90cfea9f8285e7ed135b0e452bf872, 54c2b7356b4aeea467f9fb13b85e9e036bc428cb, 60fc5ef4ecea3e3d1fe556cecf53ddd13096ef09, 8d53b14ad4ccbff6d306b3a39c812303f4a87d41, d0f61acb51a8c8f3fd41c303ddb7770cd83e7ed4, e88cff5fbaa629f3cab45c8b46f395d62c2eb515, f62622e947f82a3854b8502d09492ffbdeb252b4, ff002c153f9722caece3983cc23dc4d9d4652cb4. The fix replaces the unsafe reference counting with a kref‑based release, eliminating the race.

Risk and Exploitability

EPSS is reported as < 1% and the vulnerability is not listed in the CISA KEV catalog, indicating a low probability of exploitation. The CVSS score of 5.5 denotes moderate severity, suggesting that a successful attack could lead to a kernel crash or privilege escalation. The attack vector is likely local or tied to a physically connected USB device rather than remote network compromise.

Generated by OpenCVE AI on August 3, 2026 at 19:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the commit series fixing the race in the idmouse driver.
  • If an immediate kernel upgrade is not possible, temporarily disable hotplug USB devices or restrict access to the idmouse driver by applying appropriate udev rules or kernel parameters to prevent the race from occurring.
  • Monitor system logs (dmesg, journalctl) for OOPS or panic messages mentioning idmouse, and plan to apply the upgrade as soon as it becomes available.

Generated by OpenCVE AI on August 3, 2026 at 19:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4717-1 linux security update
Debian DLA Debian DLA DLA-4720-1 linux security update
Debian DLA Debian DLA DLA-4723-1 linux-6.1 security update
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Sat, 01 Aug 2026 02:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Thu, 30 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-364
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sun, 26 Jul 2026 02:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: USB: idmouse: fix use-after-free on disconnect race mutex_unlock() may access the mutex structure after releasing the lock and therefore cannot be used to manage lifetime of objects directly (unlike spinlocks and refcounts). [1][2] Use a kref to release the driver data to avoid use-after-free in mutex_unlock() when release() races with disconnect(). [1] a51749ab34d9 ("locking/mutex: Document that mutex_unlock() is non-atomic") [2] 2b9d9e0a9ba0 ("locking/mutex: Clarify that mutex_unlock(), and most other sleeping locks, can still use the lock object after it's unlocked")
Title USB: idmouse: fix use-after-free on disconnect race
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-25T08:50:06.461Z

Reserved: 2026-07-19T15:36:31.781Z

Link: CVE-2026-64344

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:16.487

Modified: 2026-08-11T15:00:57.447

Link: CVE-2026-64344

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64344 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T19:15:04Z

Weaknesses
  • CWE-364

    Signal Handler Race Condition