# CVE-2023-53317: ext4: fix WARNING in mb\_find\_extent

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-09-16T16:11:53.877Z
- **Modified:** 2026-06-17T06:44:52.243Z

## Who should check

- Anyone running Linux \>= abcb2947c91130426539f209f7a473a67a1f6663, \< 775b00ba23f6f916fe2ac60c5ff7fd0fe4f28d0d; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< 1b90fbc7590124c57a2e590de7fd07eba26606f1; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< 5d356d902e9d5b1aaaaf2326d365340fa8a90c1b; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< d55e76e11592a1d18a179c7fd34ca1b52632beb3; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< dba62fa84a8eac44a53a2862de8a40e5bdfa0ae3; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< e4d503c956a744cb59e509ca5f134cfad423c7a3; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< dd45e536f47a82e0a405f9a4b6c7ceb367171ee9; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< fa08a7b61dff8a4df11ff1e84abfc214b487caf7
- Anyone running Linux 2.6.25

## Description

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

ext4: fix WARNING in mb\_find\_extent

Syzbot found the following issue:

EXT4-fs: Warning: mounting with data=journal disables delayed allocation, dioread\_nolock, O\_DIRECT and fast\_commit support!
EXT4-fs (loop0): orphan cleanup on readonly fs
------------\[ cut here \]------------
WARNING: CPU: 1 PID: 5067 at fs/ext4/mballoc.c:1869 mb\_find\_extent+0x8a1/0xe30
Modules linked in:
CPU: 1 PID: 5067 Comm: syz-executor307 Not tainted 6.2.0-rc1-syzkaller \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:mb\_find\_extent+0x8a1/0xe30 fs/ext4/mballoc.c:1869
RSP: 0018:ffffc90003c9e098 EFLAGS: 00010293
RAX: ffffffff82405731 RBX: 0000000000000041 RCX: ffff8880783457c0
RDX: 0000000000000000 RSI: 0000000000000041 RDI: 0000000000000040
RBP: 0000000000000040 R08: ffffffff82405723 R09: ffffed10053c9402
R10: ffffed10053c9402 R11: 1ffff110053c9401 R12: 0000000000000000
R13: ffffc90003c9e538 R14: dffffc0000000000 R15: ffffc90003c9e2cc
FS:  0000555556665300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056312f6796f8 CR3: 0000000022437000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 ext4\_mb\_complex\_scan\_group+0x353/0x1100 fs/ext4/mballoc.c:2307
 ext4\_mb\_regular\_allocator+0x1533/0x3860 fs/ext4/mballoc.c:2735
 ext4\_mb\_new\_blocks+0xddf/0x3db0 fs/ext4/mballoc.c:5605
 ext4\_ext\_map\_blocks+0x1868/0x6880 fs/ext4/extents.c:4286
 ext4\_map\_blocks+0xa49/0x1cc0 fs/ext4/inode.c:651
 ext4\_getblk+0x1b9/0x770 fs/ext4/inode.c:864
 ext4\_bread+0x2a/0x170 fs/ext4/inode.c:920
 ext4\_quota\_write+0x225/0x570 fs/ext4/super.c:7105
 write\_blk fs/quota/quota\_tree.c:64 \[inline\]
 get\_free\_dqblk+0x34a/0x6d0 fs/quota/quota\_tree.c:130
 do\_insert\_tree+0x26b/0x1aa0 fs/quota/quota\_tree.c:340
 do\_insert\_tree+0x722/0x1aa0 fs/quota/quota\_tree.c:375
 do\_insert\_tree+0x722/0x1aa0 fs/quota/quota\_tree.c:375
 do\_insert\_tree+0x722/0x1aa0 fs/quota/quota\_tree.c:375
 dq\_insert\_tree fs/quota/quota\_tree.c:401 \[inline\]
 qtree\_write\_dquot+0x3b6/0x530 fs/quota/quota\_tree.c:420
 v2\_write\_dquot+0x11b/0x190 fs/quota/quota\_v2.c:358
 dquot\_acquire+0x348/0x670 fs/quota/dquot.c:444
 ext4\_acquire\_dquot+0x2dc/0x400 fs/ext4/super.c:6740
 dqget+0x999/0xdc0 fs/quota/dquot.c:914
 \_\_dquot\_initialize+0x3d0/0xcf0 fs/quota/dquot.c:1492
 ext4\_process\_orphan+0x57/0x2d0 fs/ext4/orphan.c:329
 ext4\_orphan\_cleanup+0xb60/0x1340 fs/ext4/orphan.c:474
 \_\_ext4\_fill\_super fs/ext4/super.c:5516 \[inline\]
 ext4\_fill\_super+0x81cd/0x8700 fs/ext4/super.c:5644
 get\_tree\_bdev+0x400/0x620 fs/super.c:1282
 vfs\_get\_tree+0x88/0x270 fs/super.c:1489
 do\_new\_mount+0x289/0xad0 fs/namespace.c:3145
 do\_mount fs/namespace.c:3488 \[inline\]
 \_\_do\_sys\_mount fs/namespace.c:3697 \[inline\]
 \_\_se\_sys\_mount+0x2d3/0x3c0 fs/namespace.c:3674
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

