In the Linux kernel, the following vulnerability has been resolved: mmc: core: Cancel SDIO IRQ work before freeing host A host controller that uses sdio_signal_irq() schedules host->sdio_irq_work from its interrupt handler. Эта работа отменяется только на пути приостановки (mmc_sdio_suspend()), а не на пути удаления/свободы, поэтому работник, вооруженный непосредственно перед тем, как контроллер освободил свой IRQ, может работать после того, как mmc_host_classdev_release() освободил хост и удалил его через container_of(). Отмените host->sdio_irq_work в mmc_free_host(), как и существующий дренаж host->detect, добавленный коммитом 1036f69e2513 («mmc: core: Cancel delayed work before releasing host»).
Эта проблема была обнаружена с помощью внутреннего инструмента статического анализа.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: mmc: core: Cancel SDIO IRQ work before freeing host A host controller that uses sdio_signal_irq() schedules host->sdio_irq_work from its interrupt handler. That work is only cancelled on the suspend path (mmc_sdio_suspend()), not on the remove/free path, so a worker armed just before the controller freed its IRQ can run after mmc_host_classdev_release() has freed the host and dereference it through container_of(). Cancel host->sdio_irq_work in mmc_free_host(), like the existing host->detect drain added by commit 1036f69e2513 ("mmc: core: Cancel delayed work before releasing host"). This issue was found by an in-house static analysis tool.