{"id":"CVE-2022-49291","summary":"ALSA: pcm: Fix races among concurrent hw_params and hw_free calls","details":"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-\u003ebuffer_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.","modified":"2026-04-02T08:27:28.605936Z","published":"2025-02-26T01:56:27.986Z","related":["SUSE-SU-2025:0983-1","SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1194-1","SUSE-SU-2025:1241-1","SUSE-SU-2025:1263-1","SUSE-SU-2025:1293-1","SUSE-SU-2026:0385-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49291.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0090c13cbbdffd7da079ac56f80373a9a1be0bf8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0f6947f5f5208f6ebd4d76a82a4757e2839a23f8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1bbf82d9f961414d6c76a08f7f843ea068e0ab7b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/33061d0fba51d2bf70a2ef9645f703c33fe8e438"},{"type":"WEB","url":"https://git.kernel.org/stable/c/92ee3c60ec9fe64404dc035e7c41277d74aa26cb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9cb6c40a6ebe4a0cfc9d6a181958211682cffea9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a42aa926843acca96c0dfbde2e835b8137f2f092"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fbeb492694ce0441053de57699e1e2b7bc148a69"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49291.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49291"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"},{"fixed":"a42aa926843acca96c0dfbde2e835b8137f2f092"},{"fixed":"9cb6c40a6ebe4a0cfc9d6a181958211682cffea9"},{"fixed":"fbeb492694ce0441053de57699e1e2b7bc148a69"},{"fixed":"0f6947f5f5208f6ebd4d76a82a4757e2839a23f8"},{"fixed":"33061d0fba51d2bf70a2ef9645f703c33fe8e438"},{"fixed":"0090c13cbbdffd7da079ac56f80373a9a1be0bf8"},{"fixed":"1bbf82d9f961414d6c76a08f7f843ea068e0ab7b"},{"fixed":"92ee3c60ec9fe64404dc035e7c41277d74aa26cb"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49291.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}