[PATCH 00/10] nvmem: Fix Critical and High issues reported by Sashiko

Lee Jones lee at kernel.org
Thu Dec 3 00:26:01 PST 2026


This series fixes 10 Critical and High issues across the NVMEM core and
drivers (Meson eFuse, Spreadtrum eFuse, 93xx46 EEPROM, and STM32 BSEC
OP-TEE TA), covering out-of-bounds reads, integer underflow, multi-byte
bit-offset corruption, WP GPIO and erase/write locking races, stack DMA
buffers, unchecked SMC sizes/short transfers, and an OP-TEE session leak.

These issues were reported by Sashiko.

Cc: Alexandre Torgue <alexandre.torgue at foss.st.com>
Cc: Anatolij Gustschin <agust at denx.de>
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: Baolin Wang <baolin.wang at linux.alibaba.com>
Cc: Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>
Cc: Carlo Caione <carlo at endlessm.com>
Cc: Chunyan Zhang <zhang.lyra at gmail.com>
Cc: Dan Carpenter <error27 at gmail.com>
Cc: Dmitry Baryshkov <lumag at kernel.org>
Cc: Etienne Carriere <etienne.carriere at linaro.org>
Cc: Freeman Liu <freeman.liu at unisoc.com>
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Cc: Jerome Brunet <jbrunet at baylibre.com>
Cc: Joy Chakraborty <joychakr at google.com>
Cc: Kevin Hilman <khilman at baylibre.com>
Cc: Khouloud Touil <ktouil at baylibre.com>
Cc: Linus Walleij <linusw at kernel.org>
Cc: linux-amlogic at lists.infradead.org
Cc: linux-arm-kernel at lists.infradead.org
Cc: linux-stm32 at st-md-mailman.stormreply.com
Cc: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
Cc: Maxime Coquelin <mcoquelin.stm32 at gmail.com>
Cc: Maxime Ripard <mripard at kernel.org>
Cc: Miquel Raynal <miquel.raynal at bootlin.com>
Cc: Neil Armstrong <neil.armstrong at linaro.org>
Cc: Orson Zhai <orsonzhai at gmail.com>
Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
Cc: Randy Dunlap <rdunlap at infradead.org>
Cc: Srinivas Kandagatla <srini at kernel.org>

Lee Jones (10):
  nvmem: meson-efuse: Reject negative or zero SMC size in
    meson_efuse_probe()
  nvmem: core: Prevent integer underflow in nvmem_cell_attr_read()
  nvmem: sprd: Avoid out-of-bounds read on partial writes in
    sprd_efuse_raw_prog()
  nvmem: core: Handle multi-byte bit offsets in
    nvmem_cell_prepare_write_buffer()
  nvmem: core: Serialise writes when toggling the write-protect GPIO
  nvmem: eeprom_93xx46: Reject unaligned writes on 16-bit devices
  nvmem: eeprom_93xx46: Hold device lock across erase/write enable
    sequences
  nvmem: eeprom_93xx46: Use DMA-safe command buffer for SPI transfers
  nvmem: meson-efuse: Detect short reads and writes from Secure Monitor
  nvmem: stm32: Avoid OP-TEE session leak on unaligned writes

 drivers/nvmem/core.c                | 50 ++++++++++++-----
 drivers/nvmem/eeprom_93xx46.c       | 85 +++++++++++++++--------------
 drivers/nvmem/internals.h           |  2 +
 drivers/nvmem/meson-efuse.c         | 17 ++++--
 drivers/nvmem/sprd-efuse.c          | 13 ++++-
 drivers/nvmem/stm32-bsec-optee-ta.c |  8 +--
 6 files changed, 111 insertions(+), 64 deletions(-)

-- 
2.56.1.911.g883d8bcb20-goog




More information about the linux-arm-kernel mailing list