{"id":"CVE-2023-52840","summary":"Input: synaptics-rmi4 - fix use after free in rmi_unregister_function()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: synaptics-rmi4 - fix use after free in rmi_unregister_function()\n\nThe put_device() calls rmi_release_function() which frees \"fn\" so the\ndereference on the next line \"fn-\u003enum_of_irqs\" is a use after free.\nMove the put_device() to the end to fix this.","modified":"2026-04-02T09:43:23.940445Z","published":"2024-05-21T15:31:39.862Z","related":["ALSA-2024:7000","ALSA-2024:7001","SUSE-SU-2024:2008-1","SUSE-SU-2024:2010-1","SUSE-SU-2024:2011-1","SUSE-SU-2024:2019-1","SUSE-SU-2024:2183-1","SUSE-SU-2024:2185-1","SUSE-SU-2024:2189-1","SUSE-SU-2024:2190-1","SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52840.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2f236d8638f5b43e0c72919a6a27fe286c32053f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/303766bb92c5c225cf40f9bbbe7e29749406e2f2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/50d12253666195a14c6cd2b81c376e2dbeedbdff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6c71e065befb2fae8f1461559b940c04e1071bd5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7082b1fb5321037bc11ba1cf2d7ed23c6b2b521f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c8e639f5743cf4b01f8c65e0df075fe4d782b585"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cc56c4d17721dcb10ad4e9c9266e449be1462683"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb988e46da2e4eae89f5337e047ce372fe33d5b1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52840.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52840"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"24d28e4f1271cb2f91613dada8f2acccd00eff56"},{"fixed":"2f236d8638f5b43e0c72919a6a27fe286c32053f"},{"fixed":"50d12253666195a14c6cd2b81c376e2dbeedbdff"},{"fixed":"6c71e065befb2fae8f1461559b940c04e1071bd5"},{"fixed":"303766bb92c5c225cf40f9bbbe7e29749406e2f2"},{"fixed":"7082b1fb5321037bc11ba1cf2d7ed23c6b2b521f"},{"fixed":"cc56c4d17721dcb10ad4e9c9266e449be1462683"},{"fixed":"c8e639f5743cf4b01f8c65e0df075fe4d782b585"},{"fixed":"eb988e46da2e4eae89f5337e047ce372fe33d5b1"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52840.json"}}],"schema_version":"1.7.5"}