# CVE-2023-53101: ext4: zero i\_disksize when initializing the bootloader inode

> 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, NVD) `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.29% (percentile 14, 2026-11-26)
- **Published:** 2025-05-02T15:55:43.804Z
- **Modified:** 2026-11-05T21:17:13.013Z

## Who should check

- Anyone running Linux \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< d6c1447e483c05dbcfb3ff77ac04237a82070b8c; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 59eee0cdf8c036f554add97a4da7c06d7a9ff34a; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 0d8a6c9a6415999fee1259ccf1796480c026b7d6; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 3f00c476da8fe7c4c34ea16abb55d74127120413; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 01a821aacc64d4b05dafd239dbc9b7856686002f; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 9cb27b1e76f0cc886ac09055bc41c0ab3f205167; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 9e9a4cc5486356158554f6ad73027d8635a48b34; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< f5361da1e60d54ec81346aee8e3d8baf1be0b762
- Anyone running Linux 3.10

## Description

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

ext4: zero i\_disksize when initializing the bootloader inode

If the boot loader inode has never been used before, the
EXT4\_IOC\_SWAP\_BOOT inode will initialize it, including setting the
i\_size to 0.  However, if the "never before used" boot loader has a
non-zero i\_size, then i\_disksize will be non-zero, and the
inconsistency between i\_size and i\_disksize can trigger a kernel
warning:

 WARNING: CPU: 0 PID: 2580 at fs/ext4/file.c:319
 CPU: 0 PID: 2580 Comm: bb Not tainted 6.3.0-rc1-00004-g703695902cfa
 RIP: 0010:ext4\_file\_write\_iter+0xbc7/0xd10
 Call Trace:
  vfs\_write+0x3b1/0x5c0
  ksys\_write+0x77/0x160
  \_\_x64\_sys\_write+0x22/0x30
  do\_syscall\_64+0x39/0x80

Reproducer:
 1. create corrupted image and mount it:
       mke2fs -t ext4 /tmp/foo.img 200
       debugfs -wR "sif \<5\> size 25700" /tmp/foo.img
       mount -t ext4 /tmp/foo.img /mnt
       cd /mnt
       echo 123 \> file
 2. Run the reproducer program:
       posix\_memalign(&buf, 1024, 1024)
       fd = open("file", O\_RDWR \| O\_DIRECT);
       ioctl(fd, EXT4\_IOC\_SWAP\_BOOT);
       write(fd, buf, 1024);

Fix this by setting i\_disksize as well as i\_size to zero when
initiaizing the boot loader inode.

## Affected and fixed versions

- Linux: \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< d6c1447e483c05dbcfb3ff77ac04237a82070b8c; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 59eee0cdf8c036f554add97a4da7c06d7a9ff34a; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 0d8a6c9a6415999fee1259ccf1796480c026b7d6; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 3f00c476da8fe7c4c34ea16abb55d74127120413; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 01a821aacc64d4b05dafd239dbc9b7856686002f; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 9cb27b1e76f0cc886ac09055bc41c0ab3f205167; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 9e9a4cc5486356158554f6ad73027d8635a48b34; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< f5361da1e60d54ec81346aee8e3d8baf1be0b762 (cvelist)
- Linux: 3.10 (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-53101. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53101.md
Affected: Linux >= 393d1d1d76933886d5e1ce603214c9987589c6d5, < d6c1447e483c05dbcfb3ff77ac04237a82070b8c; >= 393d1d1d76933886d5e1ce603214c9987589c6d5, < 59eee0cdf8c036f554add97a4da7c06d7a9ff34a; >= 393d1d1d76933886d5e1ce603214c9987589c6d5, < 0d8a6c9a6415999fee1259ccf1796480c026b7d6; >= 393d1d1d76933886d5e1ce6…
Fixed in: Linux 59eee0cdf8c036f554add97a4da7c06d7a9ff34a, Linux 0d8a6c9a6415999fee1259ccf1796480c026b7d6, Linux 3f00c476da8fe7c4c34ea16abb55d74127120413, Linux 01a821aacc64d4b05dafd239dbc9b7856686002f, Linux 9cb27b1e76f0cc886ac09055bc41c0ab3f205167, Linux 9e9a4cc5486356158554f6ad73027d8635a48b34

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

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

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

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

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

Linux \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< d6c1447e483c05dbcfb3ff77ac04237a82070b8c; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 59eee0cdf8c036f554add97a4da7c06d7a9ff34a; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 0d8a6c9a6415999fee1259ccf1796480c026b7d6; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 3f00c476da8fe7c4c34ea16abb55d74127120413; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 01a821aacc64d4b05dafd239dbc9b7856686002f; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 9cb27b1e76f0cc886ac09055bc41c0ab3f205167; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< 9e9a4cc5486356158554f6ad73027d8635a48b34; \>= 393d1d1d76933886d5e1ce603214c9987589c6d5, \< f5361da1e60d54ec81346aee8e3d8baf1be0b762; Linux 3.10.

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

Yes. Fixed in Linux 59eee0cdf8c036f554add97a4da7c06d7a9ff34a, Linux 0d8a6c9a6415999fee1259ccf1796480c026b7d6, Linux 3f00c476da8fe7c4c34ea16abb55d74127120413, Linux 01a821aacc64d4b05dafd239dbc9b7856686002f, Linux 9cb27b1e76f0cc886ac09055bc41c0ab3f205167, Linux 9e9a4cc5486356158554f6ad73027d8635a48b34. No fix listed yet: follow the vendor advisory.

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

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/d6c1447e483c05dbcfb3ff77ac04237a82070b8c>
- patch: <https://git.kernel.org/stable/c/59eee0cdf8c036f554add97a4da7c06d7a9ff34a>
- patch: <https://git.kernel.org/stable/c/0d8a6c9a6415999fee1259ccf1796480c026b7d6>
- patch: <https://git.kernel.org/stable/c/3f00c476da8fe7c4c34ea16abb55d74127120413>
- patch: <https://git.kernel.org/stable/c/01a821aacc64d4b05dafd239dbc9b7856686002f>
- patch: <https://git.kernel.org/stable/c/9cb27b1e76f0cc886ac09055bc41c0ab3f205167>
- patch: <https://git.kernel.org/stable/c/9e9a4cc5486356158554f6ad73027d8635a48b34>
- patch: <https://git.kernel.org/stable/c/f5361da1e60d54ec81346aee8e3d8baf1be0b762>

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

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