CVE-2026-99313 (GCVE-0-2026-99313)

Vulnerability from cvelistv5 – Published: 2026-11-18 08:42 – Updated: 2026-11-19 13:52
VLAI
Title
HID: logitech-hidpp: fix race condition when accessing stale stack pointer
Summary
In the Linux kernel, the following vulnerability has been resolved: HID: logitech-hidpp: fix race condition when accessing stale stack pointer The driver uses hidpp->send_receive_buf to point to a stack-allocated buffer in the synchronous command path (__do_hidpp_send_message_sync). However, this pointer is not cleared when the function returns. If an event is processed (e.g. by a different thread) while the send_mutex is held by a new command, but before that command has updated send_receive_buf, the handler (hidpp_raw_hidpp_event) will observe that the mutex is locked and dereference the stale pointer. This results in an out-of-bounds access on a different thread's kernel stack (or a NULL pointer dereference on the very first command). Fix this by: 1. Clearing hidpp->send_receive_buf to NULL before releasing the mutex in the synchronous command path. 2. Moving the assignment of the local 'question' and 'answer' pointers inside the mutex_is_locked() block in the handler, and adding a NULL check before dereferencing.
Assigner
Linux CNA
Impacted products
Vendor Product Version
Linux Linux Affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 , < 0fe696148d2c6486e52220aab822135ed7d05f38 (git)
Affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 , < 88effb7680aea4fc9afaf5780a706f5f30d3de42 (git)
Affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 , < f427383e734e95af923ac470782ad9a3d1f0c276 (git)
Affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 , < 8f282d12550e3beaf3fea782b5befa65f78b3c78 (git)
Affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 , < e320e65900f0e3bf2874e6f5091fec29384f4a60 (git)
Affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 , < 4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d (git)
Affected: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 , < e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e (git)
Affected: 0 , < 5.10.271 (semver)
Affected: 0 , < 5.15.222 (semver)
Affected: 0 , < 6.1.189 (semver)
Affected: 0 , < 6.6.158 (semver)
Affected: 0 , < 6.12.112 (semver)
Affected: 0 , < 6.18.54 (semver)
Create a notification for this product.
Linux Linux Unaffected: 5.10.271 , ≤ 5.10.* (semver)
Unaffected: 5.15.222 , ≤ 5.15.* (semver)
Unaffected: 6.1.189 , ≤ 6.1.* (semver)
Unaffected: 6.6.158 , ≤ 6.6.* (semver)
Unaffected: 6.12.112 , ≤ 6.12.* (semver)
Unaffected: 6.18.54 , ≤ 6.18.* (semver)
Unaffected: 7.1 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/hid/hid-logitech-hidpp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0fe696148d2c6486e52220aab822135ed7d05f38",
              "status": "affected",
              "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
              "versionType": "git"
            },
            {
              "lessThan": "88effb7680aea4fc9afaf5780a706f5f30d3de42",
              "status": "affected",
              "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
              "versionType": "git"
            },
            {
              "lessThan": "f427383e734e95af923ac470782ad9a3d1f0c276",
              "status": "affected",
              "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
              "versionType": "git"
            },
            {
              "lessThan": "8f282d12550e3beaf3fea782b5befa65f78b3c78",
              "status": "affected",
              "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
              "versionType": "git"
            },
            {
              "lessThan": "e320e65900f0e3bf2874e6f5091fec29384f4a60",
              "status": "affected",
              "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
              "versionType": "git"
            },
            {
              "lessThan": "4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d",
              "status": "affected",
              "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
              "versionType": "git"
            },
            {
              "lessThan": "e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e",
              "status": "affected",
              "version": "1da177e4c3f41524e886b7f1b8a0c1fc7321cac2",
              "versionType": "git"
            },
            {
              "lessThan": "5.10.271",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThan": "5.15.222",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThan": "6.1.189",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6.158",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThan": "6.12.112",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThan": "6.18.54",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/hid/hid-logitech-hidpp.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.271",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.222",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.189",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.158",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.112",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.54",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.271",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.222",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.189",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.158",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.112",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.54",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: logitech-hidpp: fix race condition when accessing stale stack pointer\n\nThe driver uses hidpp-\u003esend_receive_buf to point to a stack-allocated\nbuffer in the synchronous command path (__do_hidpp_send_message_sync).\nHowever, this pointer is not cleared when the function returns.\n\nIf an event is processed (e.g. by a different thread) while the\nsend_mutex is held by a new command, but before that command has\nupdated send_receive_buf, the handler (hidpp_raw_hidpp_event) will\nobserve that the mutex is locked and dereference the stale pointer.\n\nThis results in an out-of-bounds access on a different thread\u0027s kernel\nstack (or a NULL pointer dereference on the very first command).\n\nFix this by:\n1. Clearing hidpp-\u003esend_receive_buf to NULL before releasing the mutex\n   in the synchronous command path.\n2. Moving the assignment of the local \u0027question\u0027 and \u0027answer\u0027 pointers\n   inside the mutex_is_locked() block in the handler, and adding\n   a NULL check before dereferencing."
        }
      ],
      "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 triggering HID++ input report (id 0x10, 0x11, or 0x12) arrives on the Bluetooth HIDP interrupt channel: hidp_session_run() dequeues the L2CAP skb, hidp_recv_intr_frame() calls hidp_process_report(), hid_input_report() calls hidpp_raw_event(), and hidpp_raw_hidpp_event() dereferences the stale send_receive_buf. HID_BLUETOOTH_DEVICE() entries bind this driver to that radio-range transport.\nAC:L - The same peer creates both sides. A short report with rap.sub_id 0x41 makes hidpp_report_is_connect_event() schedule hidpp_connect_event(), and hidpp_root_get_protocol_version() then locks send_mutex in hidpp_send_message_sync() before __do_hidpp_send_message_sync() stores send_receive_buf, while the peer floods 0x10/0x11/0x12 reports into that window.\nPR:N - hidp_recv_intr_frame() and hidpp_raw_hidpp_event() accept the bonded peer\u0027s input report with no capable() check and no host credential. The attacker is the Bluetooth HID device matched by HID_BLUETOOTH_DEVICE(), not a local process.\nUI:N - On a bonded Logitech HID++ link, hidpp_probe() calls hid_device_io_start() and then hidpp_get_device_name(), and a peer-sent sub_id 0x41 report schedules hidpp_connect_event(). The peer sends those reports itself; no user open or mount is on the path.\nS:U - The *answer = *report write in hidpp_raw_hidpp_event() lands on the kernel stack of the thread that called __do_hidpp_send_message_sync(), which is the same host kernel authority as the HID++ driver.\nC:H - __do_hidpp_send_message_sync() leaves send_receive_buf aimed at the caller\u0027s stack hidpp_report. hidpp_raw_hidpp_event() reads question-\u003efap.feature_index and funcindex_clientid through that expired pointer and, on a match, *answer = *report overwrites 64 bytes of the other thread\u0027s kernel stack.\nI:H - When hidpp_match_answer() or hidpp_match_error() matches the stale pointer, hidpp_raw_hidpp_event() executes *answer = *report and copies the peer-controlled 64-byte hidpp_report onto the previous command\u0027s stack slot left set by __do_hidpp_send_message_sync().\nA:H - send_receive_buf is NULL after the hidpp kzalloc, so the first command\u0027s hidpp_match_answer() NULL-dereferences and oopses. Later, the same path uses the expired stack pointer and faults or corrupts the command thread\u0027s stack."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-19T13:52:47.104Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/0fe696148d2c6486e52220aab822135ed7d05f38"
        },
        {
          "url": "https://git.kernel.org/stable/c/88effb7680aea4fc9afaf5780a706f5f30d3de42"
        },
        {
          "url": "https://git.kernel.org/stable/c/f427383e734e95af923ac470782ad9a3d1f0c276"
        },
        {
          "url": "https://git.kernel.org/stable/c/8f282d12550e3beaf3fea782b5befa65f78b3c78"
        },
        {
          "url": "https://git.kernel.org/stable/c/e320e65900f0e3bf2874e6f5091fec29384f4a60"
        },
        {
          "url": "https://git.kernel.org/stable/c/4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d"
        },
        {
          "url": "https://git.kernel.org/stable/c/e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e"
        }
      ],
      "title": "HID: logitech-hidpp: fix race condition when accessing stale stack pointer",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99313",
    "datePublished": "2026-11-18T08:42:06.681Z",
    "dateReserved": "2026-09-25T10:25:14.407Z",
    "dateUpdated": "2026-11-19T13:52:47.104Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99313",
      "date": "2026-11-19",
      "epss": "0.00192",
      "percentile": "0.08978"
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-19T16:40:12+00:00",
      "cve": "CVE-2026-99313",
      "id": "CVE-2026-99313",
      "initial_release_date": "2026-11-18T08:42:06.681000+00:00",
      "product_status:known_affected": "162",
      "product_status:known_not_affected": "42",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via race condition in Logitech HID++ driver",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99313.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.