From mboxrd@z Thu Jan 1 00:00:00 1970 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 579721E86E for ; Wed, 29 May 2024 07:35:57 +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=1716968158; cv=none; b=fMeVZOZY0xWrxF99yFFn2ktfMMK9/7+/kl7+Q46B53zjbyPqPzzRbYaSyeobp4fFL3ehDqn85BEFwffMzwzZEluGJkkdFPu3QbhK65AblpStrskEtkoYUVxGKnwzzbzsVxsq6trxQqBPsZmzsg/Iy/1FCWOJyJ+iBHtAcOloVSQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716968158; c=relaxed/simple; bh=hC3/yktRYS3B3HwhnwmtyuPAHP1eawFtC/WBq2Ynj64=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z4tYbPTAU0VstpwVhhrESK36I3PLvqEfr3PSxDqASDSrvUXCDOx3pyAikGmjppyHb7YgHXdK6dvRWF/4AApIM3272nO/WoQGLt2ssFttCQ3t5fcjULgKoMWtfutMK0My6HtrIkTpd4jUGDGBr99g1efiWKC3yeAuRE3VMOoJ13U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a185OmV1; 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="a185OmV1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81E81C2BD10; Wed, 29 May 2024 07:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716968157; bh=hC3/yktRYS3B3HwhnwmtyuPAHP1eawFtC/WBq2Ynj64=; h=From:To:Cc:Subject:Date:Reply-to:From; b=a185OmV10Oc6njOfxZ6PWX7lV14mjndwbf0SW90a5L8IH2qX51DQkl72X1/C3bh/d rKKYGFgr30Bhx/UonUk2662SoTAc5SXQFxSDUJB6dIBgFLwo2GL8hb366v35F/Sg4i wBwXolhqC0hP9XTvPmMVN+XbBLRxqDjE58CQJsZ0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36015: ppdev: Add an error check in register_device Date: Wed, 29 May 2024 09:35:58 +0200 Message-ID: <2024052957-CVE-2024-36015-3c7c@gregkh> X-Mailer: git-send-email 2.45.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=1909; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hC3/yktRYS3B3HwhnwmtyuPAHP1eawFtC/WBq2Ynj64=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlht+5KV2pfDS5itArZZXzJyuJbYLf5ak+B/bKFZe51P rbc32U7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJLJRkWNItpd/9wV7L+X+ge HLlP8ecx3svvGebnO8Qd43kyX74h1YlZ9uhN51PhR/8DAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ppdev: Add an error check in register_device In register_device, the return value of ida_simple_get is unchecked, in witch ida_simple_get will use an invalid index value. To address this issue, index should be checked after ida_simple_get. When the index value is abnormal, a warning message should be printed, the port should be dropped, and the value should be recorded. The Linux kernel CVE team has assigned CVE-2024-36015 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 9a69645dde11 and fixed in 6.10-rc1 with commit fbf740aeb86a Issue introduced in 4.9.22 with commit 9c2b46e720d5 Issue introduced in 4.10.7 with commit 762602796be6 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-2024-36015 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/char/ppdev.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/fbf740aeb86a4fe82ad158d26d711f2f3be79b3e