Skip to content
Heist/ feed
High

nilfs2: do not force clear folio if buffer is referenced

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: nilfs2: do not force clear folio if buffer is referenced Patch series "nilfs2: protect busy buffer heads from being force-cleared". This series fixes the buffer head state inconsistency issues reported by syzbot that occurs when the filesystem is corrupted and falls back to read-only, and the associated buffer head use-after-free issue. This patch (of 2): Syzbot has reported that after nilfs2 detects filesystem corruption and falls back to read-only, inconsistencies in the buffer state may occur. One of the inconsistencies is that when nilfs2 calls mark_buffer_dirty() to set a data or metadata buffer as dirty, but it detects that the buffer is not in the uptodate state: WARNING: CPU: 0 PID: 6049 at fs/buffer.c:1177 mark_buffer_dirty+0x2e5/0x520 fs/buffer.c:1177 ... Call Trace: nilfs_palloc_commit_alloc_entry+0x4b/0x160 fs/nilfs2/alloc.c:598 nilfs_ifile_create_inode+0x1dd/0x3a0 fs/nilfs2/ifile.c:73 nilfs_new_inode+0x254/0x830 fs/nilfs2/inode.c:344 nilfs_mkdir+0x10d/0x340 fs/nilfs2/namei.c:218 vfs_mkdir+0x2f9/0x4f0 fs/namei.c:4257 do_mkdirat+0x264/0x3a0 fs/namei.c:4280 __do_sys_mkdirat fs/namei.c:4295 [inline] __se_sys_mkdirat fs/namei.c:4293 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4293 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The other is when nilfs_btree_propagate(), which propagates the dirty state

Announced Group revision 1
Original source ↗

CVE-2025-21722

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-21722

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "8c26c4e2694a163d525976e804d81cd955bbb40c",
        "lessThan": "7d0544bacc11d6aa26ecd7debf9353193c7a3328",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "8c26c4e2694a163d525976e804d81cd955bbb40c",
        "lessThan": "4d042811c72f71be7c14726db2c72b67025a7cb5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "8c26c4e2694a163d525976e804d81cd955bbb40c",
        "lessThan": "f51ff43c4c5a6c8e72d0aca89e4d5e688938412f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "8c26c4e2694a163d525976e804d81cd955bbb40c",
        "lessThan": "19296737024cd220a1d6590bf4c092bca8c99497",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "8c26c4e2694a163d525976e804d81cd955bbb40c",
        "lessThan": "8458c686d50a804611b97038dd6e75a474ac2221",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "8c26c4e2694a163d525976e804d81cd955bbb40c",
        "lessThan": "1098bb8d52419d262a3358d099a1598a920b730f",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "8c26c4e2694a163d525976e804d81cd955bbb40c",
        "lessThan": "557ccf5e49f1fb848a29698585bcab2e50a597ef",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "8c26c4e2694a163d525976e804d81cd955bbb40c",
        "lessThan": "ca76bb226bf47ff04c782cacbd299f12ddee1ec1",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/nilfs2/page.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "3.10"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "3.10",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.4.291",
        "versionType": "semver",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.235",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.179",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.129",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.13",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.13.2",
        "versionType": "semver",
        "lessThanOrEqual": "6.13.*"
      },
      {
        "status": "unaffected",
        "version": "6.14",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/nilfs2/page.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-21722

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#45942 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement