CVE-2026-43203
JSON

7.5high

atm: fore200e: fix use-after-free in tasklets during device removal

Severity
7.5high CVSS:3.1 by Linux
Exploit likelihood
0.40% (higher than 36% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: atm: fore200e: fix use-after-free in tasklets during device removal When the PCA-200E or SBA-200E adapter is being detached, the fore200e is deallocated. However, the tx_tasklet or rx_tasklet may still be running or pending, leading to use-after-free bug when the already freed fore200e is accessed again in fore200e_tx_tasklet() or fore200e_rx_tasklet(). One of the race conditions can occur as follows: CPU 0 (cleanup) | CPU 1 (tasklet) fore200e_pca_remove_one() | fore200e_interrupt() fore200e_shutdown() | tasklet_schedule() kfree(fore200e) | fore200e_tx_tasklet() | fore200e-> // UAF Fix this by ensuring tx_tasklet or rx_tasklet is properly canceled before the fore200e is released. Add tasklet_kill() in fore200e_shutdown() to synchronize with any pending or running tasklets. Moreover, since fore200e_reset() could prevent further interrupts or data transfers, the tasklet_kill() should be placed after fore200e_reset() to prevent the tasklet from being rescheduled in fore200e_interrupt(). Finally, it only needs to do tasklet_kill() when the fore200e state is greater than or equal to FORE200E_STATE_IRQ, since tasklets are uninitialized in earlier states. In a word, the tasklet_kill() should be placed in the FORE200E_STATE_IRQ branch within the switch...case structure. This bug was identified through static analysis.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 91f25749aaf57c47ae1e12478144e6ea8c8562f2, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 73fbc5d1a9ccb626937500bbd67136f077d8237b, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before aba0b4bc09376dfc3d53c826514fe38fc8337f52, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before e075ec9b08f862dade8011481058f7eb5f716c57, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 97900f512252a59f23d6ce4ab215cc88fed66e68, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before e4ff4e3ffcf9d5aad380cdd1d8cdc008bb34f97d, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5189368f10903956be05062d160b2804bf5e5016, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 8930878101cd40063888a68af73b1b0f8b6c79bc and 1 more
Not affected: before 2.6.12, from 5.10.252 up to 5.10.*, from 5.15.202 up to 5.15.*, from 6.1.165 up to 6.1.*, from 6.6.128 up to 6.6.*, from 6.12.75 up to 6.12.*
CVE List
linux linux_kernelfrom 2.6.12.1 before 5.10.252, from 5.11 before 5.15.202, from 5.16 before 6.1.165, from 6.2 before 6.6.128, from 6.7 before 6.12.75, from 6.13 before 6.18.16, from 6.19 before 6.19.6, 2.6.12NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: atm: fore200e: fix use-after-free in tasklets during device removal When the PCA-200E or SBA-200E adapter is being detached, the fore200e is deallocated. However, the tx_tasklet or rx_tasklet may still be running or pending, leading to use-after-free bug when the already freed fore200e is accessed again in fore200e_tx_tasklet() or fore200e_rx_tasklet(). One of the race conditions can occur as follows: CPU 0 (cleanup) | CPU 1 (tasklet) fore200e_pca_remove_one() | fore200e_interrupt() fore200e_shutdown() | tasklet_schedule() kfree(fore200e) | fore200e_tx_tasklet() | fore200e-> // UAF Fix this by ensuring tx_tasklet or rx_tasklet is properly canceled before the fore200e is released. Add tasklet_kill() in fore200e_shutdown() to synchronize with any pending or running tasklets. Moreover, since fore200e_reset() could prevent further interrupts or data transfers, the tasklet_kill() should be placed after fore200e_reset() to prevent the tasklet from being rescheduled in fore200e_interrupt(). Finally, it only needs to do tasklet_kill() when the fore200e state is greater than or equal to FORE200E_STATE_IRQ, since tasklets are uninitialized in earlier states. In a word, the tasklet_kill() should be placed in the FORE200E_STATE_IRQ branch within the switch...case structure. This bug was identified through static analysis.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: atm: fore200e: corrección de uso después de liberación en tasklets durante la eliminación del dispositivo Cuando el adaptador PCA-200E o SBA-200E está siendo desvinculado, el fore200e es desasignado. Sin embargo, el tx_tasklet o rx_tasklet aún puede estar ejecutándose o pendiente, lo que lleva a un error de uso después de liberación cuando el fore200e ya liberado es accedido de nuevo en fore200e_tx_tasklet() o fore200e_rx_tasklet(). Una de las condiciones de carrera puede ocurrir de la siguiente manera: CPU 0 (cleanup) | CPU 1 (tasklet) fore200e_pca_remove_one() | fore200e_interrupt() fore200e_shutdown() | tasklet_schedule() kfree(fore200e) | fore200e_tx_tasklet() | fore200e -> // UAF Solucione esto asegurándose de que el tx_tasklet o rx_tasklet sea cancelado correctamente antes de que el fore200e sea liberado. Añada tasklet_kill() en fore200e_shutdown() para sincronizar con cualquier tasklet pendiente o en ejecución. Además, dado que fore200e_reset() podría prevenir interrupciones o transferencias de datos adicionales, el tasklet_kill() debería colocarse después de fore200e_reset() para evitar que el tasklet sea reprogramado en fore200e_interrupt(). Finalmente, solo necesita ejecutar tasklet_kill() cuando el estado de fore200e sea mayor o igual a FORE200E_STATE_IRQ, ya que los tasklets no están inicializados en estados anteriores. En resumen, el tasklet_kill() debería colocarse en la rama FORE200E_STATE_IRQ dentro de la estructura switch...case. Este error fue identificado mediante análisis estático.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43203 changed 2026-08-05CVE Terms of Use
NVDCVE-2026-43203 changed 2026-11-11Public domain