In the Linux kernel, the following vulnerability has been resolved:
ASoC: Intel: sofsdwrtsdcajackcommon: ctx->headsetcodec_dev = NULL
sofsdwrtsdcajackexit() are used by different codecs, and some of them use the same dai name. For example, rt712 and rt713 both use "rt712-sdca-aif1" and sofsdwrtsdcajackexit(). As a result, sofsdwrtsdcajackexit() will be called twice by mcdailinkexitloop(). Set ctx->headsetcodecdev = NULL; after putdevice(ctx->headsetcodecdev); to avoid ctx->headsetcodec_dev being put twice.