VDB

CVE-2025-39977

CVE-2025-39977 PUBLISHED CVSS 7.8 HIGH

futex: Prevent use-after-free during requeue-PI

Reported by linux · Published October 15, 2025

In the Linux kernel, the following vulnerability has been resolved: futex: Prevent use-after-free during requeue-PI syzbot managed to trigger the following race: T1 T2 futex_wait_requeue_pi() futex_do_wait() schedule() futex_requeue() futex_proxy_trylock_atomic() futex_requeue_pi_prepare() requeue_pi_wake_futex() futex_requeue_pi_complete() /* preempt */ * timeout/ signal wakes T1 * futex_requeue_pi_wakeup_sync() // Q_REQUEUE_PI_LOCKED futex_hash_put() // back to userland, on stack futex_q is garbage /* back */ wake_up_state(q->task, TASK_NORMAL); In this scenario futex_wait_requeue_pi() is able to leave without using futex_q::lock_ptr for synchronization. This can be prevented by reading futex_q::task before updating the futex_q::requeue_state. A reference on the task_struct is not needed because requeue_pi_wake_futex() is invoked with a spinlock_t held which implies a RCU read section. Even if T1 terminates immediately after, the task_struct will remain valid during T2's wake_up_state(). A READ_ONCE on futex_q::task before futex_requeue_pi_complete() is enough because it ensures that the variable is read before the state is updated. Read futex_q::task before updating the requeue state, use it for the following wakeup.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-libbpf-staticAmazon Linux1:6.12.53-69.119.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.53-69.119.amzn2023
perf6.12Amazon Linux1:6.12.53-69.119.amzn2023

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux07d91ef510fb16a2e0ca7453222105835b7ba3b8, 07d91ef510fb16a2e0ca7453222105835b7ba3b8, 07d91ef510fb16a2e0ca7453222105835b7ba3b8
LinuxLinux5.15, 0, 6.1.155
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.12-tools0
amazon:2023perf6.120
linuxlinux_kernel5.15, 5.15, 5.15
amazon:2023bpftool0
amazon:2023python3-perf6.120
amazon:2023kernel6.12-tools-devel0
LinuxLinux6.17, 07d91ef510fb16a2e0ca7453222105835b7ba3b8, 07d91ef510fb16a2e0ca7453222105835b7ba3b8
amazon:2023kernel-livepatch-6.1.155-176.2820
amazon:2023bpftool6.120
amazon:2023kernel6.120
amazon:2023kernel-tools0
amazon:2023kernel6.12-modules-extra-common0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.6, 3.1.5, 3.1.7
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-libbpf-devel0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.5, 3.1.6, 3.1.7

…and 20 more

Timeline

  • Oct 14, 2025 CVE Published
  • Oct 15, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 15, 2025 Coalition ESS Score (7 in total, the first dated here)
  • Dec 15, 2025 Security Advisory (211 in total, the first dated here)
  • Dec 18, 2025 PoC Published
  • Mar 29, 2026 Distribution Patch (130 in total, the first dated here)
  • Jul 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-39977
vulnetix vdb fixes CVE-2025-39977

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39977/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›