serial: amba-pl011: cancel RS485 hrtimers after freeing IRQ
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.457.1.97.2In the Linux kernel, the following vulnerability has been resolved:
serial: amba-pl011: cancel RS485 hrtimers after freeing IRQ
The RS485 trigger hrtimers are embedded in the devm-managed port and can fire after it is freed. The IRQ handler can arm a timer, so free the IRQ first and then cancel both timers.
Complete the RS485 stop without arming a timer, and cancel the timers in remove() for the suspend-then-unbind path, where shutdown is not called.
This issue was found by an in-house static analysis tool.
From the CVE record · Linux
In the Linux kernel’s amba-pl011 serial driver, RS485 timers can fire after their port is freed, including during a suspend-then-unbind path. The input does not establish what an attacker can do or whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running Linux kernels with the amba-pl011 serial driver should check their affected versions; none are specified in the input.