CVE-2022-49291

ALSA: pcm: Fix races among concurrent hw_params and hw_free calls

HIGH
7.8
CVSS Score
Published: February 26, 2025 at 01:56 AM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.14.2792.6.12 ≤ v < 4.14.2792.6.12 ≤ v < 4.19.2432.6.12 ≤ v < 5.10.1092.6.12 ≤ v < 5.15.322.6.12 ≤ v < 5.16.182.6.12 ≤ v < 5.17.12.6.12 ≤ v < 5.182.6.12 ≤ v < 5.4.1934.15 ≤ v < 4.19.2434.20 ≤ v < 5.4.1935.11 ≤ v < 5.15.325.16 ≤ v < 5.16.185.17 ≤ v < 5.17.15.5 ≤ v < 5.10.1091da177e4c3f41524e886b7f1b8a0c1fc7321cac22.6.12
Vendor states this is fixed in 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8 (fixed)
Vendor states this is fixed in 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b (fixed)
Vendor states this is fixed in 33061d0fba51d2bf70a2ef9645f703c33fe8e438 (fixed)
Vendor states this is fixed in 90c13cbbdffd7da79ac56f80373a9a1be0bf8 (fixed)
Vendor states this is fixed in 92ee3c60ec9fe64404dc035e7c41277d74aa26cb (fixed)
Vendor states this is fixed in 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9 (fixed)
Vendor states this is fixed in a42aa926843acca96c0dfbde2e835b8137f2f092 (fixed)
Vendor states this is fixed in fbeb492694ce0441053de57699e1e2b7bc148a69 (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 4.14.279 (unaffected)
Vendor states this is fixed in 4.19.243 (unaffected)
Vendor states this is fixed in 5.10.109 (unaffected)
Vendor states this is fixed in 5.15.32 (unaffected)
Vendor states this is fixed in 5.16.18 (unaffected)
Vendor states this is fixed in 5.17.1 (unaffected)
Vendor states this is fixed in 5.18 (unaffected)
Vendor states this is fixed in 5.4.193 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0090c13cbbdffd7da079ac56f80373a9a1be0bf8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0f6947f5f5208f6ebd4d76a82a4757e2839a23f8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1bbf82d9f961414d6c76a08f7f843ea068e0ab7b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/33061d0fba51d2bf70a2ef9645f703c33fe8e438
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/92ee3c60ec9fe64404dc035e7c41277d74aa26cb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9cb6c40a6ebe4a0cfc9d6a181958211682cffea9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a42aa926843acca96c0dfbde2e835b8137f2f092
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fbeb492694ce0441053de57699e1e2b7bc148a69

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card