CVE-2022-49974 (GCVE-0-2022-49974)
Vulnerability from cvelistv5
Published
2025-06-18 11:00
Modified
2026-08-15 12:23
Summary
In the Linux kernel, the following vulnerability has been resolved: HID: nintendo: fix rumble worker null pointer deref We can dereference a null pointer trying to queue work to a destroyed workqueue. If the device is disconnected, nintendo_hid_remove is called, in which the rumble_queue is destroyed. Avoid using that queue to defer rumble work once the controller state is set to JOYCON_CTLR_STATE_REMOVED. This eliminates the null pointer dereference.
Impacted products
Vendor Product Version
Linux Linux Version: c4eae84feff3e68c2f385aa10faea4a96791e7ad
Version: c4eae84feff3e68c2f385aa10faea4a96791e7ad
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/hid/hid-nintendo.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "7c6e6c334154be16740b44dcd7638fb510b9bd91",
              "status": "affected",
              "version": "c4eae84feff3e68c2f385aa10faea4a96791e7ad",
              "versionType": "git"
            },
            {
              "lessThan": "1ff89e06c2e5fab30274e4b02360d4241d6e605e",
              "status": "affected",
              "version": "c4eae84feff3e68c2f385aa10faea4a96791e7ad",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/hid/hid-nintendo.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.16"
            },
            {
              "lessThan": "5.16",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.7",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "5.16",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: nintendo: fix rumble worker null pointer deref\n\nWe can dereference a null pointer trying to queue work to a destroyed\nworkqueue.\n\nIf the device is disconnected, nintendo_hid_remove is called, in which\nthe rumble_queue is destroyed. Avoid using that queue to defer rumble\nwork once the controller state is set to JOYCON_CTLR_STATE_REMOVED.\n\nThis eliminates the null pointer dereference."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 8.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:A - The hid-nintendo driver binds Joy-Cons and Pro Controllers over Bluetooth (`HID_BLUETOOTH_DEVICE`), so a nearby malicious or spoofed controller can drive connect/disconnect and HID report delivery. Bluetooth adjacency is the highest reasonable vector versus USB-physical.\nAC:L - The bug is a remove-versus-`queue_work` race on `rumble_queue`, and the Bluetooth peer controls disconnect timing and can retry while rumble is active. Attacker-influenced races are Low complexity under the required guidance.\nPR:N - An adjacent Bluetooth HID peer needs no local account or capability on the victim. Driver remove and report handling run from the Bluetooth/HID stack, not from attacker-held OS privileges.\nUI:N - Once a controller is paired or otherwise connected in normal gaming/handheld use, disconnect and rumble scheduling proceed without further victim action. Pairing is treated as an environmental precondition, not required interaction.\nS:U - The fault is in host-kernel HID/workqueue handling and stays within the same kernel security authority, with no VM, IOMMU, or sandbox boundary crossed.\nC:H - `nintendo_hid_remove()` calls `destroy_workqueue(ctlr-\u003erumble_queue)` without clearing the pointer, then `joycon_parse_report()`/`joycon_set_rumble()` can `queue_work()` on the freed workqueue. That dangling-pointer UAF is scored as high confidentiality impact.\nI:H - Queuing work through a destroyed `workqueue_struct` is kernel heap use-after-free of workqueue state, which is defensibly exploitable for memory corruption or control-flow integrity compromise under the required UAF guidance.\nA:H - Use of the destroyed rumble workqueue causes a kernel oops/panic-class crash (as described in the fix), so availability impact is High."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-15T12:23:02.248Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/7c6e6c334154be16740b44dcd7638fb510b9bd91"
        },
        {
          "url": "https://git.kernel.org/stable/c/1ff89e06c2e5fab30274e4b02360d4241d6e605e"
        }
      ],
      "title": "HID: nintendo: fix rumble worker null pointer deref",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49974",
    "datePublished": "2025-06-18T11:00:37.224Z",
    "dateReserved": "2025-06-18T10:57:27.385Z",
    "dateUpdated": "2026-08-15T12:23:02.248Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…