scsi: dc395x: sync the waiting_timer before freeing the host (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.21 % · centile 12 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Produits affectés
- Linux · Linux
- Statut NVD
- Received
Rechercher sur…
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: dc395x: sync the waiting_timer before freeing the host The waiting_timer callback re-arms itself and takes the host lock. adapter_uninit() currently stops it with timer_delete(), which does not wait for a callback already running on another CPU. The final scsi_host_put() that frees the host (and the host lock the callback dereferences) runs right after adapter_uninit(), so a concurrent or just re-armed callback can fire after the free, leaving a potential use-after-free window. Replace timer_delete() with timer_shutdown_sync() at the top of adapter_uninit(), before the host-lock section: the timer is dequeued, a running callback is waited for and rearming is blocked before the chip is halted, so it cannot fire at all once the adapter has ceased to function. Waiting outside the lock avoids the self-deadlock that would result from syncing a callback blocked on the lock we still hold. No shutdown is needed for selto_timer because it has no reachable armer or callback. This issue was found by an in-house static analysis tool.
Références
- https://git.kernel.org/stable/c/f2043f041e72a382abca83f2b2f0a39485b78e30
- https://git.kernel.org/stable/c/899322bc298ff860d30dce0651ed8f8fae6898a6
- https://git.kernel.org/stable/c/fd6af0272d57f85711ffd3310313fccf9fa0856d
- https://git.kernel.org/stable/c/715ad3c3f53b7f4994f5d00f19a4a2de2f12d3c7
- https://git.kernel.org/stable/c/0b65c96e51e6aac86f2db251b5bdc5255294a107
- https://git.kernel.org/stable/c/a79de0e5e66bd0b69b38c855413a9e3a82926b24
- https://git.kernel.org/stable/c/bd04acf9b9d589d93823bfeeea9932cd9ce4ee48
- https://git.kernel.org/stable/c/0b1a79f2791a06f139dce5450e487307cf0e241f
Références européennes
- ENISA EUVD · EUVD-2026-130123
- GCVE · GCVE-0-2026-99456
Avis du CERT-FR
- CERTFR-2026-AVI-1639 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions affectées |
|---|---|
| Linux · Linux | affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < f2043f041e72a382abca83f2b2f0a39485b78e30 affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 899322bc298ff860d30dce0651ed8f8fae6898a6 affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < fd6af0272d57f85711ffd3310313fccf9fa0856d affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 715ad3c3f53b7f4994f5d00f19a4a2de2f12d3c7 affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 0b65c96e51e6aac86f2db251b5bdc5255294a107 affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < a79de0e5e66bd0b69b38c855413a9e3a82926b24 affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < bd04acf9b9d589d93823bfeeea9932cd9ce4ee48 affectée : ≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 0b1a79f2791a06f139dce5450e487307cf0e241f Autres versions : non affectée |
| Linux · Linux | affectée : 2.6.12 non affectée : ≥ 0 < 2.6.12 non affectée : ≥ 5.10.275 ≤ 5.10.* non affectée : ≥ 5.15.226 ≤ 5.15.* non affectée : ≥ 6.1.193 ≤ 6.1.* non affectée : ≥ 6.6.163 ≤ 6.6.* non affectée : ≥ 6.12.117 ≤ 6.12.* non affectée : ≥ 6.18.61 ≤ 6.18.* non affectée : ≥ 7.3.2 ≤ 7.3.* non affectée : ≥ 7.4-rc1 ≤ * Autres versions : affectée |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |