🛡️ CVE-2023-53101 — kernel

🟡 CVSS 5.5 — Medium ✅ No Known Exploit NVD
5.5
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

ext4: zero i_disksize when initializing the bootloader inode

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.

How this vulnerability can be exploited

This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

Affected software

CVE-2023-53101 is recorded against 2 packages.

  • kernel (from 6.2.0 up to 6.2.7)
  • linux-kernel

Timeline and source

Published on 2 May 2025 and last revised on 15 July 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
git.kernel.org (Web)
github.com (Advisory)
nvd.nist.gov (Advisory)
git.kernel.org (Package)

CVE-2023-53101 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Medium
CVSS Score 5.5
CVSS Vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE N/A
Public Exploit ✅ No
Source NVD
Published 2025-05-02
Updated 2026-08-12
Modified 2026-07-15

Affected Packages

Software From version Fixed in
kernel 6.2.0 6.2.7
linux-kernel

References

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in kernel

CVE-2023-53101 is rated CVSS 5.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2023