{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-89626",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-89626"
  ],
  "published": "2026-09-11T19:47:07Z",
  "summary": "HID: sensor: custom: Fix field sysfs group cleanup on failure",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: sensor: custom: Fix field sysfs group cleanup on failure\n\nhid_sensor_custom_add_attributes() creates one sysfs group for each\ncustom sensor field. If sysfs_create_group() fails after some groups\nhave already been created, the function returns the error without\nremoving the previously created groups.\n\nAdd a local unwind path to remove the groups that were already created.\nWith enable_sensor exposed only after the field attributes are ready,\nthis path can free sensor_inst->fields without leaving enable_sensor\nable to access pointers into that array.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "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.188",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-89626"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/416194933af63bd58d03b7605b1ebc1711186838"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d0e15091e88d18e30b67daf85b88f6528bb9bf41"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/10b05fafff932e325896d59dde40938954ab4577"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2409779f3096fcef41bcf57b5f4887d0fa0dc8dd"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/79154fad98ee843e5363940841e2d831503c190a"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f3f37b937a6ea2a00fb5e6189e74f855caa43eb5"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d96f8958d4469ac02d9c563686cdd968005b944d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3789d0802ddb4b3be04062caf4bfadd23496e9a7"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-09-14T12:06:03Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 8.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:A - hid-sensor-hub matches HID_BUS_ANY HID_GROUP_SENSOR_HUB devices and instantiates HID-SENSOR-2000e1/2000e2, so a Bluetooth HID/HoGP peer in radio range can supply a crafted custom-sensor descriptor that probes hid-sensor-custom; USB attach is only a lower-severity physical path.\nAC:L - Duplicate feature/input field group names in the attacker-controlled HID descriptor make sysfs_create_group() fail with -EEXIST after earlier groups are installed, so the missing unwind runs deterministically with no attacker-uncontrollable race or memory layout.\nPR:N - hid_sensor_custom_probe() runs from HID/MFD enumeration when the Bluetooth or USB sensor-hub connects and needs no local account, capability, or userspace authorization.\nUI:N - Probe and sysfs group creation run automatically on HID connect; leftover field attributes are then hit by udev and ordinary sysfs reads with no separate victim mount or file-open action.\nS:U - The leftover sysfs groups and use-after-free of probe-allocated hid_sensor_custom state remain in the host kernel and do not cross a VM, IOMMU, or sandbox boundary.\nC:H - Failed probe leaves field sysfs groups in place while really_probe() device_unbind_cleanup() frees the devm hid_sensor_custom object, so in-progress or later show_value() is a slab use-after-free enabling arbitrary kernel read.\nI:H - The same dangling sysfs show/store path runs against freed hid_sensor_custom state (fields, mutex, hid-sensor-hub pointers), a heap UAF that can be sprayed for arbitrary write and control-flow hijack.\nA:H - Accessing leftover field attributes after probe failure NULL-dereferences cleared drvdata or uses freed sensor_inst, causing kernel oops/panic; any UAF is High availability impact."
    }
  }
}
