Bug 2347885 (CVE-2022-49045)

Summary: CVE-2022-49045 kernel: ALSA: pcm: Test for "silence" field in struct "pcm_format_data"
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:
[REJECTED CVE] CVE-2022-49045 pertains to a vulnerability identified in the Linux kernel's Advanced Linux Sound Architecture (ALSA) subsystem, specifically within the PCM (Pulse Code Modulation) component. The issue stemmed from insufficient validation of the "silence" field in the pcm_format_data structure. This oversight could lead to a null pointer dereference during certain audio operations, potentially causing a system crash.
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:10:11 UTC
In the Linux kernel, the following vulnerability has been resolved:

ALSA: pcm: Test for "silence" field in struct "pcm_format_data"

Syzbot reports "KASAN: null-ptr-deref Write in
snd_pcm_format_set_silence".[1]

It is due to missing validation of the "silence" field of struct
"pcm_format_data" in "pcm_formats" array.

Add a test for valid "pat" and, if it is not so, return -EINVAL.

[1] https://lore.kernel.org/lkml/000000000000d188ef05dc2c7279@google.com/

Comment 1 Avinash Hanwate 2025-02-26 21:04:49 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022650-CVE-2022-49045-7d21@gregkh/T

Comment 4 TEJ RATHI 2025-05-16 05:59:04 UTC
This CVE has been rejected upstream: https://lore.kernel.org/linux-cve-announce/2025030209-REJECTED-33ef@gregkh/