EnvMap GitHub

CVE-2026-142843

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

Not scored yetEPSS 0.35%Received

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.

In the words of the organisation that published it (Linux).

Affected

  • Linux: from d17dd2f1d8a1d919e39c6302b024f135a2f90773 before 66cb7a60e0aa81c3426895ca1f9; from d17dd2f1d8a1d919e39c6302b024f135a2f90773 before fa00fa501717427bd4335ec7261; from d17dd2f1d8a1d919e39c6302b024f135a2f90773 before 0c5b0c3eb1d6daa1117dacd3258; 6.17

as the publisher (Linux) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.35% chance of exploitation in the next 30 days, higher than 31% of all CVEs (as of 4 December 2026).

References

Record

Published04:18 UTC, 3 December 2026
Last changed04:18 UTC, 3 December 2026
NVD statusReceived
Published byLinux

CVE-2026-142843 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.