CVE-2026-142843
Last modified
CVE-2026-142843 is a vulnerability of currently unknown severity. 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.
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.
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= d17dd2f1d8a1d919e39c6302b024f135a2f90773, < 66cb7a60e0aa81c3426895ca1f98deb33411c47d; >= d17dd2f1d8a1d919e39c6302b024f135a2f90773, < fa00fa501717427bd4335ec7261f7e668bdbb4ff; >= d17dd2f1d8a1d919e39c6302b024f135a2f90773, < 0c5b0c3eb1d6daa1117dacd32589196f52109cab |
| Linux | Linux | 6.17 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-142843?
How severe is CVE-2026-142843?
How do I fix CVE-2026-142843?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-142837In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142838In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142839In the Linux kernel, the following vulnerability has been re…7
- CVE-2026-142840In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142841In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142842In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142844In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-142845In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142846In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142847In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142848In the Linux kernel, the following vulnerability has been re…
- CVE-2026-142849In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-142843?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
