В ядре Linux устранена следующая уязвимость: ASoC: qcom: lpass-cpu: используйте табличный индекс DAI для ограничений воспроизведения The DAI ID является аппаратным портом ID и не обязательно является индексом соответствующей записи в variant->dai_driver. При настройке DAI с LPAIF_I2SCTL_MODE_QUAD01 код зонда в настоящее время использует dai_id для индексации variant->dai_driver. Это неверно для платформ, где DAI IDs разреженный.
Например, IPQ806x MI2S DAI имеет ID 4, в то время как это единственная запись в таблице драйверов DAI. Если этот DAI настроен на QUAD01 и зонд достигает этой ветви, код записывается за пределы этой единственной записи через dai_driver[4], а не обновляет обрабатываемый DAI. Используйте циклический индекс i при обновлении текущих ограничений канала воспроизведения DAI, сохраняя при этом dai_id для индексации массива режимов воспроизведения SD-линии, специфичного для аппаратного порта.
Это исправляет неправильный доступ к таблице DAI для платформ, где DAI ID не соответствует своему положению в таблице драйверов.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ASoC: qcom: lpass-cpu: use DAI table index for playback constraints The DAI ID is a hardware port ID and is not necessarily the index of the corresponding entry in variant->dai_driver. When configuring a DAI with LPAIF_I2SCTL_MODE_QUAD01, the probe code currently uses dai_id to index variant->dai_driver. This is incorrect for platforms where DAI IDs are sparse. For example, the IPQ806x MI2S DAI has ID 4 while it is the only entry in the DAI driver table. If that DAI is configured for QUAD01 and probe reaches this branch, the code writes beyond that single entry via dai_driver[4] instead of updating the DAI being processed. Use the loop index i when updating the current DAI's playback channel constraints, while retaining dai_id for indexing the hardware-port specific playback SD-line mode array. This fixes the incorrect DAI table access for platforms where the DAI ID does not match its position in the driver table.