Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8335C33A9F4 for ; Tue, 16 Dec 2025 14:45:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765896338; cv=none; b=Ix02l/pTbU6O0RnFkewbjrByVRpjVz5ktdU58duHx4X9tnKfgVPvpx1pEER7GTHnYJ07dFLxNrTp1/VqxNhI+BDx+POJ2RT1SKH4TvhJEqQGoHFI6K2DbUnSuyuE3RtbXZ3A74CeNimLKsJor9JAWKst6i+2Op8PViXKBIF1z2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765896338; c=relaxed/simple; bh=KUd0leDh8YZmyQ4lzdWm+JR0AWHjYS5jvEOZJWVVB+M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ESGIdruVHo24qjULvNeH9T+OjB26csXVcPLm3J6a0xK9Uh1XQpEfJ/Uwe7cyWC9UVK7nt7CLMuwwCFr3lVcHcrOBBB4PPsKMsP37xPFhAwLzAlTexKzNXsYHlQxRzCWFWhTsmEOc67ADehr/1M6WT3SX9DkD95lOWn972yqk2C8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Dw1E7jIQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Dw1E7jIQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 363C8C4CEF1; Tue, 16 Dec 2025 14:45:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765896337; bh=KUd0leDh8YZmyQ4lzdWm+JR0AWHjYS5jvEOZJWVVB+M=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Dw1E7jIQP3/+HS3O7nG4Io3TlDu8IFF08QZuS9JU7E4xL7hG89U0b0SpLa3rJCfvP OjToa1v8TK2BsOPeU1s/jwx0+zeraQ9dq1ih0r/YuS+ngCcgW5BPKPqh+EW9fSuaJH owMw1VrXwt4KmSFNwlw3xt/cWejZimPh5AgwJ63w= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68258: comedi: multiq3: sanitize config options in multiq3_attach() Date: Tue, 16 Dec 2025 15:45:15 +0100 Message-ID: <2025121613-CVE-2025-68258-9a76@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3781; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+H5SALPOLLtjWHLOaJQF3/ds5Ny6GEYf/LOW+Mg+J94=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOBZV+32elX9fTl71YtSlOXjqSZU9/ZJeY+AWbJ8xXj Hw3R4Z2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwESaxRkWXDw4bX9bkFlS1Oxb 1V59Bk/5WZnFGOYXuUgbWotKCb5dkLpvvtnN7aefnrsPAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: comedi: multiq3: sanitize config options in multiq3_attach() Syzbot identified an issue [1] in multiq3_attach() that induces a task timeout due to open() or COMEDI_DEVCONFIG ioctl operations, specifically, in the case of multiq3 driver. This problem arose when syzkaller managed to craft weird configuration options used to specify the number of channels in encoder subdevice. If a particularly great number is passed to s->n_chan in multiq3_attach() via it->options[2], then multiple calls to multiq3_encoder_reset() at the end of driver-specific attach() method will be running for minutes, thus blocking tasks and affected devices as well. While this issue is most likely not too dangerous for real-life devices, it still makes sense to sanitize configuration inputs. Enable a sensible limit on the number of encoder chips (4 chips max, each with 2 channels) to stop this behaviour from manifesting. [1] Syzbot crash: INFO: task syz.2.19:6067 blocked for more than 143 seconds. ... Call Trace: context_switch kernel/sched/core.c:5254 [inline] __schedule+0x17c4/0x4d60 kernel/sched/core.c:6862 __schedule_loop kernel/sched/core.c:6944 [inline] schedule+0x165/0x360 kernel/sched/core.c:6959 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:7016 __mutex_lock_common kernel/locking/mutex.c:676 [inline] __mutex_lock+0x7e6/0x1350 kernel/locking/mutex.c:760 comedi_open+0xc0/0x590 drivers/comedi/comedi_fops.c:2868 chrdev_open+0x4cc/0x5e0 fs/char_dev.c:414 do_dentry_open+0x953/0x13f0 fs/open.c:965 vfs_open+0x3b/0x340 fs/open.c:1097 ... The Linux kernel CVE team has assigned CVE-2025-68258 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 77e01cdbad5175f56027fd6fae00bd0fc175651a and fixed in 6.12.62 with commit 8952bc1973cd54158c35e06bfb8c29ace7375a48 Issue introduced in 2.6.30 with commit 77e01cdbad5175f56027fd6fae00bd0fc175651a and fixed in 6.17.12 with commit 8dc2f02d3bada9247f00bfd2e5f61f68c389a0a3 Issue introduced in 2.6.30 with commit 77e01cdbad5175f56027fd6fae00bd0fc175651a and fixed in 6.18.1 with commit 543f4c380c2e1f35e60528df7cb54705cda7fee3 Issue introduced in 2.6.30 with commit 77e01cdbad5175f56027fd6fae00bd0fc175651a and fixed in 6.19-rc1 with commit f24c6e3a39fa355dabfb684c9ca82db579534e72 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-68258 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/comedi/drivers/multiq3.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/8952bc1973cd54158c35e06bfb8c29ace7375a48 https://git.kernel.org/stable/c/8dc2f02d3bada9247f00bfd2e5f61f68c389a0a3 https://git.kernel.org/stable/c/543f4c380c2e1f35e60528df7cb54705cda7fee3 https://git.kernel.org/stable/c/f24c6e3a39fa355dabfb684c9ca82db579534e72