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 4356345C1C for ; Wed, 1 May 2024 05:23: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=1714541038; cv=none; b=t1GUTLkeK61sZce7gbpyUEfv0HuoqnO7wKT+3D034to7Ql75uPgPgGI95jW2AHP0afbp+kar4hhKIwcSYMFN2Bz3fJm+y2sqY8yanZWSpsNpRTQoh0R4N3Gfuauo0PZSoYxzGS5KmVf7CJKKwUovMrvY36y5ILcqOu7+tD95HPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714541038; c=relaxed/simple; bh=1Ajnmdsm2Fz+qhQXFWoXdx+sB4OgJDwjXxvhmY22Wtw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jVh+e8meNEP14j4cgOSQv4zH0mqm57AWh5QAdBY8yLCnHlyk7FvlDnj6/rdy/zSu5uPE2K+SYmed3teOAgmjeEgW+6uBXjj9CXD/1iqJNDIT3bSB2NbvyxylDuEtmmFJm2xYqSD2cLq3kFAjW06MkfdD7FjZQFgGzoMvkEBIJl4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0gCA3mGw; 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="0gCA3mGw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75F61C113CC; Wed, 1 May 2024 05:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714541037; bh=1Ajnmdsm2Fz+qhQXFWoXdx+sB4OgJDwjXxvhmY22Wtw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0gCA3mGw25jJFfMRb2yfK+4Nbn9dfi4x9uLCHkblnojqjXEv/KnmtCL7QWASNA7X9 L7p7se51Wp/FiDjhkjiyDGDwN84jxNOX7uLAaXGDXWKUEb0Uve5FIZ+LDZz+oLJ1y/ r/W3/lmDz4iZNNdrIC6+I0zvZfo+cbaD90I5WkF0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26978: serial: max310x: fix NULL pointer dereference in I2C instantiation Date: Wed, 1 May 2024 07:22:08 +0200 Message-ID: <2024050133-CVE-2024-26978-cc0d@gregkh> X-Mailer: git-send-email 2.44.0 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=2998; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1Ajnmdsm2Fz+qhQXFWoXdx+sB4OgJDwjXxvhmY22Wtw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmGF+O2eddNfjF/tdTZ4Cpx/bMnN19PvF2Sv5FBasGc6 W5ttvP7O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiARIM80xVXnwwyr14pKjg W5iC/zuvyVdb5zPM99u0vvh98b0jXMsaDs23KO7gTmByAQA= 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: serial: max310x: fix NULL pointer dereference in I2C instantiation When trying to instantiate a max14830 device from userspace: echo max14830 0x60 > /sys/bus/i2c/devices/i2c-2/new_device we get the following error: Unable to handle kernel NULL pointer dereference at virtual address... ... Call trace: max310x_i2c_probe+0x48/0x170 [max310x] i2c_device_probe+0x150/0x2a0 ... Add check for validity of devtype to prevent the error, and abort probe with a meaningful error message. The Linux kernel CVE team has assigned CVE-2024-26978 to this issue. Affected and fixed versions =========================== Issue introduced in 5.4.272 with commit f5c252aaa1be and fixed in 5.4.274 with commit 7d271b798add Issue introduced in 5.10.213 with commit 85d79478710a and fixed in 5.10.215 with commit c45e53c27b78 Issue introduced in 6.0 with commit 2e1f2d9a9bdb and fixed in 6.1.84 with commit 12609c76b755 Issue introduced in 6.0 with commit 2e1f2d9a9bdb and fixed in 6.6.24 with commit 2160ad6861c4 Issue introduced in 6.0 with commit 2e1f2d9a9bdb and fixed in 6.7.12 with commit 5cd8af02b466 Issue introduced in 6.0 with commit 2e1f2d9a9bdb and fixed in 6.8.3 with commit aeca49661fd0 Issue introduced in 6.0 with commit 2e1f2d9a9bdb and fixed in 6.9-rc1 with commit 0d27056c24ef 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-26978 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/tty/serial/max310x.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/7d271b798add90c6196539167c019d0817285cf0 https://git.kernel.org/stable/c/c45e53c27b78afd6c81fc25608003576f27b5735 https://git.kernel.org/stable/c/12609c76b755dbeb1645c0aacc0f0f4743b2eff3 https://git.kernel.org/stable/c/2160ad6861c4a21d3fa553d7b2aaec6634a37f8a https://git.kernel.org/stable/c/5cd8af02b466e1beeae13e2de3dc58fcc7925e5a https://git.kernel.org/stable/c/aeca49661fd02fd56fb026768b580ce301b45733 https://git.kernel.org/stable/c/0d27056c24efd3d63a03f3edfbcfc4827086b110