{"id":"CVE-2024-36932","published":"2024-05-30T15:29:23Z","modified":"2026-05-11T20:17:17Z","title":"thermal/debugfs: Prevent use-after-free from occurring after cdev removal","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->lock, 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->lock in thermal_debug_cdev_remove() around\nthe cdev->debugfs 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+ <stable@vger.kernel.org> # 6.8+","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00198,"percentile":0.09708,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/c1279dee33369e2525f532364bb87207d23b9481","tags":[]},{"url":"https://git.kernel.org/stable/c/d351eb0ab04c3e8109895fc33250cebbce9c11da","tags":[]}],"priority":{"score":1.9,"factors":[{"name":"EPSS percentile","points":1.94}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 755113d7678681a137c330f7997ceb680adb644e, < c1279dee33369e2525f532364bb87207d23b9481",">= 755113d7678681a137c330f7997ceb680adb644e, < d351eb0ab04c3e8109895fc33250cebbce9c11da"]},{"vendor":"Linux","product":"Linux","versions":["6.8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-06-07T14:04:33.823483Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-36282","exploited":false,"provenance":"source"}}