---
id: CVE-2026-23038
title: 'pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node()'
summary: |-
  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 o…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= d67ae825a59d639e4d8b82413af84d854617a87e <
    e2dde5dafb80f1af4028ed10ad255f42af71c784
  - >-
    Linux >= d67ae825a59d639e4d8b82413af84d854617a87e <
    27c90d8ed81e7a289c9fe41b5e31d8bb609a3385
  - >-
    Linux >= d67ae825a59d639e4d8b82413af84d854617a87e <
    34b9dd179818ff7af2b36410985fd8166573c62d
  - >-
    Linux >= d67ae825a59d639e4d8b82413af84d854617a87e <
    869862056e100973e76ce9f5f1b01837771b7722
  - >-
    Linux >= d67ae825a59d639e4d8b82413af84d854617a87e <
    86da7efd12295a7e2b4abde5e5984c821edd938f
  - >-
    Linux >= d67ae825a59d639e4d8b82413af84d854617a87e <
    ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb
  - >-
    Linux >= d67ae825a59d639e4d8b82413af84d854617a87e <
    0c728083654f0066f5e10a1d2b0bd0907af19a58
  - Linux 4.0
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-06-16T20:32:12.394629Z'
published: '2026-01-31'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T08:44:42.415Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-23038'
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'
tags:
  - cve.org
epss: 0.0026
epssPercentile: 0.15863
ingestedAt: '2026-09-08T15:33:26.994Z'
---

## Overview

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

- `Linux >= d67ae825a59d639e4d8b82413af84d854617a87e < e2dde5dafb80f1af4028ed10ad255f42af71c784`
- `Linux >= d67ae825a59d639e4d8b82413af84d854617a87e < 27c90d8ed81e7a289c9fe41b5e31d8bb609a3385`
- `Linux >= d67ae825a59d639e4d8b82413af84d854617a87e < 34b9dd179818ff7af2b36410985fd8166573c62d`
- `Linux >= d67ae825a59d639e4d8b82413af84d854617a87e < 869862056e100973e76ce9f5f1b01837771b7722`
- `Linux >= d67ae825a59d639e4d8b82413af84d854617a87e < 86da7efd12295a7e2b4abde5e5984c821edd938f`
- `Linux >= d67ae825a59d639e4d8b82413af84d854617a87e < ed5d3f2f6885eb99f729e6ffd946e3aa058bd3eb`
- `Linux >= d67ae825a59d639e4d8b82413af84d854617a87e < 0c728083654f0066f5e10a1d2b0bd0907af19a58`
- `Linux 4.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
