---
id: CVE-2025-21699
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  gfs2: Truncate address space when flipping GFS2_DIF_JDATA flag

  Truncate an inode's address space when flipping the GFS2_DIF_JDATA flag:
  depending on that flag, the pag…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  gfs2: Truncate address space when flipping GFS2_DIF_JDATA flag

  Truncate an inode's address space when flipping the GFS2_DIF_JDATA flag:
  depending on that flag, the pag…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
vendor: linux
product: linux_kernel
affected:
  - linux_kernel < 5.4.290
  - 'linux_kernel >= 5.5, < 5.10.234'
  - 'linux_kernel >= 5.11, < 5.15.178'
  - 'linux_kernel >= 5.16, < 6.1.128'
  - 'linux_kernel >= 6.2, < 6.6.75'
  - 'linux_kernel >= 6.7, < 6.12.12'
  - linux_kernel = 6.13
patched:
  - linux_kernel 6.12.12
published: '2025-02-12'
updated: '2026-07-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-21699'
references:
  - url: 'https://git.kernel.org/stable/c/2a40a140e11fec699e128170ccaa98b6b82cb503'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4516febe325342555bb09ca5b396fb816d655821'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4dd57d1f0e9844311c635a7fb39abce4f2ac5a61'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4e3ded34f3f3c9d7ed2aac7be8cf51153646574a'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/5bb1fd0855bb0abc7d97e44758d6ffed7882d2d0'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/7c9d9223802fbed4dee1ae301661bf346964c9d2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8c41abc11aa8438c9ed2d973f97e66674c0355df'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.0025
epssPercentile: 0.14523
ingestedAt: '2026-07-30T06:53:09.267Z'
---

## Overview

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

gfs2: Truncate address space when flipping GFS2_DIF_JDATA flag

Truncate an inode's address space when flipping the GFS2_DIF_JDATA flag:
depending on that flag, the pages in the address space will either use
buffer heads or iomap_folio_state structs, and we cannot mix the two.

## Affected

- `linux_kernel < 5.4.290`
- `linux_kernel >= 5.5, < 5.10.234`
- `linux_kernel >= 5.11, < 5.15.178`
- `linux_kernel >= 5.16, < 6.1.128`
- `linux_kernel >= 6.2, < 6.6.75`
- `linux_kernel >= 6.7, < 6.12.12`
- `linux_kernel = 6.13`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.12.12`
