Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 8cc72361481f00253f1e468ade5795427386d593 before d0b53842211f73a10ea174100a213f7fa14b9f33; affected 8cc72361481f00253f1e468ade5795427386d593 before 615b7a5e5d8be68d52f262579906f7e015ba4606; affected 8cc72361481f00253f1e468ade5795427386d593 before dfc00979ff00d9dfdfa1df32144a272ee2728102; affected 8cc72361481f00253f1e468ade5795427386d593 before 25ded535ee261161bcf19dafd525c542e606559d; affected 8cc72361481f00253f1e468ade5795427386d593 before 30f9494c6f2b53a78822cfb653ffbb1d092d44c8; affected 8cc72361481f00253f1e468ade5795427386d593 before 09496158f6ebba8830593f8972035c02f97124c1; affected 8cc72361481f00253f1e468ade5795427386d593 before 95b1ee8442cabbde83b2848e7c6100df90f3a00d; affected 8cc72361481f00253f1e468ade5795427386d593 before 7d61662197ecdc458e33e475b6ada7f6da61d364 |
| Linux / Linux | affected 2.6.31; unaffected 0 before 2.6.31; unaffected 5.10.258 through 5.10.*; unaffected 5.15.209 through 5.15.*; unaffected 6.1.175 through 6.1.*; unaffected 6.6.140 through 6.6.*; unaffected 6.12.86 through 6.12.*; unaffected 6.18.27 through 6.18.*; unaffected 7.0.4 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/d0b53842211f73a10ea174100a213f7fa14b9f33
- https://git.kernel.org/stable/c/615b7a5e5d8be68d52f262579906f7e015ba4606
- https://git.kernel.org/stable/c/dfc00979ff00d9dfdfa1df32144a272ee2728102
- https://git.kernel.org/stable/c/25ded535ee261161bcf19dafd525c542e606559d
- https://git.kernel.org/stable/c/30f9494c6f2b53a78822cfb653ffbb1d092d44c8
- https://git.kernel.org/stable/c/09496158f6ebba8830593f8972035c02f97124c1
- https://git.kernel.org/stable/c/95b1ee8442cabbde83b2848e7c6100df90f3a00d
- https://git.kernel.org/stable/c/7d61662197ecdc458e33e475b6ada7f6da61d364