{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99313","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.407Z","datePublished":"2026-11-18T08:42:06.681Z","dateUpdated":"2026-11-20T05:11:35.305Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-20T05:11:35.305Z"},"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->send_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's kernel\nstack (or a NULL pointer dereference on the very first command).\n\nFix this by:\n1. Clearing hidpp->send_receive_buf to NULL before releasing the mutex\n   in the synchronous command path.\n2. Moving the assignment of the local 'question' and 'answer' pointers\n   inside the mutex_is_locked() block in the handler, and adding\n   a NULL check before dereferencing."}],"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 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's 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's stack hidpp_report. hidpp_raw_hidpp_event() reads question->fap.feature_index and funcindex_clientid through that expired pointer and, on a match, *answer = *report overwrites 64 bytes of the other thread's 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's 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's hidpp_match_answer() NULL-dereferences and oopses. Later, the same path uses the expired stack pointer and faults or corrupts the command thread's stack."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-logitech-hidpp.c"],"versions":[{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"0fe696148d2c6486e52220aab822135ed7d05f38","status":"affected","versionType":"git"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"88effb7680aea4fc9afaf5780a706f5f30d3de42","status":"affected","versionType":"git"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"f427383e734e95af923ac470782ad9a3d1f0c276","status":"affected","versionType":"git"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"8f282d12550e3beaf3fea782b5befa65f78b3c78","status":"affected","versionType":"git"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"e320e65900f0e3bf2874e6f5091fec29384f4a60","status":"affected","versionType":"git"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d","status":"affected","versionType":"git"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e","status":"affected","versionType":"git"},{"version":"bd28e66ce1fb42696c351aad8f736570938a2712","status":"affected","versionType":"git"},{"version":"3.18.17","lessThan":"3.19","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-logitech-hidpp.c"],"versions":[{"version":"3.19","status":"affected"},{"version":"0","lessThan":"3.19","status":"unaffected","versionType":"semver"},{"version":"5.10.271","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.222","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.189","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.158","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.112","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.54","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.1","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":"3.19","versionEndExcluding":"5.10.271"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"5.15.222"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"6.1.189"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"6.6.158"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"6.12.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"6.18.54"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.19","versionEndExcluding":"7.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18.17"}]}]}],"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"}}}}