CVE-2026-143429: dmaengine: qcom: bam_dma: free interrupt before the clock in error path
In the Linux kernel, the following vulnerability has been resolved:
dmaengine: qcom: bamdma: free interrupt before the clock in error path
The BAM interrupt is requested with a devres helper and so on error it's freed after probe() returns. We disable the clock before freeing or masking it so it may still fire and we may end up reading BAM registers with clock disabled.
Stop using devres for interrupts as we free it in remove() manually anyway. Add an appropriate label and free the interrupt before disabling the clock in error path and in remove().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the BAM DMA driver, free the interrupt before disabling the clock in the error path and in remove().
Event History
Frequently Asked Questions
Which systems are realistically exposed to this issue?
Systems using the Linux kernel Qualcomm BAM DMA engine driver are the relevant population. The issue is in the driver's probe error path and device removal handling.
When can the faulty behavior occur?
It can occur when an interrupt remains active after the BAM clock has been disabled during probe error handling or device removal. A firing BAM interrupt may then cause the driver to read BAM registers while the clock is disabled.
What change resolves the problem?
The fix stops using a devres-managed interrupt for this driver and explicitly frees the interrupt before disabling the clock in both the error path and remove path.