# CVE-2025-22113: ext4: avoid journaling sb update on error if journal is destroying

> 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.28% (percentile 14, 2026-11-26)
- **Published:** 2025-04-16T14:12:59.228Z
- **Modified:** 2026-11-05T21:17:49.117Z

## Who should check

- Anyone running Linux \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< b6d27f4869c9c4dedce0ba1c719d6c748a4ecc68; \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< eddca44ddf810e27f0c96913aa3cc92ebd679ddb; \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< db05767b5bc307143d99fe2afd8c43af58d2ebef; \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< ce2f26e73783b4a7c46a86e3af5b5c8de0971790
- Anyone running Linux 5.11

## Description

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

ext4: avoid journaling sb update on error if journal is destroying

Presently we always BUG\_ON if trying to start a transaction on a journal marked
with JBD2\_UNMOUNT, since this should never happen. However, while ltp running
stress tests, it was observed that in case of some error handling paths, it is
possible for update\_super\_work to start a transaction after the journal is
destroyed eg:

(umount)
ext4\_kill\_sb
  kill\_block\_super
    generic\_shutdown\_super
      sync\_filesystem /\* commits all txns \*/
      evict\_inodes
        /\* might start a new txn \*/
      ext4\_put\_super
	flush\_work(&sbi-\>s\_sb\_upd\_work) /\* flush the workqueue \*/
        jbd2\_journal\_destroy
          journal\_kill\_thread
            journal-\>j\_flags \|= JBD2\_UNMOUNT;
          jbd2\_journal\_commit\_transaction
            jbd2\_journal\_get\_descriptor\_buffer
              jbd2\_journal\_bmap
                ext4\_journal\_bmap
                  ext4\_map\_blocks
                    ...
                    ext4\_inode\_error
                      ext4\_handle\_error
                        schedule\_work(&sbi-\>s\_sb\_upd\_work)

                                               /\* work queue kicks in \*/
                                               update\_super\_work
                                                 jbd2\_journal\_start
                                                   start\_this\_handle
                                                     BUG\_ON(journal-\>j\_flags &
                                                            JBD2\_UNMOUNT)

Hence, introduce a new mount flag to indicate journal is destroying and only do
a journaled (and deferred) update of sb if this flag is not set. Otherwise, just
fallback to an un-journaled commit.

Further, in the journal destroy path, we have the following sequence:

  1. Set mount flag indicating journal is destroying
  2. force a commit and wait for it
  3. flush pending sb updates

This sequence is important as it ensures that, after this point, there is no sb
update that might be journaled so it is safe to update the sb outside the
journal. (To avoid race discussed in 2d01ddc86606)

Also, we don't need a similar check in ext4\_grp\_locked\_error since it is only
called from mballoc and AFAICT it would be always valid to schedule work here.

## Affected and fixed versions

- Linux: \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< b6d27f4869c9c4dedce0ba1c719d6c748a4ecc68; \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< eddca44ddf810e27f0c96913aa3cc92ebd679ddb; \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< db05767b5bc307143d99fe2afd8c43af58d2ebef; \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< ce2f26e73783b4a7c46a86e3af5b5c8de0971790 (cvelist)
- Linux: 5.11 (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-2025-22113. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22113.md
Affected: Linux >= 2d01ddc86606564fb08c56e3bc93a0693895f710, < b6d27f4869c9c4dedce0ba1c719d6c748a4ecc68; >= 2d01ddc86606564fb08c56e3bc93a0693895f710, < eddca44ddf810e27f0c96913aa3cc92ebd679ddb; >= 2d01ddc86606564fb08c56e3bc93a0693895f710, < db05767b5bc307143d99fe2afd8c43af58d2ebef; >= 2d01ddc86606564fb08c56e…
Fixed in: no fixed version listed yet

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-2025-22113 being exploited?

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

### How serious is CVE-2025-22113?

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

### Which versions are affected by CVE-2025-22113?

Linux \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< b6d27f4869c9c4dedce0ba1c719d6c748a4ecc68; \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< eddca44ddf810e27f0c96913aa3cc92ebd679ddb; \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< db05767b5bc307143d99fe2afd8c43af58d2ebef; \>= 2d01ddc86606564fb08c56e3bc93a0693895f710, \< ce2f26e73783b4a7c46a86e3af5b5c8de0971790; Linux 5.11.

### Is there a fix for CVE-2025-22113?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-22113?

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/eddca44ddf810e27f0c96913aa3cc92ebd679ddb>
- patch: <https://git.kernel.org/stable/c/db05767b5bc307143d99fe2afd8c43af58d2ebef>
- patch: <https://git.kernel.org/stable/c/ce2f26e73783b4a7c46a86e3af5b5c8de0971790>
- other: <https://git.kernel.org/stable/c/b6d27f4869c9c4dedce0ba1c719d6c748a4ecc68>

## 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-2025-22113>

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