# CVE-2025-23150: ext4: fix off-by-one error in do\_split

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-193
- **Published:** 2025-05-01T12:55:38.190Z
- **Modified:** 2026-08-05T11:57:03.997Z

## Who should check

- Anyone running Linux \>= ea54176e5821936d109bb45dc2c19bd53559e735, \< b96bd2c3db26ad0daec5b78c85c098b53900e2e1; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 515c34cff899eb5dae6aa7eee01c1295b07d81af; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 2883e9e74f73f9265e5f8d1aaaa89034b308e433; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 35d0aa6db9d93307085871ceab8a729594a98162; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 2eeb1085bf7bd5c7ba796ca4119925fa5d336a3f; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 16d9067f00e3a7d1df7c3aa9c20d214923d27e10; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 17df39f455f1289319d4d09e4826aa46852ffd17; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< ab0cc5c25552ae0d20eae94b40a93be11b080fc5; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 94824ac9a8aaf2fb3c54b4bdde842db80ffa555d; 059b1480105478c5f68cf664301545b8cad6a7cf; …
- Anyone running Linux 5.9

## Description

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

ext4: fix off-by-one error in do\_split

Syzkaller detected a use-after-free issue in ext4\_insert\_dentry that was
caused by out-of-bounds access due to incorrect splitting in do\_split.

BUG: KASAN: use-after-free in ext4\_insert\_dentry+0x36a/0x6d0 fs/ext4/namei.c:2109
Write of size 251 at addr ffff888074572f14 by task syz-executor335/5847

CPU: 0 UID: 0 PID: 5847 Comm: syz-executor335 Not tainted 6.12.0-rc6-syzkaller-00318-ga9cda7c0ffed \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:94 \[inline\]
 dump\_stack\_lvl+0x241/0x360 lib/dump\_stack.c:120
 print\_address\_description mm/kasan/report.c:377 \[inline\]
 print\_report+0x169/0x550 mm/kasan/report.c:488
 kasan\_report+0x143/0x180 mm/kasan/report.c:601
 kasan\_check\_range+0x282/0x290 mm/kasan/generic.c:189
 \_\_asan\_memcpy+0x40/0x70 mm/kasan/shadow.c:106
 ext4\_insert\_dentry+0x36a/0x6d0 fs/ext4/namei.c:2109
 add\_dirent\_to\_buf+0x3d9/0x750 fs/ext4/namei.c:2154
 make\_indexed\_dir+0xf98/0x1600 fs/ext4/namei.c:2351
 ext4\_add\_entry+0x222a/0x25d0 fs/ext4/namei.c:2455
 ext4\_add\_nondir+0x8d/0x290 fs/ext4/namei.c:2796
 ext4\_symlink+0x920/0xb50 fs/ext4/namei.c:3431
 vfs\_symlink+0x137/0x2e0 fs/namei.c:4615
 do\_symlinkat+0x222/0x3a0 fs/namei.c:4641
 \_\_do\_sys\_symlink fs/namei.c:4662 \[inline\]
 \_\_se\_sys\_symlink fs/namei.c:4660 \[inline\]
 \_\_x64\_sys\_symlink+0x7a/0x90 fs/namei.c:4660
 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
 \</TASK\>

The following loop is located right above 'if' statement.

for (i = count-1; i \>= 0; i--) {
	/\* is more than half of this entry in 2nd half of the block? \*/
	if (size + map\[i\].size/2 \> blocksize/2)
		break;
	size += map\[i\].size;
	move++;
}

'i' in this case could go down to -1, in which case sum of active entries
wouldn't exceed half the block size, but previous behaviour would also do
split in half if sum would exceed at the very last block, which in case of
having too many long name files in a single block could lead to
out-of-bounds access and following use-after-free.

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

## Affected and fixed versions

