{"id":"CVE-2026-46097","state":"PUBLISHED","title":"Input: edt-ft5x06 - fix use-after-free in debugfs teardown","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: edt-ft5x06 - fix use-after-free in debugfs teardown\n\nThe commit 68743c500c6e (\"Input: edt-ft5x06 - use per-client debugfs\ndirectory\") removed the manual debugfs teardown, relying on the I2C core\nto handle it. However, this creates a window where debugfs files are\nstill accessible after edt_ft5x06_ts_teardown_debugfs() frees\ntsdata->raw_buffer.\n\nTo prevent a use-after-free, protect the freeing of raw_buffer with the\ndevice mutex and set raw_buffer to NULL. The debugfs read function\nalready checks if raw_buffer is NULL under the same mutex, so this\nsafely avoids the use-after-free.","publishedAt":"2026-05-27T12:58:59.100Z","updatedAt":"2026-06-14T17:54:10.915Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"68743c500c6eafcd0b16dc6067fea5bca0795eef","status":"affected","lessThan":"a516d43886623e3cca5fa3446bed8fc7c7982be2","versionType":"git"},{"version":"68743c500c6eafcd0b16dc6067fea5bca0795eef","status":"affected","lessThan":"9f6c5e7b747d40e1c65cbfcb975857d25154c075","versionType":"git"},{"version":"68743c500c6eafcd0b16dc6067fea5bca0795eef","status":"affected","lessThan":"f5f9e07060519e2287e99019a6de1eb3ebb65c37","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/input/touchscreen/edt-ft5x06.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.27","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.4","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/input/touchscreen/edt-ft5x06.c"]}],"references":["https://git.kernel.org/stable/c/a516d43886623e3cca5fa3446bed8fc7c7982be2","https://git.kernel.org/stable/c/9f6c5e7b747d40e1c65cbfcb975857d25154c075","https://git.kernel.org/stable/c/f5f9e07060519e2287e99019a6de1eb3ebb65c37"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/46xxx/CVE-2026-46097.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-46097","state":"PUBLISHED","datePublished":"2026-05-27T12:58:59.100Z","dateUpdated":"2026-06-14T17:54:10.915Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-13T15:03:33.097Z"},"containers":{"cna":{"title":"Input: edt-ft5x06 - fix use-after-free in debugfs teardown","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: edt-ft5x06 - fix use-after-free in debugfs teardown\n\nThe commit 68743c500c6e (\"Input: edt-ft5x06 - use per-client debugfs\ndirectory\") removed the manual debugfs teardown, relying on the I2C core\nto handle it. However, this creates a window where debugfs files are\nstill accessible after edt_ft5x06_ts_teardown_debugfs() frees\ntsdata->raw_buffer.\n\nTo prevent a use-after-free, protect the freeing of raw_buffer with the\ndevice mutex and set raw_buffer to NULL. The debugfs read function\nalready checks if raw_buffer is NULL under the same mutex, so this\nsafely avoids the use-after-free."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"68743c500c6eafcd0b16dc6067fea5bca0795eef","status":"affected","lessThan":"a516d43886623e3cca5fa3446bed8fc7c7982be2","versionType":"git"},{"version":"68743c500c6eafcd0b16dc6067fea5bca0795eef","status":"affected","lessThan":"9f6c5e7b747d40e1c65cbfcb975857d25154c075","versionType":"git"},{"version":"68743c500c6eafcd0b16dc6067fea5bca0795eef","status":"affected","lessThan":"f5f9e07060519e2287e99019a6de1eb3ebb65c37","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/input/touchscreen/edt-ft5x06.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.27","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.0.4","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/input/touchscreen/edt-ft5x06.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a516d43886623e3cca5fa3446bed8fc7c7982be2"},{"url":"https://git.kernel.org/stable/c/9f6c5e7b747d40e1c65cbfcb975857d25154c075"},{"url":"https://git.kernel.org/stable/c/f5f9e07060519e2287e99019a6de1eb3ebb65c37"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-06-14T17:54:10.915Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.27"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.0.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}