{"id":"CVE-2026-99313","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-18T09:17:45.197","lastModified":"2026-11-20T06:17:46.493","vulnStatus":"Received","cveTags":[],"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/hid/hid-logitech-hidpp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"0fe696148d2c6486e52220aab822135ed7d05f38","versionType":"git","status":"affected"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"88effb7680aea4fc9afaf5780a706f5f30d3de42","versionType":"git","status":"affected"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"f427383e734e95af923ac470782ad9a3d1f0c276","versionType":"git","status":"affected"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"8f282d12550e3beaf3fea782b5befa65f78b3c78","versionType":"git","status":"affected"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"e320e65900f0e3bf2874e6f5091fec29384f4a60","versionType":"git","status":"affected"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d","versionType":"git","status":"affected"},{"version":"2f31c52529103d8f0e1485272064f982d14ce54a","lessThan":"e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e","versionType":"git","status":"affected"},{"version":"bd28e66ce1fb42696c351aad8f736570938a2712","versionType":"git","status":"affected"},{"version":"3.18.17","lessThan":"3.19","versionType":"semver","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/hid/hid-logitech-hidpp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"3.19","status":"affected"},{"version":"0","lessThan":"3.19","versionType":"semver","status":"unaffected"},{"version":"5.10.271","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.222","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.189","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.158","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.112","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.54","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"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","attackVector":"ADJACENT_NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}]},"references":[{"url":"https://git.kernel.org/stable/c/0fe696148d2c6486e52220aab822135ed7d05f38","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/4ed6f5d94cc86af5e1d4a2f5cdaf565d4d58300d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/88effb7680aea4fc9afaf5780a706f5f30d3de42","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8f282d12550e3beaf3fea782b5befa65f78b3c78","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e2aaf2d3ad92ac4a8afa6b69ad4c38e7747d3d6e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/e320e65900f0e3bf2874e6f5091fec29384f4a60","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/f427383e734e95af923ac470782ad9a3d1f0c276","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}