Linux
dmaengine: sh: rz-dmac: Move interrupt request after everything is set up
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5000d37042a61ca556fde2782ca40dbfa802ea16, < d24d53323e817d79a4bd111bd10b34dbc96e64a8
- >= 5000d37042a61ca556fde2782ca40dbfa802ea16, < 0e0c5b3cf374ebf3c589741751e1fbc67f53ec2f
- >= 5000d37042a61ca556fde2782ca40dbfa802ea16, < 5b12de6229d662864ee22c11d4876652b40120f0
- >= 5000d37042a61ca556fde2782ca40dbfa802ea16, < 2a4d9e2234c3f817bb0ddbc8680d09ce9be84f93
- >= 5000d37042a61ca556fde2782ca40dbfa802ea16, < ec9f66c91bffdb69d309bae6dfb387562db7ebc8
- >= 5000d37042a61ca556fde2782ca40dbfa802ea16, < 07ae600bd353b22f31a8f1007269744fafc7f123
- >= 5000d37042a61ca556fde2782ca40dbfa802ea16, < 731712403ddb39d1a76a11abf339a0615bc85de7
Fixed in d24d53323e817d79a4bd111bd10b34dbc96e64a8, 0e0c5b3cf374ebf3c589741751e1fbc67f53ec2f, 5b12de6229d662864ee22c11d4876652b40120f0, 2a4d9e2234c3f817bb0ddbc8680d09ce9be84f93, ec9f66c91bffdb69d309bae6dfb387562db7ebc8, 07ae600bd353b22f31a8f1007269744fafc7f123, 731712403ddb39d1a76a11abf339a0615bc85de7
- 5.15
Fixed in 0, 5.15.216, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.5, 7.2
Mitigation
Upgrade Linux to d24d53323e817d79a4bd111bd10b34dbc96e64a8 or 0e0c5b3cf374ebf3c589741751e1fbc67f53ec2f or 5b12de6229d662864ee22c11d4876652b40120f0 or 2a4d9e2234c3f817bb0ddbc8680d09ce9be84f93 or ec9f66c91bffdb69d309bae6dfb387562db7ebc8 or 07ae600bd353b22f31a8f1007269744fafc7f123 or 731712403ddb39d1a76a11abf339a0615bc85de7 or later.
Upgrade Linux to 0 or 5.15.216 or 6.1.183 or 6.6.148 or 6.12.101 or 6.18.42 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.