Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: dmaengine: sh: rz-dmac: Move interrupt request after everything is set up Once the interrupt is requested, the interrupt handler may run immediately. Since the IRQ handler can access channel->ch_base, which is initialized only after requesting the IRQ, this may lead to invalid memory access. Likewise, the IRQ thread may access uninitialized data (the ld_free, ld_queue, and ld_active lists), which may also lead to issues. Request the interrupts only after everything is set up. To keep the error path simpler, use dmam_alloc_coherent() instead of dma_alloc_coherent().
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 5000d37042a61ca556fde2782ca40dbfa802ea16 before d24d53323e817d79a4bd111bd10b34dbc96e64a8; affected 5000d37042a61ca556fde2782ca40dbfa802ea16 before 0e0c5b3cf374ebf3c589741751e1fbc67f53ec2f; affected 5000d37042a61ca556fde2782ca40dbfa802ea16 before 5b12de6229d662864ee22c11d4876652b40120f0; affected 5000d37042a61ca556fde2782ca40dbfa802ea16 before 2a4d9e2234c3f817bb0ddbc8680d09ce9be84f93; affected 5000d37042a61ca556fde2782ca40dbfa802ea16 before ec9f66c91bffdb69d309bae6dfb387562db7ebc8; affected 5000d37042a61ca556fde2782ca40dbfa802ea16 before 07ae600bd353b22f31a8f1007269744fafc7f123; affected 5000d37042a61ca556fde2782ca40dbfa802ea16 before 731712403ddb39d1a76a11abf339a0615bc85de7 |
| Linux / Linux | affected 5.15; unaffected 0 before 5.15; unaffected 5.15.216 through 5.15.*; unaffected 6.1.183 through 6.1.*; unaffected 6.6.148 through 6.6.*; unaffected 6.12.101 through 6.12.*; unaffected 6.18.42 through 6.18.*; unaffected 7.1.5 through 7.1.*; unaffected 7.2 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/d24d53323e817d79a4bd111bd10b34dbc96e64a8
- https://git.kernel.org/stable/c/0e0c5b3cf374ebf3c589741751e1fbc67f53ec2f
- https://git.kernel.org/stable/c/5b12de6229d662864ee22c11d4876652b40120f0
- https://git.kernel.org/stable/c/2a4d9e2234c3f817bb0ddbc8680d09ce9be84f93
- https://git.kernel.org/stable/c/ec9f66c91bffdb69d309bae6dfb387562db7ebc8
- https://git.kernel.org/stable/c/07ae600bd353b22f31a8f1007269744fafc7f123
- https://git.kernel.org/stable/c/731712403ddb39d1a76a11abf339a0615bc85de7