# CVE-2022-49291: ALSA: pcm: Fix races among concurrent hw_params and hw_free calls

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2025-02-26T01:56:27.986Z
- Modified: 2026-08-05T08:54:39.261Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a42aa926843acca96c0dfbde2e835b8137f2f092; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before fbeb492694ce0441053de57699e1e2b7bc148a69; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 33061d0fba51d2bf70a2ef9645f703c33fe8e438; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0090c13cbbdffd7da079ac56f80373a9a1be0bf8; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 92ee3c60ec9fe64404dc035e7c41277d74aa26cb; 2.6.12 (not affected: before 2.6.12; from 4.14.279 up to 4.14.*; from 4.19.243 up to 4.19.*; from 5.4.193 up to 5.4.*; from 5.10.109 up to 5.10.*; from 5.15.32 up to 5.15.*; from 5.16.18 up to 5.16.*; from 5.17.1 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: before 4.14.279; from 4.15 before 4.19.243; from 4.20 before 5.4.193; from 5.5 before 5.10.109; from 5.11 before 5.15.32; from 5.16 before 5.16.18; from 5.17 before 5.17.1

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2022-49291](https://www.cve.org/CVERecord?id=CVE-2022-49291), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2022-49291](https://nvd.nist.gov/vuln/detail/CVE-2022-49291), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49291 · Whole record: https://cve.day/CVE-2022-49291.json · Rebuilt by cve.day 2026-11-25T22:58:20.366Z
