# CVE-2026-23038: pnfs/flexfiles: Fix memory leak in nfs4\_ff\_alloc\_deviceid\_node()

- Priority: **Routine**
- Reason: Not severe (CVSS 2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-01-31 · Modified: 2026-11-10
- Aliases: UBUNTU-CVE-2026-23038, DEBIAN-CVE-2026-23038
- Record: https://cvemate.com/vulnerability/CVE-2026-23038 · JSON: https://cvemate.com/vulnerability/CVE-2026-23038/json

## Description

```text
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.
```

## Signals

- CVSS: 2 low (v4.0, OSV · Ubuntu) CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- EPSS: 0.282%, percentile 22.174%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 159)

- debian linux (Debian): \< 6.1.162-1 \| \< 6.12.69-1 \| \< 6.18.8-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-176.186 \| \< 6.8.0-117.117
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1105.112 \| \< 6.8.0-1055.58
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1105.112~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1057.60~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1105.112+fips1 \| \< 6.8.0-1055.58+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1110.119 \| \< 6.8.0-1056.62

## References (first 20 of 43)

- <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://ubuntu.com/security/CVE-2026-23038>
- <https://www.cve.org/CVERecord?id=CVE-2026-23038>
- <https://git.kernel.org/linus/0c728083654f0066f5e10a1d2b0bd0907af19a58>
- <https://ubuntu.com/security/notices/USN-8162-1>
- <https://ubuntu.com/security/notices/USN-8180-1>
- <https://ubuntu.com/security/notices/USN-8180-2>
- <https://ubuntu.com/security/notices/USN-8186-1>
- <https://ubuntu.com/security/notices/USN-8187-1>
- <https://ubuntu.com/security/notices/USN-8188-1>
- <https://ubuntu.com/security/notices/USN-8180-3>
- <https://ubuntu.com/security/notices/USN-8180-4>

---

Data as of 2026-12-05T04:59:32.695Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
