Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Artem Dinaburg <artem@trailofbits.com>
To: stable@vger.kernel.org
Cc: kmehltretter@gmail.com, linux-mtd@lists.infradead.org,
	miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com
Subject: [6.18.y] Please pick MTD OTP NVMEM double-free fix
Date: Tue, 24 Nov 2026 16:53:04 -0500	[thread overview]
Message-ID: <20261124215304.40737-1-artem@trailofbits.com> (raw)

Hi,

Please pick commit 26300879cd8e4612dce66bb8f6ff7cd35fcf3e59 ("mtd: core:
avoid double-free of OTP NVMEM device") for 6.18.y. It fixes
CVE-2026-98834.

If user OTP registration succeeds but factory OTP setup fails,
mtd_otp_nvmem_add() unregisters the user NVMEM device but leaves
mtd->otp_user_nvmem set, so later cleanup unregisters it a second time.
The fix clears the pointer after unregistering it.

The fix is in 7.2.10 and in mainline since 7.3. It carries no stable tag
and so far has been backported only to 7.2.y. 6.18.65 has the same error
path, and the patch applies to it unchanged (one-line offset). Older
stable series are affected as well; this request covers only 6.18.y.

Compiled drivers/mtd/mtdcore.o on 6.18.64 from a cumulative x86_64 tree
using allmodconfig. No kernel boot or runtime test was performed.

An LLM was used to check applicability and stable-queue history and to
draft this request; I reviewed the result.

Thanks,
Artem Dinaburg

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

                 reply	other threads:[~2026-11-24 21:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261124215304.40737-1-artem@trailofbits.com \
    --to=artem@trailofbits.com \
    --cc=kmehltretter@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard@nod.at \
    --cc=stable@vger.kernel.org \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox