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 82BB8BE46 for ; Sat, 16 Aug 2025 11:14:55 +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=1755342895; cv=none; b=tJ5XZiF/yw4MuQNcNYSa4/aK+kLdmTpgwwY9rRFfalAc4jOfjnKbrtTBQQiWiq4ZP5fwTp8D7qznxluG6MzUKjZPrxOHeFas0SHPqkwlIsBao+KXIdumdILGaEZG1LlWSwJ0Z7dEQCEISbohHiGdGnA03Ogn4VUCZZzIZ6AIgZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755342895; c=relaxed/simple; bh=kj/G0GrauUqZNLVZt1qGvfPsvjfRF2g58XERlvKEdDg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FXkpWD2x67GnLRxD8SuUg+FtvgNh5mre9JoIQTNjpDamnTLHce5VcdsqJjFqFCPNNW6En7G7Ee6dyfOOG3J6BDNKnYSQtcWHZGy3Y1MWa5fe+RpFwildW6ilo1V3MzqNRGz506KuD5O4Kb4Phi7rhiYBW8KJX6lK9sTKRNWInjQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y0vWJ2Ev; 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="y0vWJ2Ev" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9481CC4CEEF; Sat, 16 Aug 2025 11:14:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755342895; bh=kj/G0GrauUqZNLVZt1qGvfPsvjfRF2g58XERlvKEdDg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=y0vWJ2EvOGWwqKHkD+9h1As7bL66j+Rn/HBcoYFw8uMvETArt6WYAa6h3BomilQyv IqK6s0tju5/JgOrMv5n7K8v2PzhSe0+fUU8kmwvzoT6uekhN1j5k54dmyLfXTnzGHD ynPZdTzNzLvSIULDMDOsvS1AvsCY5bQUDvh6KM4s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38529: comedi: aio_iiro_16: Fix bit shift out of bounds Date: Sat, 16 Aug 2025 13:14:00 +0200 Message-ID: <2025081654-CVE-2025-38529-bd7f@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2936; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w5bT29ZXvlEot3XK6bMaBd9Saqy33OYsLUCxYvpbJmk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkL0j9ddclfVDiP1cuEcfPU23umP14q0N4dwODJx14Tw jlNSqeiI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACaycy7Dgq0MNwzeivRennRW QVv7+GTvecnFBxnm6QrI2Mzf+qih8aIdf+InjZZczvPhAA== 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: aio_iiro_16: Fix bit shift out of bounds When checking for a supported IRQ number, the following test is used: if ((1 << it->options[1]) & 0xdcfc) { However, `it->options[i]` is an unchecked `int` value from userspace, so the shift amount could be negative or out of bounds. Fix the test by requiring `it->options[1]` to be within bounds before proceeding with the original test. Valid `it->options[1]` values that select the IRQ will be in the range [1,15]. The value 0 explicitly disables the use of interrupts. The Linux kernel CVE team has assigned CVE-2025-38529 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit ad7a370c8be47247f68f7187cc82f4f25a347116 and fixed in 6.1.147 with commit ff30dd3f15f443d2a0085b12ec2cc95d44f35fa7 Issue introduced in 4.0 with commit ad7a370c8be47247f68f7187cc82f4f25a347116 and fixed in 6.6.100 with commit 955e8835855fed8e87f7d8c8075564a1746c1b4c Issue introduced in 4.0 with commit ad7a370c8be47247f68f7187cc82f4f25a347116 and fixed in 6.12.40 with commit e0f3c0867d7d231c70984f05c97752caacd0daba Issue introduced in 4.0 with commit ad7a370c8be47247f68f7187cc82f4f25a347116 and fixed in 6.15.8 with commit 43ddd82e6a91913cea1c078e782afd8de60c3a53 Issue introduced in 4.0 with commit ad7a370c8be47247f68f7187cc82f4f25a347116 and fixed in 6.16 with commit 66acb1586737a22dd7b78abc63213b1bcaa100e4 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-38529 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/aio_iiro_16.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/ff30dd3f15f443d2a0085b12ec2cc95d44f35fa7 https://git.kernel.org/stable/c/955e8835855fed8e87f7d8c8075564a1746c1b4c https://git.kernel.org/stable/c/e0f3c0867d7d231c70984f05c97752caacd0daba https://git.kernel.org/stable/c/43ddd82e6a91913cea1c078e782afd8de60c3a53 https://git.kernel.org/stable/c/66acb1586737a22dd7b78abc63213b1bcaa100e4