{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2023-53454",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2023-53454"
  ],
  "published": "2025-10-01T11:43:29Z",
  "summary": "HID: multitouch: Correct devm device reference for hidinput input_dev name",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: multitouch: Correct devm device reference for hidinput input_dev name\n\nReference the HID device rather than the input device for the devm\nallocation of the input_dev name. Referencing the input_dev would lead to a\nuse-after-free when the input_dev was unregistered and subsequently fires a\nuevent that depends on the name. At the point of firing the uevent, the\nname would be freed by devres management.\n\nUse devm_kasprintf to simplify the logic for allocating memory and\nformatting the input_dev name string.",
  "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.21-1+rpt1",
        "1:6.1.47-1+rpt2",
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v6",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v7",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v7l",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v8",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi2-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt2"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi2-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt2"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi2-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt2"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi2-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt2"
          },
          {
            "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.21-1+rpt1": {
            "linux_commit": "0afb5e98488aed7017b9bf321b575d0177feb7ed",
            "upstream_version": "6.1.21",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.53"
          },
          "1:6.1.47-1+rpt2": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.53"
          },
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.53",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2023-53454"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ac0d389402a6ff9ad92cea02c2d8c711483b91ab"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/39c70c19456e50dcb3abfe53539220dff0490f1d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/df7ca43fe090e1a56c216c8ebc106ef5fd49afc6"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/15ec7cb55e7d88755aa01d44a7a1015a42bfce86"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/dde88ab4e45beb60b217026207aa9c14c88d71ab"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2763732ec1e68910719c75b6b896e11b6d3d622b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/1d7833db9fd118415dace2ca157bfa603dec9c8c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b70ac7849248ec8128fa12f86e3655ba38838f29"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/4794394635293a3e74591351fff469cea7ad15a2"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T11:24:39Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 8.8,
      "cvss_v3_severity": "High",
      "scenario": "AV:A - hid-multitouch explicitly binds Bluetooth HID multitouch devices (MT_BT_DEVICE, BUS_BLUETOOTH, and HID_BUS_ANY catch-alls), so an in-range attacker can connect a crafted Bluetooth HID multitouch device and disconnect it to trigger the UAF; Adjacent is higher severity than the USB-only Physical path.\nAC:L - An attacker-controlled HID report descriptor with ContactID (to select HID_GROUP_MULTITOUCH) plus an unrecognized application collection forces the \"UNKNOWN\" suffix allocation, and disconnect reliably hits device_del's free-then-uevent ordering with no race beyond the attacker's control.\nPR:N - Bluetooth HID enumeration and driver bind/unbind run from kernel hotplug with no account, capability, or authentication on the target; the attacker needs no local privileges on the victim system.\nUI:N - The attacker performs connect and disconnect themselves (or via Just Works / auto-reconnect HID pairing), and the kernel probe/teardown path fires the uevent without requiring the victim to open a file or otherwise interact.\nS:U - The use-after-free corrupts kernel heap state within the same OS security authority; it does not cross a VM, IOMMU, or sandbox boundary.\nC:H - The freed input_dev name string is read via %s into the KOBJ_REMOVE uevent, so a groomed reallocation of the kmalloc object yields disclosure of attacker-chosen heap contents; kernel UAF is scored High confidentiality.\nI:H - The UAF is a sprayable kmalloc object whose dangling pointer is consumed during teardown; heap grooming enables overlapping objects and control-flow/write primitives, so integrity impact is High per UAF guidance.\nA:H - Use of the freed name during uevent generation reliably produces a kernel oops/panic (or KASAN slab-use-after-free), and the attacker can repeat connect/disconnect at will."
    }
  }
}
