CVE-2025-68814 (GCVE-0-2025-68814)

Vulnerability from cvelistv5 – Published: 2026-01-13 15:29 – Updated: 2026-01-13 15:29
VLAI?
Title
io_uring: fix filename leak in __io_openat_prep()
Summary
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.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: b9445598d8c60a1379887b957024b71343965f74 , < 8f44c4a550570cd5903625133f938c6b51310c9b (git)
Affected: b9445598d8c60a1379887b957024b71343965f74 , < 18b99fa603d0df5e1c898699c17d3b92ddc80746 (git)
Affected: b9445598d8c60a1379887b957024b71343965f74 , < e232269d511566b1f80872256a48593acc1becf4 (git)
Affected: b9445598d8c60a1379887b957024b71343965f74 , < 7fbfb85b05bc960cc50e09d03e5e562131e48d45 (git)
Affected: b9445598d8c60a1379887b957024b71343965f74 , < b14fad555302a2104948feaff70503b64c80ac01 (git)
Create a notification for this product.
    Linux Linux Affected: 5.15
Unaffected: 0 , < 5.15 (semver)
Unaffected: 6.1.160 , ≤ 6.1.* (semver)
Unaffected: 6.6.120 , ≤ 6.6.* (semver)
Unaffected: 6.12.64 , ≤ 6.12.* (semver)
Unaffected: 6.18.3 , ≤ 6.18.* (semver)
Unaffected: 6.19-rc3 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "io_uring/openclose.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "8f44c4a550570cd5903625133f938c6b51310c9b",
              "status": "affected",
              "version": "b9445598d8c60a1379887b957024b71343965f74",
              "versionType": "git"
            },
            {
              "lessThan": "18b99fa603d0df5e1c898699c17d3b92ddc80746",
              "status": "affected",
              "version": "b9445598d8c60a1379887b957024b71343965f74",
              "versionType": "git"
            },
            {
              "lessThan": "e232269d511566b1f80872256a48593acc1becf4",
              "status": "affected",
              "version": "b9445598d8c60a1379887b957024b71343965f74",
              "versionType": "git"
            },
            {
              "lessThan": "7fbfb85b05bc960cc50e09d03e5e562131e48d45",
              "status": "affected",
              "version": "b9445598d8c60a1379887b957024b71343965f74",
              "versionType": "git"
            },
            {
              "lessThan": "b14fad555302a2104948feaff70503b64c80ac01",
              "status": "affected",
              "version": "b9445598d8c60a1379887b957024b71343965f74",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "io_uring/openclose.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.15"
            },
            {
              "lessThan": "5.15",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.160",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.120",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.19-rc3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.160",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.120",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.64",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.3",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19-rc3",
                  "versionStartIncluding": "5.15",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nio_uring: fix filename leak in __io_openat_prep()\n\n __io_openat_prep() allocates a struct filename using getname(). However,\nfor the condition of the file being installed in the fixed file table as\nwell as having O_CLOEXEC flag set, the function returns early. At that\npoint, the request doesn\u0027t have REQ_F_NEED_CLEANUP flag set. Due to this,\nthe memory for the newly allocated struct filename is not cleaned up,\ncausing a memory leak.\n\nFix this by setting the REQ_F_NEED_CLEANUP for the request just after the\nsuccessful getname() call, so that when the request is torn down, the\nfilename will be cleaned up, along with other resources needing cleanup."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-01-13T15:29:19.129Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/8f44c4a550570cd5903625133f938c6b51310c9b"
        },
        {
          "url": "https://git.kernel.org/stable/c/18b99fa603d0df5e1c898699c17d3b92ddc80746"
        },
        {
          "url": "https://git.kernel.org/stable/c/e232269d511566b1f80872256a48593acc1becf4"
        },
        {
          "url": "https://git.kernel.org/stable/c/7fbfb85b05bc960cc50e09d03e5e562131e48d45"
        },
        {
          "url": "https://git.kernel.org/stable/c/b14fad555302a2104948feaff70503b64c80ac01"
        }
      ],
      "title": "io_uring: fix filename leak in __io_openat_prep()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-68814",
    "datePublished": "2026-01-13T15:29:19.129Z",
    "dateReserved": "2025-12-24T10:30:51.047Z",
    "dateUpdated": "2026-01-13T15:29:19.129Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-68814\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-01-13T16:16:03.643\",\"lastModified\":\"2026-01-13T16:16:03.643\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nio_uring: fix filename leak in __io_openat_prep()\\n\\n __io_openat_prep() allocates a struct filename using getname(). However,\\nfor the condition of the file being installed in the fixed file table as\\nwell as having O_CLOEXEC flag set, the function returns early. At that\\npoint, the request doesn\u0027t have REQ_F_NEED_CLEANUP flag set. Due to this,\\nthe memory for the newly allocated struct filename is not cleaned up,\\ncausing a memory leak.\\n\\nFix this by setting the REQ_F_NEED_CLEANUP for the request just after the\\nsuccessful getname() call, so that when the request is torn down, the\\nfilename will be cleaned up, along with other resources needing cleanup.\"}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/18b99fa603d0df5e1c898699c17d3b92ddc80746\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7fbfb85b05bc960cc50e09d03e5e562131e48d45\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8f44c4a550570cd5903625133f938c6b51310c9b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/b14fad555302a2104948feaff70503b64c80ac01\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/e232269d511566b1f80872256a48593acc1becf4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…