CVE-2026-46097: Input: edt-ft5x06 - fix use-after-free in debugfs teardown
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Input: edt-ft5x06 - fix use-after-free in debugfs teardown
The commit 68743c500c6e ("Input: edt-ft5x06 - use per-client debugfs directory") removed the manual debugfs teardown, relying on the I2C core to handle it. However, this creates a window where debugfs files are still accessible after edt_ft5x06_ts_teardown_debugfs() frees tsdata->raw_buffer.
To prevent a use-after-free, protect the freeing of raw_buffer with the device mutex and set raw_buffer to NULL. The debugfs read function already checks if raw_buffer is NULL under the same mutex, so this safely avoids the use-after-free.
The Linux kernel CVE team has assigned CVE-2026-46097 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.17 with commit 68743c500c6eafcd0b16dc6067fea5bca0795eef and fixed in 6.18.27 with commit a516d43886623e3cca5fa3446bed8fc7c7982be2 Issue introduced in 6.17 with commit 68743c500c6eafcd0b16dc6067fea5bca0795eef and fixed in 7.0.4 with commit 9f6c5e7b747d40e1c65cbfcb975857d25154c075 Issue introduced in 6.17 with commit 68743c500c6eafcd0b16dc6067fea5bca0795eef and fixed in 7.1-rc1 with commit f5f9e07060519e2287e99019a6de1eb3ebb65c37
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-46097
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/touchscreen/edt-ft5x06.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/a516d43886623e3cca5fa3446bed8fc7c7982be2 https://git.kernel.org/stable/c/9f6c5e7b747d40e1c65cbfcb975857d25154c075 https://git.kernel.org/stable/c/f5f9e07060519e2287e99019a6de1eb3ebb65c37