{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-80767",
  "modified": "2026-10-07T17:22:01Z",
  "upstream": [
    "CVE-2026-80767"
  ],
  "published": "2026-09-04T15:14:07Z",
  "summary": "HID: sensor: custom: Fix use-after-free in enable_sensor",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: sensor: custom: Fix use-after-free in enable_sensor\n\nenable_sensor_store() can call set_power_report_state(), which\ndereferences sensor_inst->power_state and sensor_inst->report_state.\nThese pointers refer to entries in sensor_inst->fields.\n\nCreate the field attributes before exposing the enable_sensor sysfs\nattribute, so enable_sensor cannot be accessed before the state it\ndepends on has been initialized.\n\nOn remove, delete enable_sensor before freeing the field attributes,\nso a concurrent sysfs write cannot dereference freed memory through\npower_state or report_state.",
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.185",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-80767"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c2be74b0272b7f8f60739e7aaf0d36c0befe7136"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d7cbea1d342a16ec96d9eb3d7bd0ba2d4b2f2855"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d37ff4e3635c18af907f25712596f8ccec323751"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2ce90cfc6646a32100feabd7110ae0352aa01167"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/244a1cb638370490ed74a8adb5cc3f1212602e32"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/8406d4b69d48bc72fb6f8812a65a17a1f903440b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c0757f10610542d763bd0bf9bda455b78afeef0b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/7bb79a3cf45e0805aef74457e19deb77e18cf196"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ad8fb82b04422f49530d2aa2753cc81d1c60102c"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-09-04T15:14:07Z"
  }
}
