{
  "id": "CVE-2026-31448",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-31448",
  "published_at": "2026-04-22T13:53:44.129Z",
  "title": "ext4: avoid infinite loops caused by residual data",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 9.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\next4: avoid infinite loops caused by residual data\n\nOn the mkdir/mknod path, when mapping logical blocks to physical blocks,\nif inserting a new extent into the extent tree fails (in this example,\nbecause the file system disabled the huge file feature when marking the\ninode as dirty), ext4_ext_map_blocks() only calls ext4_free_blocks() to\nreclaim the physical block without deleting the corresponding data in\nthe extent tree. This causes subsequent mkdir operations to reference\nthe previously reclaimed physical block number again, even though this\nphysical block is already being used by the xattr block. Therefore, a\nsituation arises where both the directory and xattr are using the same\nbuffer head block in memory simultaneously.\n\nThe above causes ext4_xattr_block_set() to enter an infinite loop about\n\"inserted\" and cannot release the inode lock, ultimately leading to the\n143s blocking problem mentioned in [1].\n\nIf the metadata is corrupted, then trying to remove some extent space\ncan do even more harm. Also in case EXT4_GET_BLOCKS_DELALLOC_RESERVE\nwas passed, remove space wrongly update quota information.\nJan Kara suggests distinguishing between two cases:\n\n1) The error is ENOSPC or EDQUOT - in this case the filesystem is fully\nconsistent and we must maintain its consistency including all the\naccounting. However these errors can happen only early before we've\ninserted the extent into the extent tree. So current code works correctly\nfor this case.\n\n2) Some other error - this means metadata is corrupted. We should strive to\ndo as few modifications as possible to limit damage. So I'd just skip\nfreeing of allocated blocks.\n\n[1]\nINFO: task syz.0.17:5995 blocked for more than 143 seconds.\nCall Trace:\n inode_lock_nested include/linux/fs.h:1073 [inline]\n __start_dirop fs/namei.c:2923 [inline]\n start_dirop fs/namei.c:2934 [inline]",
  "cwe": "CWE-835",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.22:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.22:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.22:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.22:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.22:rc7:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 315054f023d28ee64f308adf8b5737831541776b, \u003c c66545e83a802c3851d9be27a41c0479dd29ff0c",
          "\u003e= 315054f023d28ee64f308adf8b5737831541776b, \u003c ecc50bfca9b5c2ee6aeef998181689b80477367b",
          "\u003e= 315054f023d28ee64f308adf8b5737831541776b, \u003c 3a7667595bcad84da53fc156a418e110267c3412",
          "\u003e= 315054f023d28ee64f308adf8b5737831541776b, \u003c 416c86f30f91b4fb2642ef6b102596ca898f41a5",
          "\u003e= 315054f023d28ee64f308adf8b5737831541776b, \u003c 64f425b06b3bea9abc8977fd3982779b3ad070c9",
          "\u003e= 315054f023d28ee64f308adf8b5737831541776b, \u003c 5422fe71d26d42af6c454ca9527faaad4e677d6c"
        ],
        "fixed_in": [
          "c66545e83a802c3851d9be27a41c0479dd29ff0c",
          "ecc50bfca9b5c2ee6aeef998181689b80477367b",
          "3a7667595bcad84da53fc156a418e110267c3412",
          "416c86f30f91b4fb2642ef6b102596ca898f41a5",
          "64f425b06b3bea9abc8977fd3982779b3ad070c9",
          "5422fe71d26d42af6c454ca9527faaad4e677d6c"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "2.6.22"
        ],
        "fixed_in": [
          "0",
          "6.1.168",
          "6.6.131",
          "6.12.80",
          "6.18.21",
          "6.19.11",
          "7.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to c66545e83a802c3851d9be27a41c0479dd29ff0c or ecc50bfca9b5c2ee6aeef998181689b80477367b or 3a7667595bcad84da53fc156a418e110267c3412 or 416c86f30f91b4fb2642ef6b102596ca898f41a5 or 64f425b06b3bea9abc8977fd3982779b3ad070c9 or 5422fe71d26d42af6c454ca9527faaad4e677d6c or later.",
      "Upgrade Linux to 0 or 6.1.168 or 6.6.131 or 6.12.80 or 6.18.21 or 6.19.11 or 7.0 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
