Skip to content
Heist/ feed
Back to feed
UnratedFix available

thermal/debugfs: Prevent use-after-free from occurring after cdev removal

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: thermal/debugfs: Prevent use-after-free from occurring after cdev removal Since thermal_debug_cdev_remove() does not run under cdev->lock, it can run in parallel with thermal_debug_cdev_state_update() and it may free the struct thermal_debugfs object used by the latter after it has been checked against NULL. If that happens, thermal_debug_cdev_state_update() will access memory that has been freed already causing the kernel to crash. Address this by using cdev->lock in thermal_debug_cdev_remove() around the cdev->debugfs value check (in case the same cdev is removed at the same time in two different threads) and its reset to NULL. Cc :6.8+ # 6.8+

Products
Kernel
Affected versions
Not specified
Fixed versions
6.8.10
CVEs
CVE-2024-36932
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 18:32 UTC · Revision 1

Source evidence

thermal/debugfs: Prevent use-after-free from occurring after cdev removal

core-osv · Original source

Published 30 May 2024, 15:29 UTC

In the Linux kernel, the following vulnerability has been resolved: thermal/debugfs: Prevent use-after-free from occurring after cdev removal Since thermal_debug_cdev_remove() does not run under cdev->lock, it can run in parallel with thermal_debug_cdev_state_update() and it may free the struct thermal_debugfs object used by the latter after it has been checked against NULL. If that happens, thermal_debug_cdev_state_update() will access memory that has been freed already causing the kernel to crash. Address this by using cdev->lock in thermal_debug_cdev_remove() around the cdev->debugfs value check (in case the same cdev is removed at the same time in two different threads) and its reset to NULL. Cc :6.8+ # 6.8+

osv:CVE-2024-36932

Kernel

Fixed versions: 6.8.10

Complete source record
{
  "id": "1e2d089515ef4733ca6f71e91b63f0e5b562681bd40eeb99a788fd1cc1e163ca",
  "url": "https://osv.dev/vulnerability/CVE-2024-36932",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "thermal/debugfs: Prevent use-after-free from occurring after cdev removal",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: thermal/debugfs: Prevent use-after-free from occurring after cdev removal Since thermal_debug_cdev_remove() does not run under cdev->lock, it can run in parallel with thermal_debug_cdev_state_update() and it may free the struct thermal_debugfs object used by the latter after it has been checked against NULL. If that happens, thermal_debug_cdev_state_update() will access memory that has been freed already causing the kernel to crash. Address this by using cdev->lock in thermal_debug_cdev_remove() around the cdev->debugfs value check (in case the same cdev is removed at the same time in two different threads) and its reset to NULL. Cc :6.8+ # 6.8+",
    "evidence": "osv:CVE-2024-36932",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.8.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2024-36932",
      "aliases": [
        "CVE-2024-36932"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "755113d7678681a137c330f7997ceb680adb644e"
                },
                {
                  "fixed": "c1279dee33369e2525f532364bb87207d23b9481"
                },
                {
                  "fixed": "d351eb0ab04c3e8109895fc33250cebbce9c11da"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36932.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.8.0"
                },
                {
                  "fixed": "6.8.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36932.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.612478191Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/c1279dee33369e2525f532364bb87207d23b9481",
        "https://git.kernel.org/stable/c/d351eb0ab04c3e8109895fc33250cebbce9c11da",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36932.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-36932",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36932.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-36932",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 520101,
  "published_at": "2024-05-30T15:29:23.178+00:00"
}