В ядре Linux была устранена следующая уязвимость: misc: bcm-vk: Use acque/release for msgq_inited bcm_vk_sync_msgq() Заполняет информацию о очереди сообщений, а затем устанавливает msgq_inited. Читатели вызывают bcm_vk_drv_access_ok() перед доступом к очередям сообщений и их кэшированной информации о очереди. atomic_set()/atomic_read() не заказывает эти доступы. Читатель может видеть набор msgq_inited, все еще видя устаревшую информацию о очереди.
Используйте release при публикации инициализированных очередей и приобретайте при проверке gate. Сохраняйте четкость в bcm_vk_blk_drv_access() как atomic_set(). Он закрывает ворота и не публикует состояние очереди для читателей.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: misc: bcm-vk: Use acquire/release for msgq_inited bcm_vk_sync_msgq() fills the message queue information and then sets msgq_inited. Readers call bcm_vk_drv_access_ok() before accessing the message queues and their cached queue information. atomic_set()/atomic_read() do not order those accesses. A reader can see msgq_inited set while still seeing stale queue information. Use release when publishing the initialized queues and acquire when checking the gate. Keep the clear in bcm_vk_blk_drv_access() as atomic_set(). It closes the gate and does not publish queue state to readers.