Security mailing lists by PureSourceCode

CVE-2026-142843

not scored yet

spi: stm32: fix double free of SRAM buffer on MDMA fallback

In the Linux kernel, the following vulnerability has been resolved:

spi: stm32: fix double free of SRAM buffer on MDMA fallback

When the "rxm2m" MDMA channel cannot be obtained, the driver frees the
SRAM buffer and falls back to DMA-only mode. However, sram_rx_buf is
left pointing to the freed buffer.

As a result, stm32_spi_unprepare_msg() may clear the released SRAM
area, while stm32_spi_remove() or a later probe error path may free the
buffer again, triggering BUG_ON() in gen_pool_free_owner().

The probe error path also checks sram_pool instead of sram_rx_buf. If
the SRAM allocation failed and a later probe step fails,
gen_pool_free() may therefore be called with an unallocated buffer.

Clear sram_rx_buf after freeing it on the MDMA fallback path and use
the buffer pointer to determine whether cleanup is needed.

Published
3 Dec 2026
Last modified
3 Dec 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= d17dd2f1d8a1d919e39c6302b024f135a2f90773, < 66cb7a60e0aa81c3426895ca1f98deb33411c47d; >= d17dd2f1d8a1d919e39c6302b024f135a2f90773, < fa00fa501717427bd4335ec7261f7e668bdbb4ff; >= d17dd2f1d8a1d919e39c6302b024f135a2f90773, < 0c5b0c3eb1d6daa1117dacd32589196f52109cab 66cb7a60e0aa81c3426895ca1f98deb33411c47d, fa00fa501717427bd4335ec7261f7e668bdbb4ff, 0c5b0c3eb1d6daa1117dacd32589196f52109cab
CVE List Linux Linux = 6.17

References

History

  • 3 Dec 2026 05:06 UTC · NVD: first stored (published 3 Dec 2026)
  • 3 Dec 2026 04:06 UTC · CVE List: first stored (published 3 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.