ASoC: rsnd: Fix potential out-of-bounds access of component_dais[]
3Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackepss 0.2%
exploitation probability
0.2%top 94% of all CVEs
observed exploitation
nono source reports it
In the Linux kernel, the following vulnerability has been resolved:
ASoC: rsnd: Fix potential out-of-bounds access of component_dais[]
component_dais[RSND_MAX_COMPONENT] is initially zero-initialized
and later populated in rsnd_dai_of_node(). However, the existing boundary check:
if (i >= RSND_MAX_COMPONENT)
does not guarantee that the last valid element remains zero. As a result,
the loop can rely on component_dais[RSND_MAX_COMPONENT] being zero,
which may lead to an out-of-bounds access.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Affected products
Linux · LinuxReferences
https://git.kernel.org/stable/c/134c61925e9e9ee0f4fdbab5c3984d5bb024f5f5https://git.kernel.org/stable/c/15e7b2ac2455995a6af02b9d3da7a432837aaf72https://git.kernel.org/stable/c/9f1daac27ca28e98c8c0e4450de42bb68d547250https://git.kernel.org/stable/c/a62b3e6e42359a79158c134e3cf5c74fe160c3f5https://git.kernel.org/stable/c/f9e437cddf6cf9e603bdaefe148c1f4792aaf39c