- Linux: \>= ea54176e5821936d109bb45dc2c19bd53559e735, \< b96bd2c3db26ad0daec5b78c85c098b53900e2e1; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 515c34cff899eb5dae6aa7eee01c1295b07d81af; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 2883e9e74f73f9265e5f8d1aaaa89034b308e433; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 35d0aa6db9d93307085871ceab8a729594a98162; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 2eeb1085bf7bd5c7ba796ca4119925fa5d336a3f; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 16d9067f00e3a7d1df7c3aa9c20d214923d27e10; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 17df39f455f1289319d4d09e4826aa46852ffd17; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< ab0cc5c25552ae0d20eae94b40a93be11b080fc5; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 94824ac9a8aaf2fb3c54b4bdde842db80ffa555d; 059b1480105478c5f68cf664301545b8cad6a7cf; … (cvelist)
- Linux: 5.9 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-23150. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-23150.md
Affected: Linux >= ea54176e5821936d109bb45dc2c19bd53559e735, < b96bd2c3db26ad0daec5b78c85c098b53900e2e1; >= 5872331b3d91820e14716632ebb56b1399b34fe1, < 515c34cff899eb5dae6aa7eee01c1295b07d81af; >= 5872331b3d91820e14716632ebb56b1399b34fe1, < 2883e9e74f73f9265e5f8d1aaaa89034b308e433; >= 5872331b3d91820e1471663…
Fixed in: Linux 515c34cff899eb5dae6aa7eee01c1295b07d81af, Linux 2883e9e74f73f9265e5f8d1aaaa89034b308e433, Linux 35d0aa6db9d93307085871ceab8a729594a98162, Linux 2eeb1085bf7bd5c7ba796ca4119925fa5d336a3f, Linux 16d9067f00e3a7d1df7c3aa9c20d214923d27e10, Linux 17df39f455f1289319d4d09e4826aa46852ffd17, Linux 94824…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-23150 being exploited?

There is no confirmed exploitation: CVE-2025-23150 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-23150?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-23150?

Linux \>= ea54176e5821936d109bb45dc2c19bd53559e735, \< b96bd2c3db26ad0daec5b78c85c098b53900e2e1; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 515c34cff899eb5dae6aa7eee01c1295b07d81af; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 2883e9e74f73f9265e5f8d1aaaa89034b308e433; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 35d0aa6db9d93307085871ceab8a729594a98162; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 2eeb1085bf7bd5c7ba796ca4119925fa5d336a3f; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 16d9067f00e3a7d1df7c3aa9c20d214923d27e10; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 17df39f455f1289319d4d09e4826aa46852ffd17; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< ab0cc5c25552ae0d20eae94b40a93be11b080fc5; \>= 5872331b3d91820e14716632ebb56b1399b34fe1, \< 94824ac9a8aaf2fb3c54b4bdde842db80ffa555d; 059b1480105478c5f68cf664301545b8cad6a7cf; …; Linux 5.9.

### Is there a fix for CVE-2025-23150?

Yes. Fixed in Linux 515c34cff899eb5dae6aa7eee01c1295b07d81af, Linux 2883e9e74f73f9265e5f8d1aaaa89034b308e433, Linux 35d0aa6db9d93307085871ceab8a729594a98162, Linux 2eeb1085bf7bd5c7ba796ca4119925fa5d336a3f, Linux 16d9067f00e3a7d1df7c3aa9c20d214923d27e10, Linux 17df39f455f1289319d4d09e4826aa46852ffd17, Linux 94824ac9a8aaf2fb3c54b4bdde842db80ffa555d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-23150?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b96bd2c3db26ad0daec5b78c85c098b53900e2e1>
- patch: <https://git.kernel.org/stable/c/515c34cff899eb5dae6aa7eee01c1295b07d81af>
- patch: <https://git.kernel.org/stable/c/2883e9e74f73f9265e5f8d1aaaa89034b308e433>
- patch: <https://git.kernel.org/stable/c/35d0aa6db9d93307085871ceab8a729594a98162>
- patch: <https://git.kernel.org/stable/c/2eeb1085bf7bd5c7ba796ca4119925fa5d336a3f>
- patch: <https://git.kernel.org/stable/c/16d9067f00e3a7d1df7c3aa9c20d214923d27e10>
- patch: <https://git.kernel.org/stable/c/17df39f455f1289319d4d09e4826aa46852ffd17>
- patch: <https://git.kernel.org/stable/c/ab0cc5c25552ae0d20eae94b40a93be11b080fc5>
- patch: <https://git.kernel.org/stable/c/94824ac9a8aaf2fb3c54b4bdde842db80ffa555d>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-23150>

HTML: <https://flawdb.com/CVE-2025-23150> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-23150>
