{"id":"CVE-2022-49291","published":"2025-02-26T01:56:27Z","modified":"2026-08-05T08:54:39Z","title":"ALSA: pcm: Fix races among concurrent hw_params and hw_free calls","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nALSA: pcm: Fix races among concurrent hw_params and hw_free calls\n\nCurrently we have neither proper check nor protection against the\nconcurrent calls of PCM hw_params and hw_free ioctls, which may result\nin a UAF.  Since the existing PCM stream lock can't be used for\nprotecting the whole ioctl operations, we need a new mutex to protect\nthose racy calls.\n\nThis patch introduced a new mutex, runtime->buffer_mutex, and applies\nit to both hw_params and hw_free ioctl code paths.  Along with it, the\nboth functions are slightly modified (the mmap_count check is moved\ninto the state-check block) for code simplicity.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.003,"percentile":0.23242,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/a42aa926843acca96c0dfbde2e835b8137f2f092","tags":[]},{"url":"https://git.kernel.org/stable/c/9cb6c40a6ebe4a0cfc9d6a181958211682cffea9","tags":[]},{"url":"https://git.kernel.org/stable/c/fbeb492694ce0441053de57699e1e2b7bc148a69","tags":[]},{"url":"https://git.kernel.org/stable/c/0f6947f5f5208f6ebd4d76a82a4757e2839a23f8","tags":[]},{"url":"https://git.kernel.org/stable/c/33061d0fba51d2bf70a2ef9645f703c33fe8e438","tags":[]},{"url":"https://git.kernel.org/stable/c/0090c13cbbdffd7da079ac56f80373a9a1be0bf8","tags":[]},{"url":"https://git.kernel.org/stable/c/1bbf82d9f961414d6c76a08f7f843ea068e0ab7b","tags":[]},{"url":"https://git.kernel.org/stable/c/92ee3c60ec9fe64404dc035e7c41277d74aa26cb","tags":[]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":4.65},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a42aa926843acca96c0dfbde2e835b8137f2f092",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 9cb6c40a6ebe4a0cfc9d6a181958211682cffea9",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fbeb492694ce0441053de57699e1e2b7bc148a69",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0f6947f5f5208f6ebd4d76a82a4757e2839a23f8",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 33061d0fba51d2bf70a2ef9645f703c33fe8e438",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0090c13cbbdffd7da079ac56f80373a9a1be0bf8",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1bbf82d9f961414d6c76a08f7f843ea068e0ab7b",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 92ee3c60ec9fe64404dc035e7c41277d74aa26cb"]},{"vendor":"Linux","product":"Linux","versions":["2.6.12"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-27T17:58:45.856077Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-54935","exploited":false,"provenance":"source"}}