CVE-2026-80572: Input: byd - synchronize timer deletion before freeing private data
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Input: byd - synchronize timer deletion before freeing private data
byd_disconnect() uses timer_delete() before freeing the driver's private data. This does not wait for a running byd_clear_touch() callback, which dereferences the private data and its psmouse pointer. A callback racing with disconnect can therefore access the private data after it has been freed. The timer can also still be re-armed by byd_process_byte() while the disconnect is in progress.
Use timer_shutdown_sync() before freeing the private data: it waits for a running callback and turns any later re-arm attempt into a no-op.
The Linux kernel CVE team has assigned CVE-2026-80572 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.6 with commit 2d5f5611dd0de52e9a52b56391a7049a52184e72 and fixed in 6.18.46 with commit 8dbfd8e32a13e116790780ed0be82b5a05eb9916 Issue introduced in 4.6 with commit 2d5f5611dd0de52e9a52b56391a7049a52184e72 and fixed in 7.1.10 with commit 2e509ef60ee41a2da0deb062c262bb530143fb37 Issue introduced in 4.6 with commit 2d5f5611dd0de52e9a52b56391a7049a52184e72 and fixed in 7.2 with commit c83e79c0842ed29860648bcce5022ef0ba5001c6
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-80572
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/input/mouse/byd.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/8dbfd8e32a13e116790780ed0be82b5a05eb9916 https://git.kernel.org/stable/c/2e509ef60ee41a2da0deb062c262bb530143fb37 https://git.kernel.org/stable/c/c83e79c0842ed29860648bcce5022ef0ba5001c6