В ядре Linux устранена следующая уязвимость: misc: fastrpc: Утечка объектов Fix dma_buf в fastrpc_map_lookup In fastrpc_map_lookup, dma_buf_get вызывается для получения ссылки на dma_buf для целей сравнения. Однако эта ссылка никогда не выпускается, когда функция возвращается, что приводит к утечке памяти dma_buf. Исправьте это, добавив dma_buf_put перед возвращением из функции, гарантируя, что временно приобретенная ссылка будет должным образом выпущена независимо от того, найдена ли соответствующая карта.
Правило: добавить
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: Fix dma_buf object leak in fastrpc_map_lookup In fastrpc_map_lookup, dma_buf_get is called to obtain a reference to the dma_buf for comparison purposes. However, this reference is never released when the function returns, leading to a dma_buf memory leak. Fix this by adding dma_buf_put before returning from the function, ensuring that the temporarily acquired reference is properly released regardless of whether a matching map is found. Rule: add