Bug 2347995 (CVE-2022-49617)

Summary: CVE-2022-49617 kernel: ASoC: Intel: sof_sdw: handle errors on card registration
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Intel SoundWire (sof_sdw) driver within the Linux kernel's ASoC subsystem. When a sound card registration fails, often due to deferred probing, the driver does not clean up associated device properties for headset codecs. This incomplete cleanup can lead to kernel crashes during subsequent device binding or unbinding operations. The underlying issue stems from the absence of proper error-handling logic in the registration process. A fix was introduced by adding a helper function that ensures all device properties are removed correctly, both during normal removal and when registration fails.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-26 03:13:57 UTC
In the Linux kernel, the following vulnerability has been resolved:

ASoC: Intel: sof_sdw: handle errors on card registration

If the card registration fails, typically because of deferred probes,
the device properties added for headset codecs are not removed, which
leads to kernel oopses in driver bind/unbind tests.

We already clean-up the device properties when the card is removed,
this code can be moved as a helper and called upon card registration
errors.

Comment 1 Avinash Hanwate 2025-02-26 19:29:20 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022614-CVE-2022-49617-44c8@gregkh/T