CVE-2026-142843

Not scored yetLast modified Dec 3, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Dec 3, 2026
Last modified
Dec 3, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-142844In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt76x02: validate TX-status rate index before mac80211 handCVE-2026-142845In the Linux kernel, the following vulnerability has been resolved: mm/list_lru: don't copy stale shrinker id from non-memcg-aware shrinkerCVE-2026-142846In the Linux kernel, the following vulnerability has been resolved: mm/page_table_check: skip zero pages page_table_check_set() accounts pCVE-2026-142847In the Linux kernel, the following vulnerability has been resolved: mm/page_isolation: fix UBSAN shift-out-of-bounds warning Patch series CVE-2026-142848In the Linux kernel, the following vulnerability has been resolved: floppy: don't store a stack buffer in timeout_message request_done() fCVE-2026-142849In the Linux kernel, the following vulnerability has been resolved: xfarray: don't crash when sorting if array element crosses a folio LOLCVE-2026-142850In the Linux kernel, the following vulnerability has been resolved: crypto: nx - validate 'ignore' before subtracting in decompress The deCVE-2026-142851In the Linux kernel, the following vulnerability has been resolved: media: em28xx: fix inverted tuner capability check for VBI device CommCVE-2026-142852In the Linux kernel, the following vulnerability has been resolved: media: mali-c55: Check the statistics buffer address before filling maCVE-2026-142853In the Linux kernel, the following vulnerability has been resolved: clk: tenstorrent: Assign .num before accessing .hws Commit f316cdff8d6CVE-2026-142854In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: reject an oversized resident attribute on the inline iomap paCVE-2026-142855In the Linux kernel, the following vulnerability has been resolved: ASoC: sdw_utils: clear stale RT711 device reference on exit asoc_sdw_r
CVE-2026-142843: Unscored | Vulnix