pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node()
Summary
| CVE | CVE-2026-23038 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-01-31 12:16:07 UTC |
| Updated | 2026-07-14 13:18:23 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved: pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node() In nfs4_ff_alloc_deviceid_node(), if the allocation for ds_versions fails, the function jumps to the out_scratch label without freeing the already allocated dsaddrs list, leading to a memory leak. Fix this by jumping to the out_err_drain_dsaddrs label, which properly frees the dsaddrs list before cleaning up other resources. |
Risk And Classification
EPSS: 0.002220000 probability, percentile 0.127450000 (date 2026-07-14)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected d67ae825a59d639e4d8b82413af84d854617a87e e2dde5dafb80f1af4028ed10ad255f42af71c784 git | Not specified |
| CNA | Linux | Linux | affected d67ae825a59d639e4d8b82413af84d854617a87e 27c90d8ed81e7a289c9fe41b5e31d8bb609a3385 git | Not specified |
| CNA | Linux | Linux | affected d67ae825a59d639e4d8b82413af84d854617a87e 34b9dd179818ff7af2b36410985fd8166573c62d git | Not specified |
| CNA | Linux | Linux | affected d67ae825a59d639e4d8b82413af84d854617a87e 869862056e100973e76ce9f5f1b01837771b7722 git | Not specified |
| CNA | Linux | Linux | affected d67ae825a59d639e4d8b82413af84d854617a87e 86da7efd12295a7e2b4abde5e5984c821edd938f git | Not specified |
| CNA | Linux | Linux | affected d67ae825a59d639e4d8b82413af84d854617a87e ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb git | Not specified |
| CNA | Linux | Linux | affected d67ae825a59d639e4d8b82413af84d854617a87e 0c728083654f0066f5e10a1d2b0bd0907af19a58 git | Not specified |
| CNA | Linux | Linux | affected 4.0 | Not specified |
| CNA | Linux | Linux | unaffected 4.0 semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.249 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15.199 5.15.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.1.162 6.1.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.6.122 6.6.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.12.67 6.12.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.18.7 6.18.* semver | Not specified |
| CNA | Linux | Linux | unaffected 6.19 * original_commit_for_fix | Not specified |
| ADP | Siemens | RUGGEDCOM RST2428P | affected V4.0 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.6 * custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.6 * custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.6 * custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.6 * custom | Not specified |
| ADP | Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.6 * custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/e2dde5dafb80f1af4028ed10ad255f42af71c784 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/869862056e100973e76ce9f5f1b01837771b7722 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| cert-portal.siemens.com/productcert/html/ssa-019113.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| git.kernel.org/stable/c/0c728083654f0066f5e10a1d2b0bd0907af19a58 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| cert-portal.siemens.com/productcert/html/ssa-253495.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| git.kernel.org/stable/c/27c90d8ed81e7a289c9fe41b5e31d8bb609a3385 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/34b9dd179818ff7af2b36410985fd8166573c62d | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| git.kernel.org/stable/c/86da7efd12295a7e2b4abde5e5984c821edd938f | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | git.kernel.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.