Add some debug information:
mb\_find\_extent: mb\_find\_extent block=41, order=0 needed=64 next=0 ex=0/41/1@3735929054 64 64 7
block\_bitmap: ff 3f 0c 00 fc 01 00 00 d2 3d 00 00 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

Acctually, blocks per group is 64, but block bitmap indicate at least has
128 blocks. Now, ext4\_validate\_block\_bitmap() didn't check invalid block's
bitmap if set.
To resolve above issue, add check like fsck "Padding at end of block bitmap is
not set".

## Affected and fixed versions

- Linux: \>= abcb2947c91130426539f209f7a473a67a1f6663, \< 775b00ba23f6f916fe2ac60c5ff7fd0fe4f28d0d; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< 1b90fbc7590124c57a2e590de7fd07eba26606f1; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< 5d356d902e9d5b1aaaaf2326d365340fa8a90c1b; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< d55e76e11592a1d18a179c7fd34ca1b52632beb3; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< dba62fa84a8eac44a53a2862de8a40e5bdfa0ae3; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< e4d503c956a744cb59e509ca5f134cfad423c7a3; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< dd45e536f47a82e0a405f9a4b6c7ceb367171ee9; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< fa08a7b61dff8a4df11ff1e84abfc214b487caf7 (cvelist)
- Linux: 2.6.25 (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-2023-53317. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53317.md
Affected: Linux >= abcb2947c91130426539f209f7a473a67a1f6663, < 775b00ba23f6f916fe2ac60c5ff7fd0fe4f28d0d; >= abcb2947c91130426539f209f7a473a67a1f6663, < 1b90fbc7590124c57a2e590de7fd07eba26606f1; >= abcb2947c91130426539f209f7a473a67a1f6663, < 5d356d902e9d5b1aaaaf2326d365340fa8a90c1b; >= abcb2947c91130426539f20…
Fixed in: Linux 775b00ba23f6f916fe2ac60c5ff7fd0fe4f28d0d, Linux 1b90fbc7590124c57a2e590de7fd07eba26606f1, Linux 5d356d902e9d5b1aaaaf2326d365340fa8a90c1b

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-2023-53317 being exploited?

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

### How serious is CVE-2023-53317?

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

### Which versions are affected by CVE-2023-53317?

Linux \>= abcb2947c91130426539f209f7a473a67a1f6663, \< 775b00ba23f6f916fe2ac60c5ff7fd0fe4f28d0d; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< 1b90fbc7590124c57a2e590de7fd07eba26606f1; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< 5d356d902e9d5b1aaaaf2326d365340fa8a90c1b; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< d55e76e11592a1d18a179c7fd34ca1b52632beb3; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< dba62fa84a8eac44a53a2862de8a40e5bdfa0ae3; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< e4d503c956a744cb59e509ca5f134cfad423c7a3; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< dd45e536f47a82e0a405f9a4b6c7ceb367171ee9; \>= abcb2947c91130426539f209f7a473a67a1f6663, \< fa08a7b61dff8a4df11ff1e84abfc214b487caf7; Linux 2.6.25.

### Is there a fix for CVE-2023-53317?

Yes. Fixed in Linux 775b00ba23f6f916fe2ac60c5ff7fd0fe4f28d0d, Linux 1b90fbc7590124c57a2e590de7fd07eba26606f1, Linux 5d356d902e9d5b1aaaaf2326d365340fa8a90c1b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-53317?

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/775b00ba23f6f916fe2ac60c5ff7fd0fe4f28d0d>
- patch: <https://git.kernel.org/stable/c/1b90fbc7590124c57a2e590de7fd07eba26606f1>
- patch: <https://git.kernel.org/stable/c/5d356d902e9d5b1aaaaf2326d365340fa8a90c1b>
- patch: <https://git.kernel.org/stable/c/d55e76e11592a1d18a179c7fd34ca1b52632beb3>
- patch: <https://git.kernel.org/stable/c/dba62fa84a8eac44a53a2862de8a40e5bdfa0ae3>
- patch: <https://git.kernel.org/stable/c/e4d503c956a744cb59e509ca5f134cfad423c7a3>
- patch: <https://git.kernel.org/stable/c/dd45e536f47a82e0a405f9a4b6c7ceb367171ee9>
- patch: <https://git.kernel.org/stable/c/fa08a7b61dff8a4df11ff1e84abfc214b487caf7>

## 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-2023-53317>

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