PT-2026-166566
CVE-2026-142843
·
Published
2026-12-03
·
Updated
2026-12-03
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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.
Found an issue in the description? Have something to add? Feel free to write us 👾