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 B22A14D37C2 for ; Sun, 18 Oct 2026 16:22:33 +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=1792340554; cv=none; b=hY0rk8Tvw3WBUhJ/JbaJBNT9TtWNDORHH+DAg7QUM+gM6sBAVbaz7+vHKcVOVBWFd0pnqE6um3CL1dBa5jGp38nQ2sku2kW2trnRDBC/sap6QfuwIIohD65OtS8C+n0pPLxT1tZZUzeH/GVm44FBW77mPEDvHrCPI6h4pg+0eWo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792340554; c=relaxed/simple; bh=wwG1rX1ckOLDWvqIipa5oXjZ2YFYVWwMO6BZseHkc7I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tf2mzN8YHe4wfsORduwjNF0McGD6lIBAfEGXFngqfJDkERLwrZXSmFs0CukOyem5cFEut/WSg2V4p5VxKZDtgTccYdmSLUt3GP4uQMgrj4PNW82q2CdP8zXkzT9pg5gYyoTRXS/B5zdzccz/N6iA/qkJvGL7Iy/u6FLqISbeijc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bc5fjjFb; 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="bc5fjjFb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6D281F000C4; Sun, 18 Oct 2026 16:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792340553; bh=pLzrBxZzQmKL8rmNtf3rAlJeb2cLgMyuHTrbsYqZsE8=; h=From:To:Cc:Subject:Date:Reply-To; b=bc5fjjFbU6u7REekXoywn8ipxNC2zME4dDDZLvv9BfCfDZWd6x1SEoJpdI/idSsgS E9oVRv8ThkAqwcMJpC61aV8nMNXOHe6wrfsUGAEelwS8AE0p4VBvc3f3tXf/c4Dd1E ItU37bQH1a9V4c147jwE8mH0IwlDtiXJYm+4moKk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98834: mtd: core: avoid double-free of OTP NVMEM device Date: Sun, 18 Oct 2026 17:46:49 +0200 Message-ID: <2026101831-CVE-2026-98834-4717@gregkh> X-Mailer: git-send-email 2.56.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=2431; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VKmGmUNbaUuhbMMpB8LEcljs5yFVJUGQFYrIhMV0ryw=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXsa/Wnemc2tambywR2zNknqOjLdLO/XzDF35leSmm HvIGe/qiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn4L2CYZ6Rwtf384+/vd7C3 uAXZ3vuX8iz8FMOCBU9ev9qwaub7I6r5zOFr1tulfT+1DwA= 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: mtd: core: avoid double-free of OTP NVMEM device If factory OTP setup fails after the user OTP NVMEM device has been registered, mtd_otp_nvmem_add() unregisters the user device but leaves mtd->otp_user_nvmem set. On an error, the caller unregisters it again. For -EOPNOTSUPP, registration continues and normal teardown unregisters it again. Clear mtd->otp_user_nvmem after unregistering it. The Linux kernel CVE team has assigned CVE-2026-98834 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9 and fixed in 7.2.10 with commit cecf007418b93a2cbc94269e07fe2fb28f54d8fb Issue introduced in 6.4 with commit e0489f6e221f5ddee6cb3bd51b992b790c5fa4b9 and fixed in 7.3-rc6 with commit 26300879cd8e4612dce66bb8f6ff7cd35fcf3e59 Issue introduced in 5.15.111 with commit 6d1af517817a760d7af3dee0fc4603645485495c Issue introduced in 6.1.28 with commit f1b4affca1e13706ca2eb075bf6775421236d7d1 Issue introduced in 6.2.15 with commit 949476b8601bde5459048eebdf457c9db20addd8 Issue introduced in 6.3.2 with commit dd6c85f98ff33b009b819090268cbf679dc208b9 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-98834 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/mtd/mtdcore.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/cecf007418b93a2cbc94269e07fe2fb28f54d8fb https://git.kernel.org/stable/c/26300879cd8e4612dce66bb8f6ff7cd35fcf3e59