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 143381DDC2D for ; Sun, 19 Jan 2025 11:54:07 +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=1737287647; cv=none; b=CNP1c6r4KFnOhuEBAhtUang+K4g2IMaMqS6c465ck1yNsWkz5zqHJZu8G/bJueJJ6Ubm3rwAZVhcU9FpKzmFocbYtxKFN0pb0xIhoC2u6tIj3kuPYKEym0t3kj0BRKBlOHfq7JxkG+CZ+eoLuUYI/gqM97ChO/heatVgcO/t+4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737287647; c=relaxed/simple; bh=wYSY0mVnPYLc5+wtqD4juEHHLvAhcbqLNShUEQuBfr4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ocV33hZViCwPDWaq5Nl7hFxM0Rn6nXKhnDnrS5vsB2+vNixgCzj7zzXRP9z44nRcm2RDP1vt2sYY7EeHazXdUtjzYddTSO4mb7qfBxdjkvzDb0UDq2PxY03k8V3v9yTbZHuPimmQZlXCy5xoR9g/E4OvglZ5zASNAlE8DXSAwNc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NVIXrHJu; 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="NVIXrHJu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E9D0C4CED6; Sun, 19 Jan 2025 11:54:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1737287647; bh=wYSY0mVnPYLc5+wtqD4juEHHLvAhcbqLNShUEQuBfr4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NVIXrHJup1TwZp5r2PnIZFIITyFCGMByTQro0GH5KofJxR6JU6dyCbNRWWCbvr8r7 dVIwd7Fh7EuLZyqhla27RbmD9G83FC0UQLdO2a4c6zD25OwOd3eq2adP9Jw84WAD8g pBlMCPFELHRDm/Bz6iEhaA9A2WI6+Iv0SnYTOsMs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57912: iio: pressure: zpa2326: fix information leak in triggered buffer Date: Sun, 19 Jan 2025 12:52:43 +0100 Message-ID: <2025011939-CVE-2024-57912-6049@gregkh> X-Mailer: git-send-email 2.48.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=2576; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wYSY0mVnPYLc5+wtqD4juEHHLvAhcbqLNShUEQuBfr4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk9z9vTYy0NHVJmTM7P3eYT/PGvt9TLNd1bE2qvOvS/6 8kqjP7aEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN5F88wP89a//nxM0c7FYu0 e6Yutdq7N8doDsP8wvOBq/7tYzGye79GL81H5XVc485XAA== 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: iio: pressure: zpa2326: fix information leak in triggered buffer The 'sample' local struct is used to push data to user space from a triggered buffer, but it has a hole between the temperature and the timestamp (u32 pressure, u16 temperature, GAP, u64 timestamp). This hole is never initialized. Initialize the struct to zero before using it to avoid pushing uninitialized information to userspace. The Linux kernel CVE team has assigned CVE-2024-57912 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 03b262f2bbf43b82eaef82ffb3bc671d5b5c8da1 and fixed in 6.1.125 with commit b7849f62e61242e0e02c776e1109eb81e59c567c Issue introduced in 4.9 with commit 03b262f2bbf43b82eaef82ffb3bc671d5b5c8da1 and fixed in 6.6.72 with commit fefb88a4da961a0b9c2473cbdcfce1a942fcfa9a Issue introduced in 4.9 with commit 03b262f2bbf43b82eaef82ffb3bc671d5b5c8da1 and fixed in 6.12.10 with commit 979a0db76ceda8fe1f2f85a116bfe97620ebbadf Issue introduced in 4.9 with commit 03b262f2bbf43b82eaef82ffb3bc671d5b5c8da1 and fixed in 6.13-rc7 with commit 6007d10c5262f6f71479627c1216899ea7f09073 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-57912 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/iio/pressure/zpa2326.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/b7849f62e61242e0e02c776e1109eb81e59c567c https://git.kernel.org/stable/c/fefb88a4da961a0b9c2473cbdcfce1a942fcfa9a https://git.kernel.org/stable/c/979a0db76ceda8fe1f2f85a116bfe97620ebbadf https://git.kernel.org/stable/c/6007d10c5262f6f71479627c1216899ea7f09073