CVE-2022-49291
ALSA: pcm: Fix races among concurrent hw_params and hw_free calls
Mitigation
- Upgrade Linux to 92ee3c60ec9fe64404dc035e7c41277d74aa26cb or later.
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
Vulnerability facts
- Affected
- Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a42aa926843acca96c0dfbde2e835b8137f2f092; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fbeb492694ce0441053de57699e1e2b7bc148a69; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 33061d0fba51d2bf70a2ef9645f703c33fe8e438; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0090c13cbbdffd7da079ac56f80373a9a1be0bf8; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 92ee3c60ec9fe64404dc035e7c41277d74aa26cb; Linux 2.6.12
- Fixed in
- Linux 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9, Linux 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8, Linux 33061d0fba51d2bf70a2ef9645f703c33fe8e438, Linux 0090c13cbbdffd7da079ac56f80373a9a1be0bf8, Linux 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b, Linux 92ee3c60ec9fe64404dc035e7c41277d74aa26cb
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- CWE
- CWE-416
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a42aa926843acca96c0dfbde2e835b8137f2f092; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fbeb492694ce0441053de57699e1e2b7bc148a69; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 33061d0fba51d2bf70a2ef9645f703c33fe8e438; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0090c13cbbdffd7da079ac56f80373a9a1be0bf8; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 92ee3c60ec9fe64404dc035e7c41277d74aa26cb | — | cvelist |
| Linux | 2.6.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/a42aa926843acca96c0dfbde2e835b8137f2f092
- https://git.kernel.org/stable/c/9cb6c40a6ebe4a0cfc9d6a181958211682cffea9
- https://git.kernel.org/stable/c/fbeb492694ce0441053de57699e1e2b7bc148a69
- https://git.kernel.org/stable/c/0f6947f5f5208f6ebd4d76a82a4757e2839a23f8
- https://git.kernel.org/stable/c/33061d0fba51d2bf70a2ef9645f703c33fe8e438
- https://git.kernel.org/stable/c/0090c13cbbdffd7da079ac56f80373a9a1be0bf8
- https://git.kernel.org/stable/c/1bbf82d9f961414d6c76a08f7f843ea068e0ab7b
- https://git.kernel.org/stable/c/92ee3c60ec9fe64404dc035e7c41277d74aa26cb
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.