CVE-2026-139627: ASoC: fsl_asrc: check the second front-end DMA channel
In the Linux kernel, the following vulnerability has been resolved:
ASoC: fslasrc: check the second front-end DMA channel
The temporary Front-End DMA request can fail independently of the persistent channel acquired earlier in fslasrcdmahwparams(). The returned NULL pointer is immediately used to read its private data.
Check the temporary channel and release the previously acquired persistent Front-End channel on failure. Clear its slot so a later hwfree cannot release it twice. ASoC marks a component's hwparams only after success and skips unmarked components during rollback, so returning an error alone would leak the earlier channel.
Detected by static analysis and reviewed with AI-assisted source auditing.
Affected Software
Event History
Frequently Asked Questions
What condition is required to trigger the flaw?
The temporary second Front-End DMA channel request in fsl_asrc_dma_hw_params() must fail after a persistent Front-End DMA channel has already been acquired. The vulnerable code then dereferences the failed request's NULL channel pointer.
What happens if the second Front-End DMA channel request fails?
The kernel can use a NULL pointer while reading the temporary channel's private data. The previously acquired persistent Front-End channel can also leak because the component is not marked as having completed hw_params and is skipped during rollback.
What does the fix do beyond checking for NULL?
It checks the temporary DMA channel request before using it. On failure, it releases the earlier persistent Front-End channel and clears its slot so a later hw_free operation does not release the channel a second time.