ASoC: stm32: sai: fix OF node leak on probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5914d285f6b782892a91d6621723fdc41a775b15 · < 23261f0de09427367e99f39f588e31e2856a690e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: stm32: sai: fix OF node leak on probe
The reference taken to the sync provider OF node when probing the platform device is currently only dropped if the set_sync() callback fails during DAI probe.
Make sure to drop the reference on platform probe failures (e.g. probe deferral) and on driver unbind.
This also avoids a potential use-after-free in case the DAI is ever reprobed without first rebinding the platform driver.
From the CVE record · Linux
The Linux kernel STM32 SAI driver can leak a reference to a sync provider OF node when platform probing fails or the driver is unbound. It could also cause a use-after-free if the DAI is reprobed without first rebinding the platform driver; the input does not specify an attack path, required authentication, or user interaction.
Engineers running Linux kernels with the STM32 SAI driver should check their versions; affected versions are not specified.