# CVE-2022-49291: ALSA: pcm: Fix races among concurrent hw\_params and hw\_free calls

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-02-26T01:56:27.986Z
- **Modified:** 2026-08-05T08:54:39.261Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a42aa926843acca96c0dfbde2e835b8137f2f092; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fbeb492694ce0441053de57699e1e2b7bc148a69; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 33061d0fba51d2bf70a2ef9645f703c33fe8e438; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0090c13cbbdffd7da079ac56f80373a9a1be0bf8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 92ee3c60ec9fe64404dc035e7c41277d74aa26cb
- Anyone running Linux 2.6.12

## 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 and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a42aa926843acca96c0dfbde2e835b8137f2f092; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fbeb492694ce0441053de57699e1e2b7bc148a69; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 33061d0fba51d2bf70a2ef9645f703c33fe8e438; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0090c13cbbdffd7da079ac56f80373a9a1be0bf8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 92ee3c60ec9fe64404dc035e7c41277d74aa26cb (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 92ee3c60ec9fe64404dc035e7c41277d74aa26cb or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49291. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49291.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a42aa926843acca96c0dfbde2e835b8137f2f092; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fbeb492694ce0441053de57699e1e2b7bc148a69; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9, Linux 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8, Linux 33061d0fba51d2bf70a2ef9645f703c33fe8e438, Linux 0090c13cbbdffd7da079ac56f80373a9a1be0bf8, Linux 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b, Linux 92ee3c60ec9fe64404dc035e7c41277d74aa26cb

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-49291 being exploited?

There is no confirmed exploitation: CVE-2022-49291 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-49291?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-49291?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a42aa926843acca96c0dfbde2e835b8137f2f092; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< fbeb492694ce0441053de57699e1e2b7bc148a69; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 33061d0fba51d2bf70a2ef9645f703c33fe8e438; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0090c13cbbdffd7da079ac56f80373a9a1be0bf8; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 92ee3c60ec9fe64404dc035e7c41277d74aa26cb; Linux 2.6.12.

### Is there a fix for CVE-2022-49291?

Yes. Fixed in Linux 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9, Linux 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8, Linux 33061d0fba51d2bf70a2ef9645f703c33fe8e438, Linux 0090c13cbbdffd7da079ac56f80373a9a1be0bf8, Linux 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b, Linux 92ee3c60ec9fe64404dc035e7c41277d74aa26cb. Upgrade Linux to 92ee3c60ec9fe64404dc035e7c41277d74aa26cb or later.

### How do I check if I'm affected by CVE-2022-49291?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a42aa926843acca96c0dfbde2e835b8137f2f092>
- patch: <https://git.kernel.org/stable/c/9cb6c40a6ebe4a0cfc9d6a181958211682cffea9>
- patch: <https://git.kernel.org/stable/c/fbeb492694ce0441053de57699e1e2b7bc148a69>
- patch: <https://git.kernel.org/stable/c/0f6947f5f5208f6ebd4d76a82a4757e2839a23f8>
- patch: <https://git.kernel.org/stable/c/33061d0fba51d2bf70a2ef9645f703c33fe8e438>
- patch: <https://git.kernel.org/stable/c/0090c13cbbdffd7da079ac56f80373a9a1be0bf8>
- patch: <https://git.kernel.org/stable/c/1bbf82d9f961414d6c76a08f7f843ea068e0ab7b>
- patch: <https://git.kernel.org/stable/c/92ee3c60ec9fe64404dc035e7c41277d74aa26cb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49291>

HTML: <https://flawdb.com/CVE-2022-49291> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49291>
