Description
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 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
5000d37042a61ca556fde2782ca40dbfa802ea16 to < d24d53323e817d79a4bd111bd10b34dbc96e64a8affected5000d37042a61ca556fde2782ca40dbfa802ea16 to < 0e0c5b3cf374ebf3c589741751e1fbc67f53ec2faffected5000d37042a61ca556fde2782ca40dbfa802ea16 to < 5b12de6229d662864ee22c11d4876652b40120f0affected5000d37042a61ca556fde2782ca40dbfa802ea16 to < 2a4d9e2234c3f817bb0ddbc8680d09ce9be84f93affected5000d37042a61ca556fde2782ca40dbfa802ea16 to < ec9f66c91bffdb69d309bae6dfb387562db7ebc8affected5000d37042a61ca556fde2782ca40dbfa802ea16 to < 07ae600bd353b22f31a8f1007269744fafc7f123affected5000d37042a61ca556fde2782ca40dbfa802ea16 to < 731712403ddb39d1a76a11abf339a0615bc85de7affected
Linux Linux
Default version status: affected
5.15affected0 to < 5.15unaffected5.15.216 to ≤ 5.15.*unaffected6.1.183 to ≤ 6.1.*unaffected6.6.148 to ≤ 6.6.*unaffected6.12.101 to ≤ 6.12.*unaffected6.18.42 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
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 ↗