{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99680",
  "modified": "2026-11-24T05:30:02Z",
  "upstream": [
    "CVE-2026-99680"
  ],
  "published": "2026-11-20T05:52:17Z",
  "summary": "xfs: mark the inode preallocated for pNFS write layouts past EOF",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nxfs: mark the inode preallocated for pNFS write layouts past EOF\n\nxfs_fs_map_blocks() marks the inode XFS_DIFLAG_PREALLOC only when it\nallocates blocks for a write layout. A write layout past EOF can also\nhand out allocated blocks, such as speculative preallocation. blockgc\nthen frees them under the layout, and another file may get them.\n\nMark the inode whenever a write mapping ends past EOF.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.193",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99680"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/7d59e72920deab04fda0741b1ab7efe06308e29c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/82724abee43e41a42c6aa34acfc35ca532c06809"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/760756e136db8e4d9fd7dce0bccb2593c97d326f"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/12fc4f754c4caa1fe6651b6bd5a9994cae5a4089"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/fea6d9e15570eeb41c9e01f22f45a8498d9fe200"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ff7646096b6ed2ad415258bfbfb07fa6204698dc"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2748b9277ff5e35e222b6c4d46a8285e3cf6051d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/8b8e265991556d99b6d721697f148975a7c68767"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-11-23T08:12:11Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 9.4,
      "cvss_v3_severity": "Critical",
      "scenario": "AV:N - An NFSv4.1 OP_LAYOUTGET with layout type LAYOUT_BLOCK_VOLUME or LAYOUT_SCSI, iomode IOMODE_RW, and loga_offset past EOF is handled by nfsd4_layoutget, nfsd4_block_proc_layoutget, nfsd4_block_map_extent, then xfs_fs_map_blocks, which returns already-allocated post-EOF blocks and leaves XFS_DIFLAG_PREALLOC clear. The client then reads or writes those blocks after xfs_free_eofblocks reassigns them.\nAC:L - The client builds the post-EOF extent: an NFS WRITE above the allocsize threshold makes xfs_iomap_prealloc_size reserve a delalloc tail, and filemap_write_and_wait in xfs_fs_map_blocks converts it with xfs_bmapi_convert_one_delalloc. Default xfs_blockgc_worker (blockgc_timer 300s) then calls xfs_free_eofblocks with no break_layout; the client waits for that scan or forces it via the ENOSPC path in xfs_file_buffered_write.\nPR:N - IOMODE_RW only adds NFSD_MAY_WRITE in nfsd4_layoutget before fh_verify. On AUTH_SYS, svcauth_unix_accept copies the caller-supplied uid into cr_uid and checks no secret, so a client asserts any uid that can write the file and reaches xfs_fs_map_blocks.\nUI:N - The same client sends the WRITE that creates the speculative tail and the LAYOUTGET that maps it; no other user must mount an image or open the file.\nS:U - The freed blocks are reused by another inode on the same XFS mount that handed out the layout, so the impact stays inside that host's filesystem authority.\nC:H - xfs_free_eofblocks unmaps the extent while the layout still returns its physical address as bex->soff (iomap.addr) with PNFS_BLOCK_READWRITE_DATA or PNFS_BLOCK_INVALID_DATA, so the client can read the bytes of whichever inode is allocated those blocks.\nI:H - That READWRITE or INVALID_DATA layout lets the client overwrite the same blocks after another inode owns them, replacing that file's data.\nA:L - Only the recycled file extent is lost. xfs_fs_map_blocks and xfs_free_eofblocks complete without an oops, hang, or xfs_force_shutdown."
    }
  }
}
