In the Linux kernel, the following vulnerability has been resolved: ASoC: Intel: sofsdwrtsdcajackcommon: ctx->headsetcodecdev = 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->headsetcodecdev being put twice.