{"id":"CVE-2026-23038","state":"PUBLISHED","title":"pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\npnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node()\n\nIn nfs4_ff_alloc_deviceid_node(), if the allocation for ds_versions fails,\nthe function jumps to the out_scratch label without freeing the already\nallocated dsaddrs list, leading to a memory leak.\n\nFix this by jumping to the out_err_drain_dsaddrs label, which properly\nfrees the dsaddrs list before cleaning up other resources.","publishedAt":"2026-01-31T11:42:32.599Z","updatedAt":"2026-10-19T18:25:28.264Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"e2dde5dafb80f1af4028ed10ad255f42af71c784","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"27c90d8ed81e7a289c9fe41b5e31d8bb609a3385","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"34b9dd179818ff7af2b36410985fd8166573c62d","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"869862056e100973e76ce9f5f1b01837771b7722","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"86da7efd12295a7e2b4abde5e5984c821edd938f","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"0c728083654f0066f5e10a1d2b0bd0907af19a58","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/flexfilelayout/flexfilelayoutdev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.0","versionType":"semver"},{"version":"5.10.249","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.199","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.162","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.122","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.67","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.7","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":["fs/nfs/flexfilelayout/flexfilelayoutdev.c"]}],"references":["https://git.kernel.org/stable/c/e2dde5dafb80f1af4028ed10ad255f42af71c784","https://git.kernel.org/stable/c/27c90d8ed81e7a289c9fe41b5e31d8bb609a3385","https://git.kernel.org/stable/c/34b9dd179818ff7af2b36410985fd8166573c62d","https://git.kernel.org/stable/c/869862056e100973e76ce9f5f1b01837771b7722","https://git.kernel.org/stable/c/86da7efd12295a7e2b4abde5e5984c821edd938f","https://git.kernel.org/stable/c/ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb","https://git.kernel.org/stable/c/0c728083654f0066f5e10a1d2b0bd0907af19a58","https://cert-portal.siemens.com/productcert/html/ssa-253495.html","https://cert-portal.siemens.com/productcert/html/ssa-019113.html","https://cert-portal.siemens.com/productcert/html/ssa-457936.html"],"weaknesses":["CWE-401"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/23xxx/CVE-2026-23038.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-23038","state":"PUBLISHED","datePublished":"2026-01-31T11:42:32.599Z","dateUpdated":"2026-10-19T18:25:28.264Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-01-13T15:37:45.943Z"},"containers":{"cna":{"title":"pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\npnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node()\n\nIn nfs4_ff_alloc_deviceid_node(), if the allocation for ds_versions fails,\nthe function jumps to the out_scratch label without freeing the already\nallocated dsaddrs list, leading to a memory leak.\n\nFix this by jumping to the out_err_drain_dsaddrs label, which properly\nfrees the dsaddrs list before cleaning up other resources."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"e2dde5dafb80f1af4028ed10ad255f42af71c784","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"27c90d8ed81e7a289c9fe41b5e31d8bb609a3385","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"34b9dd179818ff7af2b36410985fd8166573c62d","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"869862056e100973e76ce9f5f1b01837771b7722","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"86da7efd12295a7e2b4abde5e5984c821edd938f","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb","versionType":"git"},{"version":"d67ae825a59d639e4d8b82413af84d854617a87e","status":"affected","lessThan":"0c728083654f0066f5e10a1d2b0bd0907af19a58","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/nfs/flexfilelayout/flexfilelayoutdev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.0","versionType":"semver"},{"version":"5.10.249","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.199","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.162","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.122","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.67","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.7","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":["fs/nfs/flexfilelayout/flexfilelayoutdev.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e2dde5dafb80f1af4028ed10ad255f42af71c784"},{"url":"https://git.kernel.org/stable/c/27c90d8ed81e7a289c9fe41b5e31d8bb609a3385"},{"url":"https://git.kernel.org/stable/c/34b9dd179818ff7af2b36410985fd8166573c62d"},{"url":"https://git.kernel.org/stable/c/869862056e100973e76ce9f5f1b01837771b7722"},{"url":"https://git.kernel.org/stable/c/86da7efd12295a7e2b4abde5e5984c821edd938f"},{"url":"https://git.kernel.org/stable/c/ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb"},{"url":"https://git.kernel.org/stable/c/0c728083654f0066f5e10a1d2b0bd0907af19a58"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:58:48.041Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"5.10.249"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"5.15.199"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"6.1.162"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"6.6.122"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"6.12.67"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"6.18.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"6.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"affected":[{"vendor":"Siemens","product":"RUGGEDCOM RST2428P","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V4.0","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 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-253495.html"},{"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:12:43.175Z"},"x_adpType":"supplier"},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-23038","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-06-16T20:32:12.394629Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-401","lang":"en","type":"CWE","description":"CWE-401 Missing Release of Memory after Effective Lifetime"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T18:25:28.264Z"}}]}}}