CVE-2025-23134

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

Medium · published April 16, 2025

CVSS v3.1
5.5
EPSS
0%
Percentile
3.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00148 · 3.6th percentile
Published
2025-04-16T14:13Z
EPSS history
Timeline
  • 16 APR 14:13Z
    ALSA: timer: Don't take register_mutex with copy_from/to_user()
    cvelistv5