Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.44, 6.16.4
CVEs
CVE-2025-39698
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 02:45 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 5 Sept 2025, 17:21 UTC

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.

osv:CVE-2025-39698

Kernel

Fixed versions: 6.12.44, 6.16.4

Complete source record
{
  "id": "9a75fc72ee0ad0d4bafc6315aae5f1e5516b61230fe75f51ab8b41550271bf1d",
  "url": "https://osv.dev/vulnerability/CVE-2025-39698",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "io_uring/futex: ensure io_futex_wait() cleans up properly on failure",
    "summary": "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.",
    "evidence": "osv:CVE-2025-39698",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.44",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.16.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-39698",
      "aliases": [
        "CVE-2025-39698"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "194bb58c6090e39bd7d9b9c888a079213628e1f6"
                },
                {
                  "fixed": "d9f93172820a53ab42c4b0e5e65291f4f9d00ad2"
                },
                {
                  "fixed": "d34c04152df517c59979b4bf2a47f491e06d3256"
                },
                {
                  "fixed": "508c1314b342b78591f51c4b5dadee31a88335df"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39698.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.44"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.16.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39698.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.220391756Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/508c1314b342b78591f51c4b5dadee31a88335df",
        "https://git.kernel.org/stable/c/d34c04152df517c59979b4bf2a47f491e06d3256",
        "https://git.kernel.org/stable/c/d9f93172820a53ab42c4b0e5e65291f4f9d00ad2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39698.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-39698",
        "https://www.zerodayinitiative.com/advisories/ZDI-25-915/",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39698.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-39698",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 514395,
  "published_at": "2025-09-05T17:21:04.36+00:00"
}