RDMA/erdma: Fix CEQ tasklet use-after-free on removal
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0ca79979384f031d710c4b3bae065dcb5d95aca3, Kernel 0e8b78dabb1f156db05ffe74c6eae861167c7c21, Kernel 61a25b8d333e1eb2a189881d516f8d5194e26840 and 3 more.
In the Linux kernel, the following vulnerability has been resolved: RDMA/erdma: Fix CEQ tasklet use-after-free on removal Each CEQ interrupt handler only schedules eqc->tasklet. The tasklet calls erdma_ceq_completion_handler(), which reads the DMA-coherent EQ ring through get_next_valid_eqe() and updates eq->dbrec through notify_eq(). erdma_ceqs_uninit() frees each CEQ IRQ and then destroys its EQ. free_irq() prevents another hard IRQ and waits for an in-flight handler, but it does not drain a tasklet that the handler already scheduled. The tasklet can therefore access eq->qbuf or eq->dbrec after erdma_eq_destroy() frees them. Clearing ceq_cb->ready does not synchronize with a tasklet that already passed the check at the start of erdma_ceq_completion_handler(). Kill the tasklet after free_irq(), when no handler can schedule it again, and before erdma_ceq_uninit_one() releases the EQ buffers.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.0, >=f2a0a630b953451a59a2612ad8c29246638f0a38 <0ca79979384f031d710c4b3bae065dcb5d95aca3, >=f2a0a630b953451a59a2612ad8c29246638f0a38 <0e8b78dabb1f156db05ffe74c6eae861167c7c21, >=f2a0a630b953451a59a2612ad8c29246638f0a38 <61a25b8d333e1eb2a189881d516f8d5194e26840, >=f2a0a630b953451a59a2612ad8c29246638f0a38 <6e129c1310abfa786a510cc63e69c5ef12349048, >=f2a0a630b953451a59a2612ad8c29246638f0a38 <a60c36d8d17f1b86705523d5eb6d290df28831e5, >=f2a0a630b953451a59a2612ad8c29246638f0a38 <f738c0a372d36a10dfae6dc357717c13b2aa72f4 | 0ca79979384f031d710c4b3bae065dcb5d95aca3, 0e8b78dabb1f156db05ffe74c6eae861167c7c21, 61a25b8d333e1eb2a189881d516f8d5194e26840, 6e129c1310abfa786a510cc63e69c5ef12349048, a60c36d8d17f1b86705523d5eb6d290df28831e5, f738c0a372d36a10dfae6dc357717c13b2aa72f4 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket