CVE-2022-49291

HIGH

Linux Kernel - Use-After-Free in ALSA PCM hw_params and hw_free

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 7.8
EPSS 0.0029
EPSS Percentile 20.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-416
Status published
Products (26)
linux/Kernel 2.6.12 - 4.14.279linux
linux/Kernel 4.15.0 - 4.19.243linux
linux/Kernel 4.20.0 - 5.4.193linux
linux/Kernel 5.11.0 - 5.15.32linux
linux/Kernel 5.16.0 - 5.16.18linux
linux/Kernel 5.17.0 - 5.17.1linux
linux/Kernel 5.5.0 - 5.10.109linux
Linux/Linux < 2.6.12
Linux/Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - 0090c13cbbdffd7da079ac56f80373a9a1be0bf8
Linux/Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 - 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8
... and 16 more
Published Feb 26, 2025
Tracked Since Feb 18, 2026