{
  "cveId": "CVE-2025-22127",
  "url": "https://patchblox.com/security/cve/CVE-2025-22127",
  "summary": "CVE-2025-22127 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2025-22127, released April 16, 2025. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  f2fs: fix potential deadloop in prepare_compress...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  f2fs: fix potential deadloop in prepare_compress_overwrite()  Jan Prusakowski reported a kernel hang issue as below:  When running xfstests on linux-next kernel (6.14.0-rc3, 6.12) I encountered a problem in generic/475 test where fsstress process gets blocked in __f2fs_write_data_pages() and the test hangs. The options I used are:  MKFS_OPTIONS  -- -O compression -O extra_attr -O project_quota -O quota /dev/vdc MOUNT_OPTIONS -- -o acl,user_xattr -o discard,compress_extension=* /dev/vdc /vdc  INFO: task kworker/u8:0:11 blocked for more than 122 seconds.       Not tainted 6.14.0-rc3-xfstests-lockdep #1 \u0022echo 0 \u003E /proc/sys/kernel/hung_task_timeout_secs\u0022 disables this message. task:kworker/u8:0    state:D stack:0     pid:11    tgid:11    ppid:2      task_flags:0x4208160 flags:0x00004000 Workqueue: writeback wb_workfn (flush-253:0) Call Trace:  \u003CTASK\u003E  __schedule\u002B0x309/0x8e0  schedule\u002B0x3a/0x100  schedule_preempt_disabled\u002B0x15/0x30  __mutex_lock\u002B0x59a/0xdb0  __f2fs_write_data_pages\u002B0x3ac/0x400  do_writepages\u002B0xe8/0x290  __writeback_single_inode\u002B0x5c/0x360  writeback_sb_inodes\u002B0x22f/0x570  wb_writeback\u002B0xb0/0x410  wb_do_writeback\u002B0x47/0x2f0  wb_workfn\u002B0x5a/0x1c0  process_one_work\u002B0x223/0x5b0  worker_thread\u002B0x1d5/0x3c0  kthread\u002B0xfd/0x230  ret_from_fork\u002B0x31/0x50  ret_from_fork_asm\u002B0x1a/0x30  \u003C/TASK\u003E  The root cause is: once generic/475 starts toload error table to dm device, f2fs_prepare_compress_overwrite() will loop reading compressed cluster pages due to IO error, meanwhile it has held .writepages lock, it can block all other writeback tasks.  Let\u0027s fix this issue w/ below changes: - add f2fs_handle_page_eio() in prepare_compress_overwrite() to detect IO error. - detect cp_error earler in f2fs_read_multi_pages().",
  "published": "2025-04-16T15:16:06Z",
  "severity": "medium",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "epss": 0.00189,
  "epssPercentile": 0.08617,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.12.111-1",
      "fix": "DEBIAN-CVE-2025-22127",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-22127",
      "released": "2025-04-16T15:16:06Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.16.3-1",
      "fix": "DEBIAN-CVE-2025-22127",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-22127",
      "released": "2025-04-16T15:16:06Z"
    },
    {
      "platform": "linux",
      "product": "linux-6.12",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "6.12.111-1~deb12u1",
      "fix": "DEBIAN-CVE-2025-22127",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2025-22127",
      "released": "2025-04-16T15:16:06Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-09T01:18:40Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}