Description
In the Linux kernel, the following vulnerability has been resolved: media: amphion: drain message work before releasing core state vpu_core_unregister() frees core->msg_buffer before cancelling the message workers, although core->msg_fifo still uses the buffer as its backing storage. A queued worker can read it after it has been freed. Drain the core and instance message work first, then release core->vpu and the FIFO buffer. This follows the ordering in vpu_core_suspend().
Affected products and versions
Linux Linux9f599f351e86acf0fc13e42771f97b7fb4dbbea4 – < dea947c5bcf69d528aad321ceb22c51451c3bd2b · 9f599f351e86acf0fc13e42771f97b7fb4dbbea4 – < 81e0d433dc5ed69876310fb6511833354c9a951d · 9f599f351e86acf0fc13e42771f97b7fb4dbbea4 – < da18ffe1cd0a45fbb854be4bf9555f511747c8b3 · 9f599f351e86acf0fc13e42771f97b7fb4dbbea4 – < 4fc56ebae1e1f58f2e49a736e67dc7b0944f796c · 9f599f351e86acf0fc13e42771f97b7fb4dbbea4 – < 8124688da2569df407b5ae460e34f7add4c0170f · 9f599f351e86acf0fc13e42771f97b7fb4dbbea4 – < ec95ae226f240ed657834fe4114abb7067e1af2dFixed in: dea947c5bcf69d528aad321ceb22c51451c3bd2b · 81e0d433dc5ed69876310fb6511833354c9a951d · da18ffe1cd0a45fbb854be4bf9555f511747c8b3 · 4fc56ebae1e1f58f2e49a736e67dc7b0944f796c · 8124688da2569df407b5ae460e34f7add4c0170f · ec95ae226f240ed657834fe4114abb7067e1af2d
Linux Linux5.18Fixed in: 6.1.193 · 6.6.163 · 6.12.117 · 6.18.63 · 7.3.4 · 7.4-rc1
References
- git.kernel.org/stable/c/dea947c5bcf69d528aad321ceb22c51451c3bd2b
- git.kernel.org/stable/c/81e0d433dc5ed69876310fb6511833354c9a951d
- git.kernel.org/stable/c/da18ffe1cd0a45fbb854be4bf9555f511747c8b3
- git.kernel.org/stable/c/4fc56ebae1e1f58f2e49a736e67dc7b0944f796c
- git.kernel.org/stable/c/8124688da2569df407b5ae460e34f7add4c0170f
- git.kernel.org/stable/c/ec95ae226f240ed657834fe4114abb7067e1af2d
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.