CVE-2025-39698

io_uring/futex: ensure io_futex_wait() cleans up properly on failure

State
Published
Severity
7.8 High
Published
Sep 5, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

io_uring/futex: ensure io_futex_wait() cleans up properly on failure

The io_futex_data is allocated upfront and assigned to the io_kiocb async_data field, but the request isn't marked with REQ_F_ASYNC_DATA at that point. Those two should always go together, as the flag tells io_uring whether the field is valid or not.

Additionally, on failure cleanup, the futex handler frees the data but does not clear ->async_data. Clear the data and the flag in the error path as well.

Thanks to Trend Micro Zero Day Initiative and particularly ReDress for reporting this.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
3.18.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HCISA-ADP

Weaknesses

  • CWE-672 Operation on a Resource after Expiration or Release

Affected Products

ProductVersions
LinuxLinux
  • 194bb58c6090e39bd7d9b9c888a079213628e1f6 to before d9f93172820a53ab42c4b0e5e65291f4f9d00ad2Affected
  • 194bb58c6090e39bd7d9b9c888a079213628e1f6 to before d34c04152df517c59979b4bf2a47f491e06d3256Affected
  • 194bb58c6090e39bd7d9b9c888a079213628e1f6 to before 508c1314b342b78591f51c4b5dadee31a88335dfAffected
LinuxLinux
  • 6.7Affected
  • before 6.7Not affected
  • 6.12.44 through 6.12.*Not affected
  • 6.16.4 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.