{"id":"CVE-2022-49291","aliases":["CVE-2022-49291"],"related":[],"kind":"vulnerability","state":"published","title":"ALSA: pcm: Fix races among concurrent hw_params and hw_free calls","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ALSA: pcm: Arregla ejecuciones entre llamadas hw_params y hw_free concurrentes Actualmente no tenemos ni la comprobación adecuada ni la protección contra las llamadas concurrentes de las ioctl hw_params y hw_free de PCM, lo que puede resultar en un UAF. Dado que el bloqueo de flujo de PCM existente no se puede utilizar para proteger todas las operaciones ioctl, necesitamos un nuevo mutex para proteger esas llamadas con ejecuciones. Este parche introdujo un nuevo mutex, runtime-&gt;buffer_mutex, y lo aplica a las rutas de código de ioctl hw_params y hw_free. Junto con él, ambas funciones se modifican ligeramente (la comprobación mmap_count se mueve al bloque state-check) para simplificar el código.","source":"nvd"}],"published":"2025-02-26T01:56:27.986Z","modified":"2026-08-05T08:54:39.261Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"a42aa926843acca96c0dfbde2e835b8137f2f092","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"9cb6c40a6ebe4a0cfc9d6a181958211682cffea9","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"fbeb492694ce0441053de57699e1e2b7bc148a69","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"0f6947f5f5208f6ebd4d76a82a4757e2839a23f8","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"33061d0fba51d2bf70a2ef9645f703c33fe8e438","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"0090c13cbbdffd7da079ac56f80373a9a1be0bf8","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"1bbf82d9f961414d6c76a08f7f843ea068e0ab7b","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"92ee3c60ec9fe64404dc035e7c41277d74aa26cb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"4.14.279","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.243","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.193","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.109","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.32","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.18","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.1","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.14.279"},{"status":"affected","introduced":"4.15","fixed":"4.19.243"},{"status":"affected","introduced":"4.20","fixed":"5.4.193"},{"status":"affected","introduced":"5.5","fixed":"5.10.109"},{"status":"affected","introduced":"5.11","fixed":"5.15.32"},{"status":"affected","introduced":"5.16","fixed":"5.16.18"},{"status":"affected","introduced":"5.17","fixed":"5.17.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/a42aa926843acca96c0dfbde2e835b8137f2f092","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9cb6c40a6ebe4a0cfc9d6a181958211682cffea9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fbeb492694ce0441053de57699e1e2b7bc148a69","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f6947f5f5208f6ebd4d76a82a4757e2839a23f8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/33061d0fba51d2bf70a2ef9645f703c33fe8e438","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0090c13cbbdffd7da079ac56f80373a9a1be0bf8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1bbf82d9f961414d6c76a08f7f843ea068e0ab7b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92ee3c60ec9fe64404dc035e7c41277d74aa26cb","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-27T17:58:45.856Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49291","url":"https://www.cve.org/CVERecord?id=CVE-2022-49291","licence":"CVE Terms of Use","modified":"2026-08-05T08:54:39.261Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49291","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49291","licence":"Public domain","modified":"2026-06-17T05:17:37.043Z"}],"updatedAt":"2026-11-25T22:58:20.366Z","epss":{"score":0.003,"percentile":0.24422,"date":"2026-12-01T12:00:22.000Z"}}