Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 1FFC23815DF for ; Thu, 25 Jun 2026 08:43:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377018; cv=none; b=bEoXFZs3BoBPYoe4BZAX1zZ3tg5bjv0rfsaxoS8PylNfbbe0D/L/JLlzCr82sbCcgbxKUKGkbX5j8LZR3ivNpaKcgYFOrsljkL2RBqQyHjCO8sRTRLF2uJaf+ay+Svz0qY+TXsC990W95wJ3gfGlw7tT+QJPMguRLYMxVbroCZI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782377018; c=relaxed/simple; bh=Fwxf6pTql3zuWb/UeAuRt9dhjylu/WuTF8qm65fQhiw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=urP51zAApXn+mi5NS2x+u+FsqjmhfYS0Zk5lgrzgKxkUqZ1IkBCy4kceA0x5BJGK/aMHcZGRdepS6ScqzZajta95U5ZAspTXrJ2vsWMTeDEZE6t5YqNXRZ6Zf9Yc2dEoMNPuwkd6/1c/ak1FzGp3Joz5QTimWQkC/sPi2rEkAhw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pfmtP74u; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="pfmtP74u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 652C11F000E9; Thu, 25 Jun 2026 08:43:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782377017; bh=T3jB0m3/TNz5cpakAWjWxQplvpOIC2V3wZW5NEzML9s=; h=From:To:Cc:Subject:Date:Reply-To; b=pfmtP74uvVw+eQHRj6QjQQXtCWiVmLR13LIbxdIJfYnKE7QQ1d7Y/6ZQj8LRHDOz9 +Hn7MO2xHn8qnbsoT9juTu1DDHJF5EIUEwc+q/X61qiasZsAQH8KKSUexPWVvrxlFY xlqG8Xsk6XnPv3H8TRMzdTU/IcIw9GlotvPhGfWY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53156: nvmem: core: fix use-after-free bugs in error paths Date: Thu, 25 Jun 2026 09:40:04 +0100 Message-ID: <2026062548-CVE-2026-53156-dc6d@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2500; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SBtROlnO8cXzy2YNKuMfuZhPs9///lsSb0CO8w5T8k4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2L0Pce7gLRRYvajkR/qH24xe5hHQnbY/GlW1CO9PWm Ia8zTrREcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOpEWOYH2Vu/nvxHSfv98Gc D54UbbyS9orlCMNciYQbzar1TVcN/acV9JTUn1lg9HoFAA== 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: core: fix use-after-free bugs in error paths Fix several instances of error paths in which we call __nvmem_device_put() - which may end up freeing the underlying memory and other resources - and then keep on using the nvmem structure. Always put the reference to the nvmem device as the last step before returning the error code. The Linux kernel CVE team has assigned CVE-2026-53156 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit e888d445ac33a5b0288d670ecd970908b13f07cd and fixed in 6.12.94 with commit e0d38bf47a72da2f02c9fa6f752cd66d977cd7f7 Issue introduced in 4.20 with commit e888d445ac33a5b0288d670ecd970908b13f07cd and fixed in 6.18.36 with commit cb85ef5a227b3662b88f4d849a1aad43bfe7f5ae Issue introduced in 4.20 with commit e888d445ac33a5b0288d670ecd970908b13f07cd and fixed in 7.0.13 with commit 40e2a459c0dd1333b2343831480a0ad80dc07614 Issue introduced in 4.20 with commit e888d445ac33a5b0288d670ecd970908b13f07cd and fixed in 7.1 with commit 5b6b6fc491899d583eaa75344e094796ae9b530b 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-2026-53156 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/core.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/e0d38bf47a72da2f02c9fa6f752cd66d977cd7f7 https://git.kernel.org/stable/c/cb85ef5a227b3662b88f4d849a1aad43bfe7f5ae https://git.kernel.org/stable/c/40e2a459c0dd1333b2343831480a0ad80dc07614 https://git.kernel.org/stable/c/5b6b6fc491899d583eaa75344e094796ae9b530b