CVE-2022-49291 Details
Description
In the Linux kernel, the following vulnerability has been resolved: ALSA: pcm: Fix races among concurrent hw_params and hw_free calls Currently we have neither proper check nor protection against the concurrent calls of PCM hw_params and hw_free ioctls, which may result in a UAF. Since the existing PCM stream lock can't be used for protecting the whole ioctl operations, we need a new mutex to protect those racy calls. This patch introduced a new mutex, runtime->buffer_mutex, and applies it to both hw_params and hw_free ioctl code paths. Along with it, the both functions are slightly modified (the mmap_count check is moved into the state-check block) for code simplicity.
A use-after-free vulnerability has been addressed in the Linux kernel's Advanced Linux Sound Architecture (ALSA) subsystem. This issue arose from a lack of proper checks and protections against concurrent calls to the PCM hardware parameters and hardware free IOCTLs. Such races could lead to a use-after-free condition. The vulnerability has been mitigated by introducing a new mutex, 'runtime->buffer_mutex', to safeguard these overlapping calls. The patch also slightly modifies the IOCTL functions for improved code simplicity.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/0090c13cbbdffd7da079ac56f80373a9a1be0bf8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/0f6947f5f5208f6ebd4d76a82a4757e2839a23f8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/1bbf82d9f961414d6c76a08f7f843ea068e0ab7b | kernel.org | Patch |
| https://git.kernel.org/stable/c/33061d0fba51d2bf70a2ef9645f703c33fe8e438 | kernel.org | Patch |
| https://git.kernel.org/stable/c/92ee3c60ec9fe64404dc035e7c41277d74aa26cb | kernel.org | Patch |
| https://git.kernel.org/stable/c/9cb6c40a6ebe4a0cfc9d6a181958211682cffea9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a42aa926843acca96c0dfbde2e835b8137f2f092 | kernel.org | Patch |
| https://git.kernel.org/stable/c/fbeb492694ce0441053de57699e1e2b7bc148a69 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 4.14.279 >= 4.15, < 4.19.243 >= 4.20, < 5.4.193 >= 5.5, < 5.10.109 >= 5.11, < 5.15.32 >= 5.16, < 5.16.18 >= 5.17, < 5.17.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 25, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | CVE Modified | CISA-ADP |
| Feb 26, 2025 | New CVE Received | kernel.org |