Skip to content
Heist/ feed
Back to feed
UnratedFix available

hwmon: (coretemp) Simplify platform device handling

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: hwmon: (coretemp) Simplify platform device handling Coretemp's platform driver is unconventional. All the real work is done globally by the initcall and CPU hotplug notifiers, while the "driver" effectively just wraps an allocation and the registration of the hwmon interface in a long-winded round-trip through the driver core. The whole logic of dynamically creating and destroying platform devices to bring the interfaces up and down is error prone, since it assumes platform_device_add() will synchronously bind the driver and set drvdata before it returns, thus results in a NULL dereference if drivers_autoprobe is turned off for the platform bus. Furthermore, the unusual approach of doing that from within a CPU hotplug notifier, already commented in the code that it deadlocks suspend, also causes lockdep issues for other drivers or subsystems which may want to legitimately register a CPU hotplug notifier from a platform bus notifier. All of these issues can be solved by ripping this unusual behaviour out completely, simply tying the platform devices to the lifetime of the module itself, and directly managing the hwmon interfaces from the hotplug notifiers. There is a slight user-visible change in that /sys/bus/platform/drivers/coretemp will no longer appear, and /sys/devices/platform/coretemp.n will remain present if package n is hotplugged off, but hwmon users should really only be looking for the presence of

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.173, 5.15.99, 5.4.235, 6.1.16, 6.2.3
CVEs
CVE-2023-53612
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 01:52 UTC · Revision 1

Source evidence

hwmon: (coretemp) Simplify platform device handling

core-osv · Original source

Published 4 Oct 2025, 15:44 UTC

In the Linux kernel, the following vulnerability has been resolved: hwmon: (coretemp) Simplify platform device handling Coretemp's platform driver is unconventional. All the real work is done globally by the initcall and CPU hotplug notifiers, while the "driver" effectively just wraps an allocation and the registration of the hwmon interface in a long-winded round-trip through the driver core. The whole logic of dynamically creating and destroying platform devices to bring the interfaces up and down is error prone, since it assumes platform_device_add() will synchronously bind the driver and set drvdata before it returns, thus results in a NULL dereference if drivers_autoprobe is turned off for the platform bus. Furthermore, the unusual approach of doing that from within a CPU hotplug notifier, already commented in the code that it deadlocks suspend, also causes lockdep issues for other drivers or subsystems which may want to legitimately register a CPU hotplug notifier from a platform bus notifier. All of these issues can be solved by ripping this unusual behaviour out completely, simply tying the platform devices to the lifetime of the module itself, and directly managing the hwmon interfaces from the hotplug notifiers. There is a slight user-visible change in that /sys/bus/platform/drivers/coretemp will no longer appear, and /sys/devices/platform/coretemp.n will remain present if package n is hotplugged off, but hwmon users should really only be looking for the presence of

osv:CVE-2023-53612

Kernel

Fixed versions: 5.4.235, 5.10.173, 5.15.99, 6.1.16, 6.2.3

Complete source record
{
  "id": "c5ad160aa7b9ffbcb6645aa0cd919afa5b08a4c1fe4eadaa1ba3e091fd75544f",
  "url": "https://osv.dev/vulnerability/CVE-2023-53612",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "hwmon: (coretemp) Simplify platform device handling",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: hwmon: (coretemp) Simplify platform device handling Coretemp's platform driver is unconventional. All the real work is done globally by the initcall and CPU hotplug notifiers, while the \"driver\" effectively just wraps an allocation and the registration of the hwmon interface in a long-winded round-trip through the driver core. The whole logic of dynamically creating and destroying platform devices to bring the interfaces up and down is error prone, since it assumes platform_device_add() will synchronously bind the driver and set drvdata before it returns, thus results in a NULL dereference if drivers_autoprobe is turned off for the platform bus. Furthermore, the unusual approach of doing that from within a CPU hotplug notifier, already commented in the code that it deadlocks suspend, also causes lockdep issues for other drivers or subsystems which may want to legitimately register a CPU hotplug notifier from a platform bus notifier. All of these issues can be solved by ripping this unusual behaviour out completely, simply tying the platform devices to the lifetime of the module itself, and directly managing the hwmon interfaces from the hotplug notifiers. There is a slight user-visible change in that /sys/bus/platform/drivers/coretemp will no longer appear, and /sys/devices/platform/coretemp.n will remain present if package n is hotplugged off, but hwmon users should really only be looking for the presence of",
    "evidence": "osv:CVE-2023-53612",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.235",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.173",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.99",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.16",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.2.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2023-53612",
      "aliases": [
        "CVE-2023-53612"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e1b370b64031a01bb0c4158ce250073a88921fe1"
                },
                {
                  "fixed": "4000384684f612b3645a944f6acde0e65ac370b8"
                },
                {
                  "fixed": "5735878a7b7db7e9ce731cb36cec298a9de67549"
                },
                {
                  "fixed": "52ea47a0ddfbc5fe05e873d3f5a59db4ba3e03fe"
                },
                {
                  "fixed": "8fcdbc4bc01365f4b10fed7db544a3149e3054fd"
                },
                {
                  "fixed": "c57a8d14d7880521150ee801d53a0a64fdffd9c8"
                },
                {
                  "fixed": "6d03bbff456befeccdd4d663177c4d6c75d0c4ff"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53612.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.10.0"
                },
                {
                  "fixed": "5.4.235"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.173"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.99"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.16"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.2.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53612.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:45.945585953Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/4000384684f612b3645a944f6acde0e65ac370b8",
        "https://git.kernel.org/stable/c/52ea47a0ddfbc5fe05e873d3f5a59db4ba3e03fe",
        "https://git.kernel.org/stable/c/5735878a7b7db7e9ce731cb36cec298a9de67549",
        "https://git.kernel.org/stable/c/6d03bbff456befeccdd4d663177c4d6c75d0c4ff",
        "https://git.kernel.org/stable/c/8fcdbc4bc01365f4b10fed7db544a3149e3054fd",
        "https://git.kernel.org/stable/c/c57a8d14d7880521150ee801d53a0a64fdffd9c8",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53612.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-53612",
        "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/2023/53xxx/CVE-2023-53612.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-53612",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 514025,
  "published_at": "2025-10-04T15:44:20.297+00:00"
}