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 7D6F21F94A for ; Thu, 27 Feb 2025 02:13:10 +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=1740622391; cv=none; b=g5vo/rpUQ341pFAzHy3IbwoguCABkURXucTnAN19D19tyTpfUe25X+YwKmsqC91Qt7EhQRaB4mWGsTVZ6yCtUrmi1ah5iukr/MN3vfGEEzDXg+GBmw4N4yRC+qRl+Kc/6JMTbqvPy2N+jwYAb7VnC5INi0oDpgEg429fsWdItv8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622391; c=relaxed/simple; bh=HMEN5oCjtkhI8BqH47feQ3rPisco09IefprT4xNWCb8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iwR5m1Di+5QSP9bZm5MdoH2DlR9kj+Vpjy3geciBMTHv8ezalBWLHIke/PVCS3XJ5PTI02NK3Cd+jq+lgLD1hukcbizVJHrQdF3fbx9ytAEhCEoPP2GOBU6cHVtorX+mzryF8p3m6azlVgeHOWPQA/qLKcPf0pRLP8byTSRjjKA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JQCf2oUJ; 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="JQCf2oUJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B484C4CED6; Thu, 27 Feb 2025 02:13:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622390; bh=HMEN5oCjtkhI8BqH47feQ3rPisco09IefprT4xNWCb8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=JQCf2oUJvijrBUPdg30pA1C7SvQd5IBQtygZug1jyzNPg+RA92u+4zHMxprnvJL4D S1ponyFlRsM9lEhTjA+s0qeImuk1NlgQHyAY51MOivDAtCbbo34LwGTgOHELaGzMHA Quw+iV2iYNGcvC51OZDz2yt0NscLE/5KLiyDJBTs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58003: media: i2c: ds90ub9x3: Fix extra fwnode_handle_put() Date: Wed, 26 Feb 2025 18:10:57 -0800 Message-ID: <2025022655-CVE-2024-58003-2b9b@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=2706; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HMEN5oCjtkhI8BqH47feQ3rPisco09IefprT4xNWCb8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7T67/slJixiINsdcr7zzmWHtfQjW2sbzS5lZwlkqMo 0flj/l/OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAitY8YFpzM9hMO9P2rdJn/ jX2WjE1XtbVTO8OCmYX5ti+t3Cf3yS78q7f2yKn9U0/lAAA= 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: media: i2c: ds90ub9x3: Fix extra fwnode_handle_put() The ub913 and ub953 drivers call fwnode_handle_put(priv->sd.fwnode) as part of their remove process, and if the driver is removed multiple times, eventually leads to put "overflow", possibly causing memory corruption or crash. The fwnode_handle_put() is a leftover from commit 905f88ccebb1 ("media: i2c: ds90ub9x3: Fix sub-device matching"), which changed the code related to the sd.fwnode, but missed removing these fwnode_handle_put() calls. The Linux kernel CVE team has assigned CVE-2024-58003 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 905f88ccebb14e42bcd19455b0d9c0d4808f1897 and fixed in 6.6.78 with commit 474d7baf91d37bc411fa60de5bbf03c9dd82e18a Issue introduced in 6.6 with commit 905f88ccebb14e42bcd19455b0d9c0d4808f1897 and fixed in 6.12.14 with commit f4e4373322f8d4c19721831f7fb989e52d30dab0 Issue introduced in 6.6 with commit 905f88ccebb14e42bcd19455b0d9c0d4808f1897 and fixed in 6.13.3 with commit 70743d6a8b256225675711e7983825f1be86062d Issue introduced in 6.6 with commit 905f88ccebb14e42bcd19455b0d9c0d4808f1897 and fixed in 6.14-rc1 with commit 60b45ece41c5632a3a3274115a401cb244180646 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-58003 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/media/i2c/ds90ub913.c drivers/media/i2c/ds90ub953.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/474d7baf91d37bc411fa60de5bbf03c9dd82e18a https://git.kernel.org/stable/c/f4e4373322f8d4c19721831f7fb989e52d30dab0 https://git.kernel.org/stable/c/70743d6a8b256225675711e7983825f1be86062d https://git.kernel.org/stable/c/60b45ece41c5632a3a3274115a401cb244180646