CVE-2025-71473
What it is
lwext4 through 1.0.0 contains a heap buffer overflow in ext4_fs_init_inode_bitmap() in src/ext4_fs.c because it does not validate s_inodes_per_group against the inode bitmap size. Attackers can supply a crafted ext4 image with an oversized s_inodes_per_group so memset writes past the heap buffer, corrupting memory and crashing the mounting application.
At a glance
- Exploitability
- Can be exploited locally on the machine without logging in, but needs a user to act. High risk of service disruption.
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- ReservedThe CVE id was reserved by its CNA
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: not scored yet.
- Severity: 6.9 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Weakness
- CWE-787 · Out-of-bounds write
- Record status
- Received
Affected
- Gkostka lwext4 ≤ 1.0.0
Attack profile CVSS 4.0 · 6.9
- Attack vector
- Local
- Complexity
- Low
- Attack requirements
- None
- Privileges needed
- None
- User interaction
- Passive
- Confidentiality
- None
- Integrity
- Low
- Availability
- High
Raw vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2025-71473.md and follow it. Check whether this project is affected by CVE-2025-71473. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://github.com/Aladdin-R-D/lwext4/commit/2f5714d42f729fbdf3e65fd24d57149619fa1f33
- https://github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908
- https://github.com/gkostka/lwext4/pull/111
References
- https://github.com/Aladdin-R-D/lwext4/commit/2f5714d42f729fbdf3e65fd24d57149619fa1f33
- https://github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c299908
- https://github.com/gkostka/lwext4/pull/111
- https://github.com/gkostka/lwext4
- https://github.com/gkostka/lwext4/blob/v1.0.0/src/ext4_fs.c#L401-L405
- https://github.com/gkostka/lwext4/issues/93
- https://www.vulncheck.com/advisories/lwext4-through-1.0.0-heap-buffer-overflow-via-ext4-fs-init-inode-bitmap