{
  "id": "CVE-2025-23150",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-23150",
  "published_at": "2025-05-01T12:55:38.19Z",
  "title": "ext4: fix off-by-one error in do_split",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/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: fix off-by-one error in do_split\n\nSyzkaller detected a use-after-free issue in ext4_insert_dentry that was\ncaused by out-of-bounds access due to incorrect splitting in do_split.\n\nBUG: KASAN: use-after-free in ext4_insert_dentry+0x36a/0x6d0 fs/ext4/namei.c:2109\nWrite of size 251 at addr ffff888074572f14 by task syz-executor335/5847\n\nCPU: 0 UID: 0 PID: 5847 Comm: syz-executor335 Not tainted 6.12.0-rc6-syzkaller-00318-ga9cda7c0ffed #0\nHardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024\nCall Trace:\n \u003cTASK\u003e\n __dump_stack lib/dump_stack.c:94 [inline]\n dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120\n print_address_description mm/kasan/report.c:377 [inline]\n print_report+0x169/0x550 mm/kasan/report.c:488\n kasan_report+0x143/0x180 mm/kasan/report.c:601\n kasan_check_range+0x282/0x290 mm/kasan/generic.c:189\n __asan_memcpy+0x40/0x70 mm/kasan/shadow.c:106\n ext4_insert_dentry+0x36a/0x6d0 fs/ext4/namei.c:2109\n add_dirent_to_buf+0x3d9/0x750 fs/ext4/namei.c:2154\n make_indexed_dir+0xf98/0x1600 fs/ext4/namei.c:2351\n ext4_add_entry+0x222a/0x25d0 fs/ext4/namei.c:2455\n ext4_add_nondir+0x8d/0x290 fs/ext4/namei.c:2796\n ext4_symlink+0x920/0xb50 fs/ext4/namei.c:3431\n vfs_symlink+0x137/0x2e0 fs/namei.c:4615\n do_symlinkat+0x222/0x3a0 fs/namei.c:4641\n __do_sys_symlink fs/namei.c:4662 [inline]\n __se_sys_symlink fs/namei.c:4660 [inline]\n __x64_sys_symlink+0x7a/0x90 fs/namei.c:4660\n do_syscall_x64 arch/x86/entry/common.c:52 [inline]\n do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n \u003c/TASK\u003e\n\nThe following loop is located right above 'if' statement.\n\nfor (i = count-1; i \u003e= 0; i--) {\n\t/* is more than half of this entry in 2nd half of the block? */\n\tif (size + map[i].size/2 \u003e blocksize/2)\n\t\tbreak;\n\tsize += map[i].size;\n\tmove++;\n}\n\n'i' in this case could go down to -1, in which case sum of active entries\nwouldn't exceed half the block size, but previous behaviour would also do\nsplit in half if sum would exceed at the very last block, which in case of\nhaving too many long name files in a single block could lead to\nout-of-bounds access and following use-after-free.\n\nFound by Linux Verification Center (linuxtesting.org) with Syzkaller.",
  "cwe": "CWE-193",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc7:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.9:rc8:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= ea54176e5821936d109bb45dc2c19bd53559e735, \u003c b96bd2c3db26ad0daec5b78c85c098b53900e2e1",
          "\u003e= 5872331b3d91820e14716632ebb56b1399b34fe1, \u003c 515c34cff899eb5dae6aa7eee01c1295b07d81af",
          "\u003e= 5872331b3d91820e14716632ebb56b1399b34fe1, \u003c 2883e9e74f73f9265e5f8d1aaaa89034b308e433",
          "\u003e= 5872331b3d91820e14716632ebb56b1399b34fe1, \u003c 35d0aa6db9d93307085871ceab8a729594a98162",
          "\u003e= 5872331b3d91820e14716632ebb56b1399b34fe1, \u003c 2eeb1085bf7bd5c7ba796ca4119925fa5d336a3f",
          "\u003e= 5872331b3d91820e14716632ebb56b1399b34fe1, \u003c 16d9067f00e3a7d1df7c3aa9c20d214923d27e10",
          "\u003e= 5872331b3d91820e14716632ebb56b1399b34fe1, \u003c 17df39f455f1289319d4d09e4826aa46852ffd17",
          "\u003e= 5872331b3d91820e14716632ebb56b1399b34fe1, \u003c ab0cc5c25552ae0d20eae94b40a93be11b080fc5",
          "\u003e= 5872331b3d91820e14716632ebb56b1399b34fe1, \u003c 94824ac9a8aaf2fb3c54b4bdde842db80ffa555d",
          "059b1480105478c5f68cf664301545b8cad6a7cf",
          "539ae3e03875dacaa9c388aff141ccbb4ef4ecb5",
          "fbbfd55a40d5d0806b59ee0403c75d5ac517533f",
          "b3ddf6ba5e28a57729fff1605ae08e21be5c92e3",
          "e50fe43e3062e18846e99d9646b9c07b097eb1ed",
          "88e79f7a9841278fa8ff7ff6178bad12da002ffc",
          "\u003e= 5.4.61, \u003c 5.4.293",
          "\u003e= 4.4.234, \u003c 4.5",
          "\u003e= 4.9.234, \u003c 4.10",
          "\u003e= 4.14.195, \u003c 4.15",
          "\u003e= 4.19.142, \u003c 4.20",
          "\u003e= 5.7.18, \u003c 5.8",
          "\u003e= 5.8.4, \u003c 5.9"
        ],
        "fixed_in": [
          "b96bd2c3db26ad0daec5b78c85c098b53900e2e1",
          "515c34cff899eb5dae6aa7eee01c1295b07d81af",
          "2883e9e74f73f9265e5f8d1aaaa89034b308e433",
          "35d0aa6db9d93307085871ceab8a729594a98162",
          "2eeb1085bf7bd5c7ba796ca4119925fa5d336a3f",
          "16d9067f00e3a7d1df7c3aa9c20d214923d27e10",
          "17df39f455f1289319d4d09e4826aa46852ffd17",
          "ab0cc5c25552ae0d20eae94b40a93be11b080fc5",
          "94824ac9a8aaf2fb3c54b4bdde842db80ffa555d",
          "5.4.293",
          "4.5",
          "4.10",
          "4.15",
          "4.20",
          "5.8",
          "5.9"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.9"
        ],
        "fixed_in": [
          "0",
          "5.4.293",
          "5.10.237",
          "5.15.181",
          "6.1.135",
          "6.6.88",
          "6.12.24",
          "6.13.12",
          "6.14.3",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to b96bd2c3db26ad0daec5b78c85c098b53900e2e1 or 515c34cff899eb5dae6aa7eee01c1295b07d81af or 2883e9e74f73f9265e5f8d1aaaa89034b308e433 or 35d0aa6db9d93307085871ceab8a729594a98162 or 2eeb1085bf7bd5c7ba796ca4119925fa5d336a3f or 16d9067f00e3a7d1df7c3aa9c20d214923d27e10 or 17df39f455f1289319d4d09e4826aa46852ffd17 or ab0cc5c25552ae0d20eae94b40a93be11b080fc5 or 94824ac9a8aaf2fb3c54b4bdde842db80ffa555d or 5.4.293 or 4.5 or 4.10 or 4.15 or 4.20 or 5.8 or 5.9 or later.",
      "Upgrade Linux to 0 or 5.4.293 or 5.10.237 or 5.15.181 or 6.1.135 or 6.6.88 or 6.12.24 or 6.13.12 or 6.14.3 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
