{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-49974",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2025-06-18T10:57:27.385Z",
        "datePublished": "2025-06-18T11:00:37.224Z",
        "dateUpdated": "2026-08-15T12:23:02.248Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-15T12:23:02.248Z"
            },
            "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": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 8.8,
                        "baseSeverity": "HIGH"
                    },
                    "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->rumble_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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/hid/hid-nintendo.c"
                    ],
                    "versions": [
                        {
                            "version": "c4eae84feff3e68c2f385aa10faea4a96791e7ad",
                            "lessThan": "7c6e6c334154be16740b44dcd7638fb510b9bd91",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c4eae84feff3e68c2f385aa10faea4a96791e7ad",
                            "lessThan": "1ff89e06c2e5fab30274e4b02360d4241d6e605e",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/hid/hid-nintendo.c"
                    ],
                    "versions": [
                        {
                            "version": "5.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.19.7",
                            "lessThanOrEqual": "5.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.0",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.16",
                                    "versionEndExcluding": "5.19.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.16",
                                    "versionEndExcluding": "6.0"
                                }
                            ]
                        }
                    ]
                }
            ],
            "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"
            }
        }
    }
}