# CVE-2023-53270: ext4: fix i\_disksize exceeding i\_size problem in paritally written case

> 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-16T08:06:59.730Z
- **Modified:** 2026-06-17T06:44:41.770Z

## Who should check

- Anyone running Linux \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 18eb23891aeae3229baf8c7c23b76be3364e1967; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< d30090eb546d993ea3f3023452540c476ea614a5; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 3ecea2fee14227712694c8b54ad99d471e61de92; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 53877ed201baa6b58f7ce9df92664a839113c30e; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 1dedde690303c05ef732b7c5c8356fdf60a4ade3
- Anyone running Linux 2.6.27

## Description

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

ext4: fix i\_disksize exceeding i\_size problem in paritally written case

It is possible for i\_disksize can exceed i\_size, triggering a warning.

generic\_perform\_write
 copied = iov\_iter\_copy\_from\_user\_atomic(len) // copied \< len
 ext4\_da\_write\_end
 \| ext4\_update\_i\_disksize
 \|  new\_i\_size = pos + copied;
 \|  WRITE\_ONCE(EXT4\_I(inode)-\>i\_disksize, newsize) // update i\_disksize
 \| generic\_write\_end
 \|  copied = block\_write\_end(copied, len) // copied = 0
 \|   if (unlikely(copied \< len))
 \|    if (!PageUptodate(page))
 \|     copied = 0;
 \|  if (pos + copied \> inode-\>i\_size) // return false
 if (unlikely(copied == 0))
  goto again;
 if (unlikely(iov\_iter\_fault\_in\_readable(i, bytes))) {
  status = -EFAULT;
  break;
 }

We get i\_disksize greater than i\_size here, which could trigger WARNING
check 'i\_size\_read(inode) \< EXT4\_I(inode)-\>i\_disksize' while doing dio:

ext4\_dio\_write\_iter
 iomap\_dio\_rw
  \_\_iomap\_dio\_rw // return err, length is not aligned to 512
 ext4\_handle\_inode\_extension
  WARN\_ON\_ONCE(i\_size\_read(inode) \< EXT4\_I(inode)-\>i\_disksize) // Oops

 WARNING: CPU: 2 PID: 2609 at fs/ext4/file.c:319
 CPU: 2 PID: 2609 Comm: aa Not tainted 6.3.0-rc2
 RIP: 0010:ext4\_file\_write\_iter+0xbc7
 Call Trace:
  vfs\_write+0x3b1
  ksys\_write+0x77
  do\_syscall\_64+0x39

Fix it by updating 'copied' value before updating i\_disksize just like
ext4\_write\_inline\_data\_end() does.

A reproducer can be found in the buganizer link below.

## Affected and fixed versions

- Linux: \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 18eb23891aeae3229baf8c7c23b76be3364e1967; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< d30090eb546d993ea3f3023452540c476ea614a5; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 3ecea2fee14227712694c8b54ad99d471e61de92; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 53877ed201baa6b58f7ce9df92664a839113c30e; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 1dedde690303c05ef732b7c5c8356fdf60a4ade3 (cvelist)
- Linux: 2.6.27 (cvelist)

## Mitigation

- Upgrade Linux to 1dedde690303c05ef732b7c5c8356fdf60a4ade3 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53270.md
Affected: Linux >= 64769240bd07f446f83660bb143bb609d8ab4910, < 18eb23891aeae3229baf8c7c23b76be3364e1967; >= 64769240bd07f446f83660bb143bb609d8ab4910, < d30090eb546d993ea3f3023452540c476ea614a5; >= 64769240bd07f446f83660bb143bb609d8ab4910, < 3ecea2fee14227712694c8b54ad99d471e61de92; >= 64769240bd07f446f83660b…
Fixed in: Linux 18eb23891aeae3229baf8c7c23b76be3364e1967, Linux 3ecea2fee14227712694c8b54ad99d471e61de92, Linux 53877ed201baa6b58f7ce9df92664a839113c30e, Linux 1dedde690303c05ef732b7c5c8356fdf60a4ade3

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

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

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

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

Linux \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 18eb23891aeae3229baf8c7c23b76be3364e1967; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< d30090eb546d993ea3f3023452540c476ea614a5; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 3ecea2fee14227712694c8b54ad99d471e61de92; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 53877ed201baa6b58f7ce9df92664a839113c30e; \>= 64769240bd07f446f83660bb143bb609d8ab4910, \< 1dedde690303c05ef732b7c5c8356fdf60a4ade3; Linux 2.6.27.

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

Yes. Fixed in Linux 18eb23891aeae3229baf8c7c23b76be3364e1967, Linux 3ecea2fee14227712694c8b54ad99d471e61de92, Linux 53877ed201baa6b58f7ce9df92664a839113c30e, Linux 1dedde690303c05ef732b7c5c8356fdf60a4ade3. Upgrade Linux to 1dedde690303c05ef732b7c5c8356fdf60a4ade3 or later.

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

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/18eb23891aeae3229baf8c7c23b76be3364e1967>
- patch: <https://git.kernel.org/stable/c/d30090eb546d993ea3f3023452540c476ea614a5>
- patch: <https://git.kernel.org/stable/c/3ecea2fee14227712694c8b54ad99d471e61de92>
- patch: <https://git.kernel.org/stable/c/53877ed201baa6b58f7ce9df92664a839113c30e>
- patch: <https://git.kernel.org/stable/c/1dedde690303c05ef732b7c5c8356fdf60a4ade3>

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

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