Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [6.18.y] Please pick MTD OTP NVMEM double-free fix
@ 2026-11-24 21:53 Artem Dinaburg
  0 siblings, 0 replies; only message in thread
From: Artem Dinaburg @ 2026-11-24 21:53 UTC (permalink / raw)
  To: stable; +Cc: kmehltretter, linux-mtd, miquel.raynal, richard, vigneshr

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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-24 21:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 21:53 [6.18.y] Please pick MTD OTP NVMEM double-free fix Artem Dinaburg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox