---
id: CVE-2025-68349
title: 'NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid

  Fixes a crash when layout is null during this call stack:

  write_inode
      -> nfs4_write_ino…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a <
    084bebe82ad86f718a3af84f34761863e63164ed
  - >-
    Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a <
    b6e4e3a08c03200cc4b8067ec8ab3172a989d6fc
  - >-
    Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a <
    104080582ae0aa6dce6c6d75ff89062efe84673b
  - >-
    Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a <
    f718f9ea6094843b8c059b073af49ad61e9f49bb
  - >-
    Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a <
    59947dff0fb7c19c09ce6dccbcd253fd542b6c25
  - >-
    Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a <
    ca2e7fdad7c683b64821c94a58b9b68733214dad
  - >-
    Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a <
    38694f9aae00459ab443a7dc8b3949a6b33b560a
  - >-
    Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a <
    e0f8058f2cb56de0b7572f51cd563ca5debce746
  - Linux 4.10
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-06-16T19:27:27.700810Z'
published: '2025-12-24'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T08:43:14.323Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-68349'
references:
  - url: 'https://git.kernel.org/stable/c/084bebe82ad86f718a3af84f34761863e63164ed'
  - url: 'https://git.kernel.org/stable/c/b6e4e3a08c03200cc4b8067ec8ab3172a989d6fc'
  - url: 'https://git.kernel.org/stable/c/104080582ae0aa6dce6c6d75ff89062efe84673b'
  - url: 'https://git.kernel.org/stable/c/f718f9ea6094843b8c059b073af49ad61e9f49bb'
  - url: 'https://git.kernel.org/stable/c/59947dff0fb7c19c09ce6dccbcd253fd542b6c25'
  - url: 'https://git.kernel.org/stable/c/ca2e7fdad7c683b64821c94a58b9b68733214dad'
  - url: 'https://git.kernel.org/stable/c/38694f9aae00459ab443a7dc8b3949a6b33b560a'
  - url: 'https://git.kernel.org/stable/c/e0f8058f2cb56de0b7572f51cd563ca5debce746'
tags:
  - cve.org
epss: 0.00693
epssPercentile: 0.50863
ingestedAt: '2026-09-08T15:33:26.995Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

NFSv4/pNFS: Clear NFS_INO_LAYOUTCOMMIT in pnfs_mark_layout_stateid_invalid

Fixes a crash when layout is null during this call stack:

write_inode
    -> nfs4_write_inode
        -> pnfs_layoutcommit_inode

pnfs_set_layoutcommit relies on the lseg refcount to keep the layout
around. Need to clear NFS_INO_LAYOUTCOMMIT otherwise we might attempt
to reference a null layout.

## Affected

- `Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a < 084bebe82ad86f718a3af84f34761863e63164ed`
- `Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a < b6e4e3a08c03200cc4b8067ec8ab3172a989d6fc`
- `Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a < 104080582ae0aa6dce6c6d75ff89062efe84673b`
- `Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a < f718f9ea6094843b8c059b073af49ad61e9f49bb`
- `Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a < 59947dff0fb7c19c09ce6dccbcd253fd542b6c25`
- `Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a < ca2e7fdad7c683b64821c94a58b9b68733214dad`
- `Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a < 38694f9aae00459ab443a7dc8b3949a6b33b560a`
- `Linux >= fe1cf9469d7bcb6af27e42eb555a41b0135bce4a < e0f8058f2cb56de0b7572f51cd563ca5debce746`
- `Linux 4.10`

## Remediation

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