# CVE-2023-53323: ext2/dax: Fix ext2\_setsize when len is page aligned

> 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)
- **CWE:** CWE-617
- **Published:** 2025-09-16T16:11:58.877Z
- **Modified:** 2026-06-17T06:44:53.353Z

## Who should check

- Anyone running Linux \>= 2aa3048e03d38d5358be2553d4b638c1a018498c, \< 9e54fd14bd143c261e52fde74355e85e9526c58c; \>= 2aa3048e03d38d5358be2553d4b638c1a018498c, \< 5cee8bfb8cbd99c97aff85d2bf066b6a496e13ab; \>= 2aa3048e03d38d5358be2553d4b638c1a018498c, \< fcced95b6ba2a507a83b8b3e0358a8ac16b13e35
- Anyone running Linux 5.15

## Description

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

ext2/dax: Fix ext2\_setsize when len is page aligned

PAGE\_ALIGN(x) macro gives the next highest value which is multiple of
pagesize. But if x is already page aligned then it simply returns x.
So, if x passed is 0 in dax\_zero\_range() function, that means the
length gets passed as 0 to -\>iomap\_begin().

In ext2 it then calls ext2\_get\_blocks -\> max\_blocks as 0 and hits bug\_on
here in ext2\_get\_blocks().
	BUG\_ON(maxblocks == 0);

Instead we should be calling dax\_truncate\_page() here which takes
care of it. i.e. it only calls dax\_zero\_range if the offset is not
page/block aligned.

This can be easily triggered with following on fsdax mounted pmem
device.

dd if=/dev/zero of=file count=1 bs=512
truncate -s 0 file

\[79.525838\] EXT2-fs (pmem0): DAX enabled. Warning: EXPERIMENTAL, use at your own risk
\[79.529376\] ext2 filesystem being mounted at /mnt1/test supports timestamps until 2038 (0x7fffffff)
\[93.793207\] ------------\[ cut here \]------------
\[93.795102\] kernel BUG at fs/ext2/inode.c:637!
\[93.796904\] invalid opcode: 0000 \[\#1\] PREEMPT SMP PTI
\[93.798659\] CPU: 0 PID: 1192 Comm: truncate Not tainted 6.3.0-rc2-xfstests-00056-g131086faa369 \#139
\[93.806459\] RIP: 0010:ext2\_get\_blocks.constprop.0+0x524/0x610
\<...\>
\[93.835298\] Call Trace:
\[93.836253\]  \<TASK\>
\[93.837103\]  ? lock\_acquire+0xf8/0x110
\[93.838479\]  ? d\_lookup+0x69/0xd0
\[93.839779\]  ext2\_iomap\_begin+0xa7/0x1c0
\[93.841154\]  iomap\_iter+0xc7/0x150
\[93.842425\]  dax\_zero\_range+0x6e/0xa0
\[93.843813\]  ext2\_setsize+0x176/0x1b0
\[93.845164\]  ext2\_setattr+0x151/0x200
\[93.846467\]  notify\_change+0x341/0x4e0
\[93.847805\]  ? lock\_acquire+0xf8/0x110
\[93.849143\]  ? do\_truncate+0x74/0xe0
\[93.850452\]  ? do\_truncate+0x84/0xe0
\[93.851739\]  do\_truncate+0x84/0xe0
\[93.852974\]  do\_sys\_ftruncate+0x2b4/0x2f0
\[93.854404\]  do\_syscall\_64+0x3f/0x90
\[93.855789\]  entry\_SYSCALL\_64\_after\_hwframe+0x72/0xdc

## Affected and fixed versions

- Linux: \>= 2aa3048e03d38d5358be2553d4b638c1a018498c, \< 9e54fd14bd143c261e52fde74355e85e9526c58c; \>= 2aa3048e03d38d5358be2553d4b638c1a018498c, \< 5cee8bfb8cbd99c97aff85d2bf066b6a496e13ab; \>= 2aa3048e03d38d5358be2553d4b638c1a018498c, \< fcced95b6ba2a507a83b8b3e0358a8ac16b13e35 (cvelist)
- Linux: 5.15 (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-53323. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53323.md
Affected: Linux >= 2aa3048e03d38d5358be2553d4b638c1a018498c, < 9e54fd14bd143c261e52fde74355e85e9526c58c; >= 2aa3048e03d38d5358be2553d4b638c1a018498c, < 5cee8bfb8cbd99c97aff85d2bf066b6a496e13ab; >= 2aa3048e03d38d5358be2553d4b638c1a018498c, < fcced95b6ba2a507a83b8b3e0358a8ac16b13e35; Linux 5.15
Fixed in: Linux 9e54fd14bd143c261e52fde74355e85e9526c58c, Linux 5cee8bfb8cbd99c97aff85d2bf066b6a496e13ab

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-53323 being exploited?

There is no confirmed exploitation: CVE-2023-53323 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-53323?

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

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

Linux \>= 2aa3048e03d38d5358be2553d4b638c1a018498c, \< 9e54fd14bd143c261e52fde74355e85e9526c58c; \>= 2aa3048e03d38d5358be2553d4b638c1a018498c, \< 5cee8bfb8cbd99c97aff85d2bf066b6a496e13ab; \>= 2aa3048e03d38d5358be2553d4b638c1a018498c, \< fcced95b6ba2a507a83b8b3e0358a8ac16b13e35; Linux 5.15.

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

Yes. Fixed in Linux 9e54fd14bd143c261e52fde74355e85e9526c58c, Linux 5cee8bfb8cbd99c97aff85d2bf066b6a496e13ab. No fix listed yet: follow the vendor advisory.

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

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/9e54fd14bd143c261e52fde74355e85e9526c58c>
- patch: <https://git.kernel.org/stable/c/5cee8bfb8cbd99c97aff85d2bf066b6a496e13ab>
- patch: <https://git.kernel.org/stable/c/fcced95b6ba2a507a83b8b3e0358a8ac16b13e35>

## 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-53323>

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