{"id":"CVE-2024-36932","summary":"thermal/debugfs: Prevent use-after-free from occurring after cdev removal","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nthermal/debugfs: Prevent use-after-free from occurring after cdev removal\n\nSince thermal_debug_cdev_remove() does not run under cdev-\u003elock, it can\nrun in parallel with thermal_debug_cdev_state_update() and it may free\nthe struct thermal_debugfs object used by the latter after it has been\nchecked against NULL.\n\nIf that happens, thermal_debug_cdev_state_update() will access memory\nthat has been freed already causing the kernel to crash.\n\nAddress this by using cdev-\u003elock in thermal_debug_cdev_remove() around\nthe cdev-\u003edebugfs value check (in case the same cdev is removed at the\nsame time in two different threads) and its reset to NULL.\n\nCc :6.8+ \u003cstable@vger.kernel.org\u003e # 6.8+","modified":"2026-04-02T12:16:34.811439Z","published":"2024-05-30T15:29:23.178Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36932.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/c1279dee33369e2525f532364bb87207d23b9481"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d351eb0ab04c3e8109895fc33250cebbce9c11da"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36932.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36932"},{"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":"755113d7678681a137c330f7997ceb680adb644e"},{"fixed":"c1279dee33369e2525f532364bb87207d23b9481"},{"fixed":"d351eb0ab04c3e8109895fc33250cebbce9c11da"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36932.json"}}],"schema_version":"1.7.5"}