ALSA: ctxfi: Add fallback to default RSR for S/PDIF
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8cc72361481f00253f1e468ade5795427386d593 · < 09496158f6ebba8830593f8972035c02f97124c1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: ctxfi: Add fallback to default RSR for S/PDIF
spdif_passthru_playback_get_resources() uses atc->pll_rate as the RSR for the MSR calculation loop. However, pll_rate is only updated in atc_pll_init() and not in hw_pll_init(), so it remains 0 after the card init.
When spdif_passthru_playback_setup() skips atc_pll_init() for 32000 Hz, (rsr * desc.msr) always becomes 0, causing the loop to spin indefinitely.
Add fallback to use atc->rsr when atc->pll_rate is 0. This reflects the hardware state, since hw_card_init() already configures the PLL to the default RSR.
From the CVE record · Linux
The Linux kernel’s ALSA ctxfi driver can enter an infinite loop when S/PDIF passthrough playback is set up at 32000 Hz after card initialization leaves the PLL rate at zero. This can stall playback setup; the input does not specify whether an attacker can trigger it or what access would be required.
Engineers running Linux kernels with the ALSA ctxfi driver should check their versions against the vendor advisory; affected versions are not specified.