In the Linux kernel, the following vulnerability has been resolved:
Input: cyapa - add missing input core locking to suspend/resume functions
Grab input->mutex during suspend/resume functions like it is done in other input drivers. This fixes the following warning during system suspend/resume cycle on Samsung Exynos5250-based Snow Chromebook:
------------[ cut here ]------------ WARNING: CPU: 1 PID: 1680 at drivers/input/input.c:2291 inputdeviceenabled+0x68/0x6c Modules linked in: ... CPU: 1 PID: 1680 Comm: kworker/u4:12 Tainted: G W 6.6.0-rc5-next-20231009 #14109 Hardware name: Samsung Exynos (Flattened Device Tree) Workqueue: eventsunbound asyncrunentryfn unwindbacktrace from showstack+0x10/0x14 showstack from dumpstacklvl+0x58/0x70 dumpstacklvl from _warn+0x1a8/0x1cc _warn from warnslowpathfmt+0x18c/0x1b4 warnslowpathfmt from inputdeviceenabled+0x68/0x6c inputdeviceenabled from cyapagen3setpowermode+0x13c/0x1dc cyapagen3setpowermode from cyapareinitialize+0x10c/0x15c cyapareinitialize from cyaparesume+0x48/0x98 cyaparesume from dpmruncallback+0x90/0x298 dpmruncallback from deviceresume+0xb4/0x258 deviceresume from asyncresume+0x20/0x64 asyncresume from asyncrunentryfn+0x40/0x15c asyncrunentryfn from processscheduledworks+0xbc/0x6a8 processscheduledworks from workerthread+0x188/0x454 workerthread from kthread+0x108/0x140 kthread from retfromfork+0x14/0x28 Exception stack(0xf1625fb0 to 0xf1625ff8) ... ---[ end trace 0000000000000000 ]--- ... ------------[ cut here ]------------ WARNING: CPU: 1 PID: 1680 at drivers/input/input.c:2291 inputdeviceenabled+0x68/0x6c Modules linked in: ... CPU: 1 PID: 1680 Comm: kworker/u4:12 Tainted: G W 6.6.0-rc5-next-20231009 #14109 Hardware name: Samsung Exynos (Flattened Device Tree) Workqueue: eventsunbound asyncrunentryfn unwindbacktrace from showstack+0x10/0x14 showstack from dumpstacklvl+0x58/0x70 dumpstacklvl from _warn+0x1a8/0x1cc _warn from warnslowpathfmt+0x18c/0x1b4 warnslowpathfmt from inputdeviceenabled+0x68/0x6c inputdeviceenabled from cyapagen3setpowermode+0x13c/0x1dc cyapagen3setpowermode from cyapareinitialize+0x10c/0x15c cyapareinitialize from cyaparesume+0x48/0x98 cyaparesume from dpmruncallback+0x90/0x298 dpmruncallback from deviceresume+0xb4/0x258 deviceresume from asyncresume+0x20/0x64 asyncresume from asyncrunentryfn+0x40/0x15c asyncrunentryfn from processscheduledworks+0xbc/0x6a8 processscheduledworks from workerthread+0x188/0x454 workerthread from kthread+0x108/0x140 kthread from retfromfork+0x14/0x28 Exception stack(0xf1625fb0 to 0xf1625ff8) ... ---[ end trace 0000000000000000 ]---
{ "vanir_signatures": [ { "id": "CVE-2023-52884-1f72309b", "signature_type": "Line", "target": { "file": "drivers/input/mouse/cyapa.c" }, "signature_version": "v1", "digest": { "line_hashes": [ "42818514297312483789425283236591855232", "30440496025928211223197017707853953491", "231680302386011507067486967503404476503", "197014451207022127862037155019483069942", "48557105069372692688258433726171858010", "280691769837887163342457964497813454733", "164270402792917842562965552283792375700", "233422352197314090566581829081301167679", "68141157725106997486165928114007400884", "286505688241659020609847689905999092260", "244480608371013284633282190613782363752", "98656311406499659570145549997756783247", "169954827857466523196567917218833910679", "157329385435102560312995911398330730658", "140599828772728756605988606760367332888", "167151087605167020464644608056746170039", "102319137566462723172432610229512225563" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9400caf566f65c703e99d95f87b00c4b445627a7" }, { "id": "CVE-2023-52884-212c6e6d", "signature_type": "Function", "target": { "file": "drivers/input/mouse/cyapa.c", "function": "cyapa_suspend" }, "signature_version": "v1", "digest": { "length": 773.0, "function_hash": "252941306065708273696807952721350595361" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a5fc298fa8f67cf1f0e1fc126eab70578cd40adc" }, { "id": "CVE-2023-52884-3b623706", "signature_type": "Function", "target": { "file": "drivers/input/mouse/cyapa.c", "function": "cyapa_suspend" }, "signature_version": "v1", "digest": { "length": 773.0, "function_hash": "252941306065708273696807952721350595361" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f99809fdeb50d65bcbc1661ef391af94eebb8a75" }, { "id": "CVE-2023-52884-64d29753", "signature_type": "Function", "target": { "file": "drivers/input/mouse/cyapa.c", "function": "cyapa_resume" }, "signature_version": "v1", "digest": { "length": 447.0, "function_hash": "323571383774894488758215263155881036627" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4c638ab25786bd5aab5978fe51b2b9be16a4ebd" }, { "id": "CVE-2023-52884-6e926cfd", "signature_type": "Function", "target": { "file": "drivers/input/mouse/cyapa.c", "function": "cyapa_resume" }, "signature_version": "v1", "digest": { "length": 447.0, "function_hash": "323571383774894488758215263155881036627" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a5fc298fa8f67cf1f0e1fc126eab70578cd40adc" }, { "id": "CVE-2023-52884-6f0b85a7", "signature_type": "Function", "target": { "file": "drivers/input/mouse/cyapa.c", "function": "cyapa_resume" }, "signature_version": "v1", "digest": { "length": 447.0, "function_hash": "323571383774894488758215263155881036627" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f99809fdeb50d65bcbc1661ef391af94eebb8a75" }, { "id": "CVE-2023-52884-9317c747", "signature_type": "Function", "target": { "file": "drivers/input/mouse/cyapa.c", "function": "cyapa_suspend" }, "signature_version": "v1", "digest": { "length": 773.0, "function_hash": "252941306065708273696807952721350595361" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9400caf566f65c703e99d95f87b00c4b445627a7" }, { "id": "CVE-2023-52884-a43f5d51", "signature_type": "Line", "target": { "file": "drivers/input/mouse/cyapa.c" }, "signature_version": "v1", "digest": { "line_hashes": [ "42818514297312483789425283236591855232", "30440496025928211223197017707853953491", "231680302386011507067486967503404476503", "197014451207022127862037155019483069942", "48557105069372692688258433726171858010", "280691769837887163342457964497813454733", "164270402792917842562965552283792375700", "233422352197314090566581829081301167679", "68141157725106997486165928114007400884", "57956023586606932421177918310466489331", "244480608371013284633282190613782363752", "98656311406499659570145549997756783247", "169954827857466523196567917218833910679", "157329385435102560312995911398330730658", "140599828772728756605988606760367332888", "167151087605167020464644608056746170039", "304562582648418031167823843047314626206" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4c638ab25786bd5aab5978fe51b2b9be16a4ebd" }, { "id": "CVE-2023-52884-c2b3d594", "signature_type": "Function", "target": { "file": "drivers/input/mouse/cyapa.c", "function": "cyapa_resume" }, "signature_version": "v1", "digest": { "length": 447.0, "function_hash": "323571383774894488758215263155881036627" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9400caf566f65c703e99d95f87b00c4b445627a7" }, { "id": "CVE-2023-52884-c684fce8", "signature_type": "Line", "target": { "file": "drivers/input/mouse/cyapa.c" }, "signature_version": "v1", "digest": { "line_hashes": [ "42818514297312483789425283236591855232", "30440496025928211223197017707853953491", "231680302386011507067486967503404476503", "197014451207022127862037155019483069942", "48557105069372692688258433726171858010", "280691769837887163342457964497813454733", "164270402792917842562965552283792375700", "233422352197314090566581829081301167679", "68141157725106997486165928114007400884", "57956023586606932421177918310466489331", "244480608371013284633282190613782363752", "98656311406499659570145549997756783247", "169954827857466523196567917218833910679", "157329385435102560312995911398330730658", "140599828772728756605988606760367332888", "167151087605167020464644608056746170039", "304562582648418031167823843047314626206" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a5fc298fa8f67cf1f0e1fc126eab70578cd40adc" }, { "id": "CVE-2023-52884-d9991729", "signature_type": "Function", "target": { "file": "drivers/input/mouse/cyapa.c", "function": "cyapa_suspend" }, "signature_version": "v1", "digest": { "length": 773.0, "function_hash": "252941306065708273696807952721350595361" }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4c638ab25786bd5aab5978fe51b2b9be16a4ebd" }, { "id": "CVE-2023-52884-fe7eeefb", "signature_type": "Line", "target": { "file": "drivers/input/mouse/cyapa.c" }, "signature_version": "v1", "digest": { "line_hashes": [ "42818514297312483789425283236591855232", "30440496025928211223197017707853953491", "231680302386011507067486967503404476503", "197014451207022127862037155019483069942", "48557105069372692688258433726171858010", "280691769837887163342457964497813454733", "164270402792917842562965552283792375700", "233422352197314090566581829081301167679", "68141157725106997486165928114007400884", "286505688241659020609847689905999092260", "244480608371013284633282190613782363752", "98656311406499659570145549997756783247", "169954827857466523196567917218833910679", "157329385435102560312995911398330730658", "140599828772728756605988606760367332888", "167151087605167020464644608056746170039", "102319137566462723172432610229512225563" ], "threshold": 0.9 }, "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f99809fdeb50d65bcbc1661ef391af94eebb8a75" } ] }