Home › CVE › Vulnerabilities
CVE-2025-71474 — gkostka lwext4
One of 2 gkostka lwext4 vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesSummary
lwext4 through 1.0.0 contains an out-of-bounds write vulnerability in ext4_fs_init_block_bitmap() that allows attackers to corrupt heap memory via crafted superblock geometry fields. Attackers can supply an ext4 image with oversized s_reserved_gdt_blocks and BLOCK_UNINIT groups to write past the bitmap buffer, crashing applications that mount it.
Severity breakdown
Medium · 6.9
An attacker without an account can exploit this with local access if a user views or visits something.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- high on availability, low on integrity, none on confidentiality
- Impact on other systems
- none
Weakness
- CWE-787: Out-of-bounds Write
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| gkostka lwext4 | ≤ 1.0.0 | — |
References by type
Patches and fixed releases
- github.com/Aladdin-R-D/lwext4/commit/2f5714d42f729fbdf3e65fd24d57149619…
- github.com/gkostka/lwext4/commit/b9c842f168e6044bd03fe34e1237eda33c2999…
- github.com/gkostka/lwext4/pull/111
Other references
Affected
- gkostka lwext4
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2025-71474?
lwext4 through 1.0.0 contains an out-of-bounds write vulnerability in ext4fsinitblockbitmap() that allows attackers to corrupt heap memory via crafted superblock geometry fields. Attackers can supply an ext4 image with oversized sreservedgdtblocks and BLOCKUNINIT groups to write past the bitmap buffer, crashing applications that mount it. Weakness type: Out-of-bounds Write (CWE-787).
How severe is CVE-2025-71474?
CVE-2025-71474 has a CVSS 4.0 base score of 6.9 (medium), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something.
Is CVE-2025-71474 being exploited?
Not as far as is known: CVE-2025-71474 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2025-71474?
gkostka lwext4 ≤ 1.0.0.
How do I fix CVE-2025-71474?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.