В ядре Linux устранена следующая уязвимость:
ASoC: SOF: топология: исправлена утечка памяти в snd_sof_load_topology
Если имя файла топологии содержит «dummy» и tplg_cnt равно 0,
функция возвращает -EINVAL напрямую, не освобождая tplg_files
выделено функцией kcalloc() в строке 2497. Это приводит к утечке памяти при каждом
такая попытка загрузки топологии.
Исправьте это, установив ret = -EINVAL и перейдя к метке out:,
который уже обрабатывает очистку kfree(tplg_files).
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ASoC: SOF: topology: fix memory leak in snd_sof_load_topology When the topology filename contains "dummy" and tplg_cnt is 0, the function returns -EINVAL directly without freeing the tplg_files allocated by kcalloc() at line 2497. This leaks memory on every such topology load attempt. Fix this by setting ret = -EINVAL and jumping to the out: label, which already handles the kfree(tplg_files) cleanup.