Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-39765

MEDIUM 5.5EPSS 8%

ALSA: timer: fix ida_free call while not allocated

Mitigation

  • Upgrade Linux to 5003a65790ed66be882d1987cc2ca86af0de3db1 or later.

Who should check

  • Anyone running Linux >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 34327b362ce2849a5eb02f47e800049e7a20a0ba; >= 37745918e0e7575bc40f38da93a99b9fa6406224, < af386b52531d14c4b20f11c452787b1b6dd4eb8d; >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 5003a65790ed66be882d1987cc2ca86af0de3db1
  • Anyone running Linux 6.12

Vulnerability facts

Affected
Linux >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 34327b362ce2849a5eb02f47e800049e7a20a0ba; >= 37745918e0e7575bc40f38da93a99b9fa6406224, < af386b52531d14c4b20f11c452787b1b6dd4eb8d; >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 5003a65790ed66be882d1987cc2ca86af0de3db1; Linux 6.12
Fixed in
Linux 34327b362ce2849a5eb02f47e800049e7a20a0ba, Linux 5003a65790ed66be882d1987cc2ca86af0de3db1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
CWE
CWE-476
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: ALSA: timer: fix ida_free call while not allocated In the snd_utimer_create() function, if the kasprintf() function return NULL, snd_utimer_put_id() will be called, finally use ida_free() to free the unallocated id 0. the syzkaller reported the following information: ------------[ cut here ]------------ ida_free called for id=0 which is not allocated. WARNING: CPU: 1 PID: 1286 at lib/idr.c:592 ida_free+0x1fd/0x2f0 lib/idr.c:592 Modules linked in: CPU: 1 UID: 0 PID: 1286 Comm: syz-executor164 Not tainted 6.15.8 #3 PREEMPT(lazy) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-4.fc42 04/01/2014 RIP: 0010:ida_free+0x1fd/0x2f0 lib/idr.c:592 Code: f8 fc 41 83 fc 3e 76 69 e8 70 b2 f8 (...) RSP: 0018:ffffc900007f79c8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 1ffff920000fef3b RCX: ffffffff872176a5 RDX: ffff88800369d200 RSI: 0000000000000000 RDI: ffff88800369d200 RBP: 0000000000000000 R08: ffffffff87ba60a5 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000002 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f6f1abc1740(0000) GS:ffff8880d76a0000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6f1ad7a784 CR3: 000000007a6e2000 CR4: 00000000000006f0 Call Trace: <TASK> snd_utimer_put_id sound/core/timer.c:2043 [inline] [snd_timer] snd_utimer_create+0x59b/0x6a0 sound/core/timer.c:2184 [snd_timer] snd_utimer_ioctl_create sound/core/timer.c:2202 [inline] [snd_timer] __snd_timer_user_ioctl.isra.0+0x724/0x1340 sound/core/timer.c:2287 [snd_timer] snd_timer_user_ioctl+0x75/0xc0 sound/core/timer.c:2298 [snd_timer] vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x198/0x200 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x7b/0x160 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x76/0x7e [...] The utimer->id should be set properly before the kasprintf() function, ensures the snd_utimer_put_id() function will free the allocated id.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 37745918e0e7575bc40f38da93a99b9fa6406224, < 34327b362ce2849a5eb02f47e800049e7a20a0ba; >= 37745918e0e7575bc40f38da93a99b9fa6406224, < af386b52531d14c4b20f11c452787b1b6dd4eb8d; >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 5003a65790ed66be882d1987cc2ca86af0de3db1—cvelist
Linux6.12—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-39765. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39765.md
Affected: Linux >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 34327b362ce2849a5eb02f47e800049e7a20a0ba; >= 37745918e0e7575bc40f38da93a99b9fa6406224, < af386b52531d14c4b20f11c452787b1b6dd4eb8d; >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 5003a65790ed66be882d1987cc2ca86af0de3db1; Linux 6.12
Fixed in: Linux 34327b362ce2849a5eb02f47e800049e7a20a0ba, Linux 5003a65790ed66be882d1987cc2ca86af0de3db1

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-39765 being exploited?

There is no confirmed exploitation: CVE-2025-39765 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-39765?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-39765?

Linux >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 34327b362ce2849a5eb02f47e800049e7a20a0ba; >= 37745918e0e7575bc40f38da93a99b9fa6406224, < af386b52531d14c4b20f11c452787b1b6dd4eb8d; >= 37745918e0e7575bc40f38da93a99b9fa6406224, < 5003a65790ed66be882d1987cc2ca86af0de3db1; Linux 6.12.

Is there a fix for CVE-2025-39765?

Yes. Fixed in Linux 34327b362ce2849a5eb02f47e800049e7a20a0ba, Linux 5003a65790ed66be882d1987cc2ca86af0de3db1. Upgrade Linux to 5003a65790ed66be882d1987cc2ca86af0de3db1 or later.

How do I check if I'm affected by CVE-2025-39765?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors