CVE-2023-53270
ext4: fix i_disksize exceeding i_size problem in paritally written case
Reported by linux · Published September 16, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf | Amazon Linux | 6.1.29-47.49.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.29-47.49.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.29-47.49.amzn2023 |
| python3-perf | Amazon Linux | 6.1.29-47.49.amzn2023 |
| perf | Amazon Linux | 6.1.29-47.49.amzn2023 |
| Linux | Linux | d30090eb546d993ea3f3023452540c476ea614a5, 53877ed201baa6b58f7ce9df92664a839113c30e, 3ecea2fee14227712694c8b54ad99d471e61de92, 2.6.27, 1dedde690303c05ef732b7c5c8356fdf60a4ade3, 18eb23891aeae3229baf8c7c23b76be3364e1967 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 64769240bd07f446f83660bb143bb609d8ab4910, 64769240bd07f446f83660bb143bb609d8ab4910, 64769240bd07f446f83660bb143bb609d8ab4910 |
| Linux | Linux | 2.6.27, 0, 5.15.111 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | perf | 0 |
| Linux | Linux | 64769240bd07f446f83660bb143bb609d8ab4910, 64769240bd07f446f83660bb143bb609d8ab4910, 64769240bd07f446f83660bb143bb609d8ab4910 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-livepatch-6.1.29-47.49 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel | 0 |
| linux | linux_kernel | 2.6.27, 2.6.27, 2.6.27 |
Timeline
- Sep 16, 2025 CVE Published
- Sep 23, 2025 EPSS Score (29 in total, the first dated here)
- Oct 4, 2025 Coalition ESS Score (6 in total, the first dated here)
- Oct 21, 2025 PoC Published (2 in total, the first dated here)
- Jan 25, 2026 Security Advisory (83 in total, the first dated here)
- Oct 4, 2026 Distribution Patch (60 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-53270
vulnetix vdb fixes CVE-2023-53270
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-53270/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart