{"id":"CVE-2026-80559","state":"PUBLISHED","title":"Input: sur40 - fix input device registration ordering","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: sur40 - fix input device registration ordering\n\nIn sur40_probe(), input_register_device() was previously called early before\nthe V4L2 video device and vb2_queue components were fully initialized. If\nuserspace opened the input device immediately upon registration, sur40_open()\nwould trigger and start the sur40_poll() worker thread. This worker thread\ninvokes sur40_process_video() and accesses the uninitialized vb2_queue\nstructure, leading to a data race and potential system crash.\n\nFurthermore, if V4L2 or video registration failed after input_register_device()\nsucceeded, the error path fell through to calling input_free_device() on a\nsuccessfully registered device instead of input_unregister_device(), corrupting\ninput core state.\n\nMove input_register_device() to the very end of sur40_probe(). This ensures\nthe V4L2 and video queue structures are fully initialized before polling can\nstart, and naturally resolves the error path bug since input_free_device()\nis now only called when input registration has not yet occurred.\n\nTo maintain strict LIFO (Last-In, First-Out) teardown ordering, also move\ninput_unregister_device() to the very beginning of sur40_disconnect(). This\nguarantees that the input polling worker thread is stopped before V4L2\nvideo components or control handlers are unregistered.","publishedAt":"2026-08-26T14:37:25.371Z","updatedAt":"2026-08-27T05:01:47.768Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"cd4ecce2fd87760c0ad9a9d28c9fc62ea1dbfd3d","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"dab741c9da72102a37cc1020a929051b7c45f9fb","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"764b507be7b51787e1f577ca3bf0bab7efe81ff8","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"3e8ed76a4f3572e637653f0654cccdf617903231","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"83aa12f9f2468a4fbef027c09224dc1011850fb0","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"5c1c5227c93f18cd329dd754b4df5e0e2daece1e","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"beb9b0bd6e6e23f5e9e42b7ef890a50f57f1f3aa","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"9da976eb649c9e2f588a4499410e4d8af687925f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/input/touchscreen/sur40.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.1","versionType":"semver"},{"version":"5.10.266","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.217","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.184","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.153","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.105","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.46","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.10","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/sur40.c"]}],"references":["https://git.kernel.org/stable/c/cd4ecce2fd87760c0ad9a9d28c9fc62ea1dbfd3d","https://git.kernel.org/stable/c/dab741c9da72102a37cc1020a929051b7c45f9fb","https://git.kernel.org/stable/c/764b507be7b51787e1f577ca3bf0bab7efe81ff8","https://git.kernel.org/stable/c/3e8ed76a4f3572e637653f0654cccdf617903231","https://git.kernel.org/stable/c/83aa12f9f2468a4fbef027c09224dc1011850fb0","https://git.kernel.org/stable/c/5c1c5227c93f18cd329dd754b4df5e0e2daece1e","https://git.kernel.org/stable/c/beb9b0bd6e6e23f5e9e42b7ef890a50f57f1f3aa","https://git.kernel.org/stable/c/9da976eb649c9e2f588a4499410e4d8af687925f"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/80xxx/CVE-2026-80559.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80559","state":"PUBLISHED","datePublished":"2026-08-26T14:37:25.371Z","dateUpdated":"2026-08-27T05:01:47.768Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-26T14:34:25.767Z"},"containers":{"cna":{"title":"Input: sur40 - fix input device registration ordering","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: sur40 - fix input device registration ordering\n\nIn sur40_probe(), input_register_device() was previously called early before\nthe V4L2 video device and vb2_queue components were fully initialized. If\nuserspace opened the input device immediately upon registration, sur40_open()\nwould trigger and start the sur40_poll() worker thread. This worker thread\ninvokes sur40_process_video() and accesses the uninitialized vb2_queue\nstructure, leading to a data race and potential system crash.\n\nFurthermore, if V4L2 or video registration failed after input_register_device()\nsucceeded, the error path fell through to calling input_free_device() on a\nsuccessfully registered device instead of input_unregister_device(), corrupting\ninput core state.\n\nMove input_register_device() to the very end of sur40_probe(). This ensures\nthe V4L2 and video queue structures are fully initialized before polling can\nstart, and naturally resolves the error path bug since input_free_device()\nis now only called when input registration has not yet occurred.\n\nTo maintain strict LIFO (Last-In, First-Out) teardown ordering, also move\ninput_unregister_device() to the very beginning of sur40_disconnect(). This\nguarantees that the input polling worker thread is stopped before V4L2\nvideo components or control handlers are unregistered."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"cd4ecce2fd87760c0ad9a9d28c9fc62ea1dbfd3d","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"dab741c9da72102a37cc1020a929051b7c45f9fb","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"764b507be7b51787e1f577ca3bf0bab7efe81ff8","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"3e8ed76a4f3572e637653f0654cccdf617903231","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"83aa12f9f2468a4fbef027c09224dc1011850fb0","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"5c1c5227c93f18cd329dd754b4df5e0e2daece1e","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"beb9b0bd6e6e23f5e9e42b7ef890a50f57f1f3aa","versionType":"git"},{"version":"e831cd251fb91d6c25352d322743db0d17ea11dd","status":"affected","lessThan":"9da976eb649c9e2f588a4499410e4d8af687925f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/input/touchscreen/sur40.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.1","versionType":"semver"},{"version":"5.10.266","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.217","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.184","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.153","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.105","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.46","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.10","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/sur40.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cd4ecce2fd87760c0ad9a9d28c9fc62ea1dbfd3d"},{"url":"https://git.kernel.org/stable/c/dab741c9da72102a37cc1020a929051b7c45f9fb"},{"url":"https://git.kernel.org/stable/c/764b507be7b51787e1f577ca3bf0bab7efe81ff8"},{"url":"https://git.kernel.org/stable/c/3e8ed76a4f3572e637653f0654cccdf617903231"},{"url":"https://git.kernel.org/stable/c/83aa12f9f2468a4fbef027c09224dc1011850fb0"},{"url":"https://git.kernel.org/stable/c/5c1c5227c93f18cd329dd754b4df5e0e2daece1e"},{"url":"https://git.kernel.org/stable/c/beb9b0bd6e6e23f5e9e42b7ef890a50f57f1f3aa"},{"url":"https://git.kernel.org/stable/c/9da976eb649c9e2f588a4499410e4d8af687925f"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - Exploitation is via open() on /dev/input/eventX (evdev -> input_open_device -> sur40_open -> sur40_poll -> sur40_process_video) racing sur40_probe() before vb2_queue_init(); on permanently installed PixelSense/SUR40 kiosk tables no physical USB access is needed at attack time.\nAC:L - The attacker controls both sides of the race by monitoring udev/inotify for the new input node and immediately opening it during USB hotplug or reboot probe; polling starts synchronously in input_dev_poller_start, making the uninitialized vb2_queue access reliably triggerable without uncontrollable kernel preconditions.\nPR:L - Triggering sur40_open requires only local userspace access to the evdev node (typically membership in the input group or equivalent kiosk-app privileges opening /dev/input/event*), not real root in the init namespace; user namespaces cannot substitute for this device access.\nUI:N - No victim interaction is required beyond the attacker's own actions; they can open the input device themselves (or rely on an auto-opening compositor during reconnect) and time the race during probe without needing another user to touch the screen or perform any action.\nS:U - Impact is confined to kernel memory corruption and crashes within the host input/USB driver context on the same system; it does not cross VM, container, or IOMMU security boundaries despite potential local privilege escalation as a follow-on.\nC:H - Concurrent access to a partially initialized vb2_queue is a kernel data race that can read uninitialized queue state, and the probe error path calls input_free_device() on a registered device, corrupting input-core linked lists—both are memory-corruption primitives leverageable for kernel information disclosure.\nI:H - The input_free_device() misuse corrupts global input-core list state (definite kernel structure corruption), and racing poll against vb2_queue_init can invoke vb2_buffer_done and list operations on uninitialized queue internals, enabling exploitable heap/control-structure writes.\nA:H - The fix commit explicitly cites a data race on the uninitialized vb2_queue leading to system crash; corrupting input-core registration state or racing teardown during USB disconnect can cause kernel oops/panic and deny service on interactive SUR40/PixelSense deployments."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-27T05:01:47.768Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.10.266"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"5.15.217"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.1.184"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.6.153"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.12.105"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"6.18.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"7.1.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.1","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}