{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "59d0f2da35693bfbcf6ffb014213cb8e225c8928"
            },
            {
              "fixed": "2ad1c3e70c826892fc3a19b6c9a26489ee1f14cf"
            },
            {
              "fixed": "36eeb26031e90eeb81bbac3d3acad61d23fcbdf3"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.12.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142957.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\niio: temperature: hid-sensor-temperature: Use per-instance callbacks\n\nhid-sensor-temperature keeps a single static struct\nhid_sensor_hub_callbacks for all instances and overwrites its pdev in\nevery probe.  With two temperature sensors, input reports for one are\ndelivered with the other's platform device; once that device is\nremoved, platform_get_drvdata() returns NULL and\ntemperature_capture_sample() dereferences it:\n\n  BUG: kernel NULL pointer dereference, address: 00000000000003a8\n  RIP: 0010:temperature_capture_sample+0xd/0x50 [hid_sensor_temperature]\n\nThe oops happens in sensor_hub_raw_event() with the hub's spinlock\nheld, so the hub's removal then hangs.  It reproduces with two uhid\ndevices that each declare a temperature sensor, one destroyed while\nthe other still sends input reports.\n\nKeep the callbacks in struct temperature_state, as the other HID\nsensor drivers (accel, gyro, als, ...) do.",
  "id": "CVE-2026-142957",
  "modified": "2026-12-03T10:45:50.003461158Z",
  "published": "2026-12-03T09:16:45.876Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2ad1c3e70c826892fc3a19b6c9a26489ee1f14cf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/36eeb26031e90eeb81bbac3d3acad61d23fcbdf3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142957.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142957"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "iio: temperature: hid-sensor-temperature: Use per-instance callbacks"
}