{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-89729",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2026-89729"
  ],
  "published": "2026-09-11T19:47:07Z",
  "summary": "HID: sensor-hub: Fix out-of-bounds write in sensor_hub_get_feature",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: sensor-hub: Fix out-of-bounds write in sensor_hub_get_feature\n\nsensor_hub_get_feature() clamps its return value to the caller's buffer\nsize, but the copy loop still copies field->report_size / 8 bytes for\neach report value. A malicious HID descriptor can advertise a large\nfeature field size while an IIO caller supplies a small stack buffer,\nsuch as a single s32, causing an out-of-bounds write.\n\nHID core stores parsed report values in __s32 slots and clamps extracted\nvalues to 32 bits. Reject feature fields that require more than one slot\nper value, guard the total byte count calculation, and clamp each\nper-value copy to the remaining caller buffer.",
  "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-89729"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/1c0463f0f028801a933f090cd2695f132635b374"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4145aa149a32e4b35d5d47e380d0c6c438b4e6fe"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/8bf8aaf2f74de64f801eb30bc38927dba1f8e40a"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c5c60260a07e627084e792ea959ab468ccfa4d50"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/fa95b14198b6c8ea721b4784f466d3c2c2bac83a"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/9f43499ce6458a572b781f6bb46c464ab59fa825"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/bc3d72c44bff17688dc5f3e5132a53b51dae0f04"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c92693f3ed099401d0383ef35ca1fe1e6ba033de"
    }
  ],
  "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, so a Bluetooth HID/HoGP peripheral can present a Sensor-page descriptor and drive the bug over an adjacent wireless link; USB is only physical, and Adjacent is the most severe reasonable transport.\nAC:L - The attacker fully controls the report descriptor (report_size up to 256 bits, report_count, power-state feature) and GET_REPORT payload; IIO probe then copies report_size/8 bytes into a 4-byte stack buffer with no race or uncontrolled condition required.\nPR:N - A malicious HID peripheral is sufficient: hid-sensor-hub and IIO clients autoload and call sensor_hub_get_feature() during enumeration, with no local account, capability, or init-namespace privilege on the victim.\nUI:N - hid_sensor_parse_common_attributes() calls sensor_hub_get_feature() from IIO probe as soon as the device connects or auto-reconnects and MFD cells are registered; no extra victim open, mount, or confirmation is required.\nS:U - The out-of-bounds write corrupts host kernel stack/heap in HID/IIO processing and does not cross a VM, IOMMU, or other separate security authority.\nC:H - The unbounded memcpy reads field->value and adjacent kernel memory into an overflowed stack frame, and GET_REPORT values are attacker-controlled; this kernel memory corruption can be leveraged for information disclosure.\nI:H - This is a kernel stack out-of-bounds write of up to 32 attacker-influenced bytes into IIO callers' 4-byte s32 buffers, enabling control-flow hijacking; out-of-bounds writes are High integrity.\nA:H - Stack or adjacent-memory corruption from the unbounded copy causes a kernel oops/panic (canary, bad control flow, or heap corruption), denying availability until reboot."
    }
  }
}
