{"id":"CVE-2026-143008","state":"PUBLISHED","title":"comedi: fix endless recursion in comedi_event()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: fix endless recursion in comedi_event()\n\nWhen comedi_event() was split into a wrapper which takes a reference on\nthe running command and _comedi_event(), which does the work, the wrapper\nended up calling itself:\n\n\tif (comedi_get_is_subdevice_running(s)) {\n\t\tcomedi_event(dev, s);\n\t\tcomedi_put_is_subdevice_running(s);\n\t}\n\nAs long as the command is running every level takes another reference\nand recurses, until the stack is used up.\n\nMost drivers go through comedi_handle_events(), which calls\n_comedi_event(). usbdux, usbduxfast and usbduxsigma cannot use that and\ncall comedi_event() from their URB completion handlers, i.e. for every\ncompleted URB of a running acquisition.","publishedAt":"2026-12-03T09:17:41.090Z","updatedAt":"2026-12-03T09:17:41.090Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"51495254fda43cf1027fe052a77bea742ca23a05","status":"affected","lessThan":"311fb211ab60d64d2474457d1ee0fac719597776","versionType":"git"},{"version":"51495254fda43cf1027fe052a77bea742ca23a05","status":"affected","lessThan":"d432e5d3dbd98589029905e898bfe7005be69b68","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/comedi/comedi_fops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/comedi/comedi_fops.c"]}],"references":["https://git.kernel.org/stable/c/311fb211ab60d64d2474457d1ee0fac719597776","https://git.kernel.org/stable/c/d432e5d3dbd98589029905e898bfe7005be69b68"],"weaknesses":[],"ingestedAt":"2026-12-03T09:26:06.073Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143008.json","commit":"9fd484e43f2e14021809e195d28c1172759faad0","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143008","state":"PUBLISHED","datePublished":"2026-12-03T09:17:41.090Z","dateUpdated":"2026-12-03T09:17:41.090Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.342Z"},"containers":{"cna":{"title":"comedi: fix endless recursion in comedi_event()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: fix endless recursion in comedi_event()\n\nWhen comedi_event() was split into a wrapper which takes a reference on\nthe running command and _comedi_event(), which does the work, the wrapper\nended up calling itself:\n\n\tif (comedi_get_is_subdevice_running(s)) {\n\t\tcomedi_event(dev, s);\n\t\tcomedi_put_is_subdevice_running(s);\n\t}\n\nAs long as the command is running every level takes another reference\nand recurses, until the stack is used up.\n\nMost drivers go through comedi_handle_events(), which calls\n_comedi_event(). usbdux, usbduxfast and usbduxsigma cannot use that and\ncall comedi_event() from their URB completion handlers, i.e. for every\ncompleted URB of a running acquisition."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"51495254fda43cf1027fe052a77bea742ca23a05","status":"affected","lessThan":"311fb211ab60d64d2474457d1ee0fac719597776","versionType":"git"},{"version":"51495254fda43cf1027fe052a77bea742ca23a05","status":"affected","lessThan":"d432e5d3dbd98589029905e898bfe7005be69b68","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/comedi/comedi_fops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/comedi/comedi_fops.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/311fb211ab60d64d2474457d1ee0fac719597776"},{"url":"https://git.kernel.org/stable/c/d432e5d3dbd98589029905e898bfe7005be69b68"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:17:41.090Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.4-rc4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}