Skip to content
Heist/ feed
Unrated

io_uring: fix filename leak in __io_openat_prep()

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: io_uring: fix filename leak in __io_openat_prep() __io_openat_prep() allocates a struct filename using getname(). However, for the condition of the file being installed in the fixed file table as well as having O_CLOEXEC flag set, the function returns early. At that point, the request doesn't have REQ_F_NEED_CLEANUP flag set. Due to this, the memory for the newly allocated struct filename is not cleaned up, causing a memory leak. Fix this by setting the REQ_F_NEED_CLEANUP for the request just after the successful getname() call, so that when the request is torn down, the filename will be cleaned up, along with other resources needing cleanup.

Announced Source revision 1
Original source ↗

CVE-2025-68814

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-68814

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "b9445598d8c60a1379887b957024b71343965f74",
        "lessThan": "2420ef01b2e836fbc05a0a8c73a1016504eb0458",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b9445598d8c60a1379887b957024b71343965f74",
        "lessThan": "8f44c4a550570cd5903625133f938c6b51310c9b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b9445598d8c60a1379887b957024b71343965f74",
        "lessThan": "18b99fa603d0df5e1c898699c17d3b92ddc80746",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b9445598d8c60a1379887b957024b71343965f74",
        "lessThan": "e232269d511566b1f80872256a48593acc1becf4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b9445598d8c60a1379887b957024b71343965f74",
        "lessThan": "7fbfb85b05bc960cc50e09d03e5e562131e48d45",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b9445598d8c60a1379887b957024b71343965f74",
        "lessThan": "b14fad555302a2104948feaff70503b64c80ac01",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "io_uring/openclose.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.15"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.15",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.15.198",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.120",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.64",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.3",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "io_uring/openclose.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-68814

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

Event
#27130 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement