staging: octeon: add missing tasklet_kill in cvm_oct_tx_shutdown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4898c560103fb8075c10a8e9d70e0ca26873075e · < 2c0c9956596e48654bb4855e2a0742748a0826a7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
staging: octeon: add missing tasklet_kill in cvm_oct_tx_shutdown
The TX cleanup tasklet can be scheduled by the watchdog IRQ handler to execute cvm_oct_tx_do_cleanup. There can be a pending tasklet in the queue which might run after the cvm_oct_remove() frees net_device structures, causing a use-after-free in cvm_oct_tx_do_cleanup() as it iterates cvm_oct_device[] which is an array of netdevice pointers. Add tasklet_kill() after free_irq() to ensure the tasklet is no longer scheduled or running before teardown proceeds.
From the CVE record · Linux
The Linux kernel's staging octeon TX cleanup tasklet can run after device removal frees network-device structures, causing a use-after-free. This can happen when a tasklet scheduled by the watchdog IRQ remains pending during teardown. The input does not specify an attacker capability, access requirement, or user interaction.
Engineers running Linux kernels that include the staging octeon driver should check their versions; affected versions are not specified.