CVE-2025-39977
BaseFortify
Publication date: 2025-10-15
Last updated on: 2025-10-16
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 5.15.160 (inc) to 5.16 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a use-after-free issue in the Linux kernel's futex subsystem during the requeue-PI operation. It involves a race condition between two threads (T1 and T2) where T1 can leave the futex_wait_requeue_pi() function without proper synchronization, causing futex_q to become garbage on the stack. This happens because futex_q::lock_ptr is not used correctly for synchronization. The fix involves reading futex_q::task before updating the requeue state to ensure the task_struct remains valid during wake-up, preventing the use-after-free condition.
How can this vulnerability impact me? :
This vulnerability can lead to a use-after-free condition in the Linux kernel, which may cause system instability, crashes, or potentially allow an attacker to execute arbitrary code or escalate privileges by exploiting the race condition in the futex subsystem.
What immediate steps should I take to mitigate this vulnerability?
Update the Linux kernel to a version that includes the fix for the futex use-after-free vulnerability during requeue-PI. The fix involves reading futex_q::task before updating the requeue state to prevent the race condition. Applying the latest kernel patches or updates from your Linux distribution vendor that address this issue is the recommended mitigation.