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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.31% (percentile 16, 2026-11-28)
- **CWE:** CWE-401
- **Published:** 2026-01-31T11:42:32.599Z
- **Modified:** 2026-11-10T13:18:33.537Z

## Who should check

- Anyone running Linux \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< e2dde5dafb80f1af4028ed10ad255f42af71c784; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 27c90d8ed81e7a289c9fe41b5e31d8bb609a3385; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 34b9dd179818ff7af2b36410985fd8166573c62d; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 869862056e100973e76ce9f5f1b01837771b7722; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 86da7efd12295a7e2b4abde5e5984c821edd938f; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 0c728083654f0066f5e10a1d2b0bd0907af19a58
- Anyone running Linux 4.0

## 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.

## Affected and fixed versions

- Linux: \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< e2dde5dafb80f1af4028ed10ad255f42af71c784; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 27c90d8ed81e7a289c9fe41b5e31d8bb609a3385; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 34b9dd179818ff7af2b36410985fd8166573c62d; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 869862056e100973e76ce9f5f1b01837771b7722; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 86da7efd12295a7e2b4abde5e5984c821edd938f; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 0c728083654f0066f5e10a1d2b0bd0907af19a58 (cvelist)
- Linux: 4.0 (cvelist)

## Mitigation

- Upgrade Linux to 0c728083654f0066f5e10a1d2b0bd0907af19a58 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-23038. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23038.md
Affected: Linux >= d67ae825a59d639e4d8b82413af84d854617a87e, < e2dde5dafb80f1af4028ed10ad255f42af71c784; >= d67ae825a59d639e4d8b82413af84d854617a87e, < 27c90d8ed81e7a289c9fe41b5e31d8bb609a3385; >= d67ae825a59d639e4d8b82413af84d854617a87e, < 34b9dd179818ff7af2b36410985fd8166573c62d; >= d67ae825a59d639e4d8b824…
Fixed in: Linux 27c90d8ed81e7a289c9fe41b5e31d8bb609a3385, Linux 34b9dd179818ff7af2b36410985fd8166573c62d, Linux 869862056e100973e76ce9f5f1b01837771b7722, Linux 86da7efd12295a7e2b4abde5e5984c821edd938f, Linux 0c728083654f0066f5e10a1d2b0bd0907af19a58

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-23038 being exploited?

There is no confirmed exploitation: CVE-2026-23038 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-23038?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-23038?

Linux \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< e2dde5dafb80f1af4028ed10ad255f42af71c784; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 27c90d8ed81e7a289c9fe41b5e31d8bb609a3385; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 34b9dd179818ff7af2b36410985fd8166573c62d; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 869862056e100973e76ce9f5f1b01837771b7722; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 86da7efd12295a7e2b4abde5e5984c821edd938f; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb; \>= d67ae825a59d639e4d8b82413af84d854617a87e, \< 0c728083654f0066f5e10a1d2b0bd0907af19a58; Linux 4.0.

### Is there a fix for CVE-2026-23038?

Yes. Fixed in Linux 27c90d8ed81e7a289c9fe41b5e31d8bb609a3385, Linux 34b9dd179818ff7af2b36410985fd8166573c62d, Linux 869862056e100973e76ce9f5f1b01837771b7722, Linux 86da7efd12295a7e2b4abde5e5984c821edd938f, Linux 0c728083654f0066f5e10a1d2b0bd0907af19a58. Upgrade Linux to 0c728083654f0066f5e10a1d2b0bd0907af19a58 or later.

### How do I check if I'm affected by CVE-2026-23038?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/e2dde5dafb80f1af4028ed10ad255f42af71c784>
- other: <https://git.kernel.org/stable/c/27c90d8ed81e7a289c9fe41b5e31d8bb609a3385>
- other: <https://git.kernel.org/stable/c/34b9dd179818ff7af2b36410985fd8166573c62d>
- other: <https://git.kernel.org/stable/c/869862056e100973e76ce9f5f1b01837771b7722>
- other: <https://git.kernel.org/stable/c/86da7efd12295a7e2b4abde5e5984c821edd938f>
- other: <https://git.kernel.org/stable/c/ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb>
- other: <https://git.kernel.org/stable/c/0c728083654f0066f5e10a1d2b0bd0907af19a58>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-253495.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-23038>

HTML: <https://flawdb.com/CVE-2026-23038> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-23038>
