{"id":"CVE-2025-68814","state":"PUBLISHED","title":"io_uring: fix filename leak in __io_openat_prep()","description":"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't 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.","publishedAt":"2026-01-13T15:29:19.129Z","updatedAt":"2026-10-15T01:10:19.160Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"2420ef01b2e836fbc05a0a8c73a1016504eb0458","versionType":"git"},{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"8f44c4a550570cd5903625133f938c6b51310c9b","versionType":"git"},{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"18b99fa603d0df5e1c898699c17d3b92ddc80746","versionType":"git"},{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"e232269d511566b1f80872256a48593acc1becf4","versionType":"git"},{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"7fbfb85b05bc960cc50e09d03e5e562131e48d45","versionType":"git"},{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"b14fad555302a2104948feaff70503b64c80ac01","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["io_uring/openclose.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.198","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.160","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.120","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.64","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.3","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["io_uring/openclose.c"]}],"references":["https://git.kernel.org/stable/c/2420ef01b2e836fbc05a0a8c73a1016504eb0458","https://git.kernel.org/stable/c/8f44c4a550570cd5903625133f938c6b51310c9b","https://git.kernel.org/stable/c/18b99fa603d0df5e1c898699c17d3b92ddc80746","https://git.kernel.org/stable/c/e232269d511566b1f80872256a48593acc1becf4","https://git.kernel.org/stable/c/7fbfb85b05bc960cc50e09d03e5e562131e48d45","https://git.kernel.org/stable/c/b14fad555302a2104948feaff70503b64c80ac01","https://cert-portal.siemens.com/productcert/html/ssa-019113.html","https://cert-portal.siemens.com/productcert/html/ssa-457936.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:56.034Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/68xxx/CVE-2025-68814.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-68814","state":"PUBLISHED","datePublished":"2026-01-13T15:29:19.129Z","dateUpdated":"2026-10-15T01:10:19.160Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-24T10:30:51.047Z"},"containers":{"cna":{"title":"io_uring: fix filename leak in __io_openat_prep()","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't 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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"2420ef01b2e836fbc05a0a8c73a1016504eb0458","versionType":"git"},{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"8f44c4a550570cd5903625133f938c6b51310c9b","versionType":"git"},{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"18b99fa603d0df5e1c898699c17d3b92ddc80746","versionType":"git"},{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"e232269d511566b1f80872256a48593acc1becf4","versionType":"git"},{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"7fbfb85b05bc960cc50e09d03e5e562131e48d45","versionType":"git"},{"version":"b9445598d8c60a1379887b957024b71343965f74","status":"affected","lessThan":"b14fad555302a2104948feaff70503b64c80ac01","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["io_uring/openclose.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.198","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.160","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.120","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.64","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.3","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["io_uring/openclose.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/2420ef01b2e836fbc05a0a8c73a1016504eb0458"},{"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"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:53:50.279Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.198"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.1.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.6.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12.64"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.18.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.6","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.7","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.6","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.7","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.6","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.7","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.6","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.7","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.6","status":"affected","lessThan":"*","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.7","status":"affected","lessThan":"*","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-15T01:10:19.160Z"},"x_adpType":"supplier"}]}}}