CVE-2025-39977
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.53-69.119.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 07d91ef510fb16a2e0ca7453222105835b7ba3b8, 07d91ef510fb16a2e0ca7453222105835b7ba3b8, 07d91ef510fb16a2e0ca7453222105835b7ba3b8 |
| Linux | Linux | 5.15, 0, 6.1.155 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | perf6.12 | 0 |
| linux | linux_kernel | 5.15, 5.15, 5.15 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| Linux | Linux | 6.17, 07d91ef510fb16a2e0ca7453222105835b7ba3b8, 07d91ef510fb16a2e0ca7453222105835b7ba3b8 |
| amazon:2023 | kernel-livepatch-6.1.155-176.282 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.6, 3.1.5, 3.1.7 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.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