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 6132F28A40D for ; Thu, 10 Jul 2025 07:43:39 +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=1752133419; cv=none; b=tp5V6XxBwpTsiTu/QTC6i5AIQuLPOY1Aj5MheZKBtNow6sIZMGzZZNdQldqGRVZopzRa580ZWK/RIsWQtkAZd/5mJ0lXf7rPfG134aAnqMoTMa9KylByZi+TENSY6hySv11/4WV9ZVgSunLih2I+Q7XcE1xPBt3+hz+FdxAFmC0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133419; c=relaxed/simple; bh=hrbt74elJOUYxqOFOsYbawMxkYWidzdmjb1jaK49pcM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lxEsGyw1Q9e5qc4heAxED41N7K/5Q5VZggg2CiuX5QVmX0SemzAqL9iVAeUx/aec+niFLArLw4C5i/15gNisHZJNcJXtwGId/8lbH6qTLWdfnknEAwl0/zRvd+6NHDNbWe0jSbdd9VCeadPHGlwjGYxU42SA/wYVsrhTNg09d9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ufu7RHNG; 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="Ufu7RHNG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5891C4CEE3; Thu, 10 Jul 2025 07:43:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133419; bh=hrbt74elJOUYxqOFOsYbawMxkYWidzdmjb1jaK49pcM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ufu7RHNGUN9ahRopdIqU7wqwvJLwV5u9LKHMpVaUXtvWMq0XTeRcIuzSeRHYayMFl piw3fqz5+mCzbqZpIKusmAKse6972YHcii9mpmSrDIKCY+w0kVdi9dtStj0ecQSrCd Q9oV3tyqVyVf/bV68yRA6NVE0ae7HPYJft/igfZ4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38301: nvmem: zynqmp_nvmem: unbreak driver after cleanup Date: Thu, 10 Jul 2025 09:42:42 +0200 Message-ID: <2025071013-CVE-2025-38301-694f@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=2294; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Dzr+QL4bZobeu+ebc3R+o4Mp6JyzQMGYOorn86YuvRA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5eVc3XV15/Szj+7asHnnfqxm1MybN97ss89cu0ah26 QPHHeXsHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRKy8YFlzesCv8hH9Nf9+f aP0O97+7FggpFjLMM1tlknCuTjjl0XcvvbUPjC+tOipwDgA= 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: nvmem: zynqmp_nvmem: unbreak driver after cleanup Commit 29be47fcd6a0 ("nvmem: zynqmp_nvmem: zynqmp_nvmem_probe cleanup") changed the driver to expect the device pointer to be passed as the "context", but in nvmem the context parameter comes from nvmem_config.priv which is never set - Leading to null pointer exceptions when the device is accessed. The Linux kernel CVE team has assigned CVE-2025-38301 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 29be47fcd6a06ea2e79eeeca6e69ad1e23254a69 and fixed in 6.12.34 with commit c8bb1bcea877446f86922a8fd1661b8c07d90e5c Issue introduced in 6.9 with commit 29be47fcd6a06ea2e79eeeca6e69ad1e23254a69 and fixed in 6.15.3 with commit 3728101f56ef54425a11027a3ddc2c3941d60b71 Issue introduced in 6.9 with commit 29be47fcd6a06ea2e79eeeca6e69ad1e23254a69 and fixed in 6.16-rc1 with commit fe8abdd175d7b547ae1a612757e7902bcd62e9cf 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-38301 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/nvmem/zynqmp_nvmem.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/c8bb1bcea877446f86922a8fd1661b8c07d90e5c https://git.kernel.org/stable/c/3728101f56ef54425a11027a3ddc2c3941d60b71 https://git.kernel.org/stable/c/fe8abdd175d7b547ae1a612757e7902bcd62e9cf