Description
In the Linux kernel, the following vulnerability has been resolved: dmaengine: qcom: bam_dma: 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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e7c0fe2a5c84b7bf4dcbbce30953b04b95e9dc09 to < 38e558a0e2e0a8350d10cc056ccb655387f83278affectede7c0fe2a5c84b7bf4dcbbce30953b04b95e9dc09 to < 2f6764f72911f7fad6e27c9cfdf76b52ebf77777affectede7c0fe2a5c84b7bf4dcbbce30953b04b95e9dc09 to < b665e7fd3397bc85443ce4dc8a69f1ce796cc40aaffectede7c0fe2a5c84b7bf4dcbbce30953b04b95e9dc09 to < 29f85073013a7013576ddd2e7d3158226b165a11affectede7c0fe2a5c84b7bf4dcbbce30953b04b95e9dc09 to < 690ac3d6b408e723cce9cb5816e7185622acacefaffectede7c0fe2a5c84b7bf4dcbbce30953b04b95e9dc09 to < 7e303ef054e70d74de5cad6e3f209326e06a979baffectede7c0fe2a5c84b7bf4dcbbce30953b04b95e9dc09 to < a05dcd38b4d158f7325ae1831f9b516e71351bd8affectede7c0fe2a5c84b7bf4dcbbce30953b04b95e9dc09 to < 82eed160cfa7a296ae4eb5acb8dd8f493323eea7affected
Linux Linux
Default version status: affected
3.15affected0 to < 3.15unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.118 to ≤ 6.12.*unaffected6.18.64 to ≤ 6.18.*unaffected7.3.5 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/38e558a0e2e0a8350d10cc056ccb655387f83278 ↗
- https://git.kernel.org/stable/c/2f6764f72911f7fad6e27c9cfdf76b52ebf77777 ↗
- https://git.kernel.org/stable/c/b665e7fd3397bc85443ce4dc8a69f1ce796cc40a ↗
- https://git.kernel.org/stable/c/29f85073013a7013576ddd2e7d3158226b165a11 ↗
- https://git.kernel.org/stable/c/690ac3d6b408e723cce9cb5816e7185622acacef ↗
- https://git.kernel.org/stable/c/7e303ef054e70d74de5cad6e3f209326e06a979b ↗
- https://git.kernel.org/stable/c/a05dcd38b4d158f7325ae1831f9b516e71351bd8 ↗
- https://git.kernel.org/stable/c/82eed160cfa7a296ae4eb5acb8dd8f493323eea7 ↗