CVE-2025-23134
JSON

5.5medium

ALSA: timer: Don't take register_mutex with copy_from/to_user()

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: timer: Don't take register_mutex with copy_from/to_user() The infamous mmap_lock taken in copy_from/to_user() can be often problematic when it's called inside another mutex, as they might lead to deadlocks. In the case of ALSA timer code, the bad pattern is with guard(mutex)(&register_mutex) that covers copy_from/to_user() -- which was mistakenly introduced at converting to guard(), and it had been carefully worked around in the past. This patch fixes those pieces simply by moving copy_from/to_user() out of the register mutex lock again.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 3923de04c81733b30b8ed667569632272fdfed9a before 15291b561d8cc835a2eea76b394070cf8e072771, from 3923de04c81733b30b8ed667569632272fdfed9a before 296f7a9e15aab276db11206cbc1e2ae1215d7862, from 3923de04c81733b30b8ed667569632272fdfed9a before b074f47e55df93832bbbca1b524c501e6fea1c0d, from 3923de04c81733b30b8ed667569632272fdfed9a before 3424c8f53bc63c87712a7fc22dc13d0cc85fb0d6, 6.9
Not affected: before 6.9, from 6.12.23 up to 6.12.*, from 6.13.11 up to 6.13.*, from 6.14.2 up to 6.14.*, from 6.15 up to *
CVE List
linux linux_kernelfrom 6.9 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-667

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: ALSA: timer: Don't take register_mutex with copy_from/to_user() The infamous mmap_lock taken in copy_from/to_user() can be often problematic when it's called inside another mutex, as they might lead to deadlocks. In the case of ALSA timer code, the bad pattern is with guard(mutex)(&register_mutex) that covers copy_from/to_user() -- which was mistakenly introduced at converting to guard(), and it had been carefully worked around in the past. This patch fixes those pieces simply by moving copy_from/to_user() out of the register mutex lock again.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ALSA: temporizador: No se utiliza register_mutex con copy_from/to_user(). El infame bloqueo mmap utilizado en copy_from/to_user() puede ser problemático cuando se invoca dentro de otro mutex, ya que podría provocar interbloqueos. En el caso del código del temporizador ALSA, el patrón incorrecto se encuentra en guard(mutex)(&register_mutex) que cubre copy_from/to_user(), que se introdujo por error al convertir a guard() y que ya se había solucionado cuidadosamente en el pasado. Este parche corrige estos problemas simplemente sacando copy_from/to_user() del bloqueo mutex de registro.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-23134 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-23134 changed 2026-06-17Public domain