# CVE-2023-53149: ext4: avoid deadlock in fs reclaim with page writeback

> 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.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-09-15T14:03:13.334Z
- **Modified:** 2026-11-05T21:17:17.017Z

## Who should check

- Anyone running Linux \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 385b49a1f34b26f62e3834c773560b120825b6f8; \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 2ec97dc90df40c50e509809dc9a198638a7e18b6; \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 4b4340bf04ce9a52061f15000ecedd126abc093c; \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 00d873c17e29cc32d90ca852b82685f1673acaa5
- Anyone running Linux 4.7

## Description

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

ext4: avoid deadlock in fs reclaim with page writeback

Ext4 has a filesystem wide lock protecting ext4\_writepages() calls to
avoid races with switching of journalled data flag or inode format. This
lock can however cause a deadlock like:

CPU0                            CPU1

ext4\_writepages()
  percpu\_down\_read(sbi-\>s\_writepages\_rwsem);
                                ext4\_change\_inode\_journal\_flag()
                                  percpu\_down\_write(sbi-\>s\_writepages\_rwsem);
                                    - blocks, all readers block from now on
  ext4\_do\_writepages()
    ext4\_init\_io\_end()
      kmem\_cache\_zalloc(io\_end\_cachep, GFP\_KERNEL)
        fs\_reclaim frees dentry...
          dentry\_unlink\_inode()
            iput() - last ref =\>
              iput\_final() - inode dirty =\>
                write\_inode\_now()...
                  ext4\_writepages() tries to acquire sbi-\>s\_writepages\_rwsem
                    and blocks forever

Make sure we cannot recurse into filesystem reclaim from writeback code
to avoid the deadlock.

## Affected and fixed versions

- Linux: \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 385b49a1f34b26f62e3834c773560b120825b6f8; \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 2ec97dc90df40c50e509809dc9a198638a7e18b6; \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 4b4340bf04ce9a52061f15000ecedd126abc093c; \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 00d873c17e29cc32d90ca852b82685f1673acaa5 (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

- Upgrade Linux to 00d873c17e29cc32d90ca852b82685f1673acaa5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53149. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53149.md
Affected: Linux >= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, < 385b49a1f34b26f62e3834c773560b120825b6f8; >= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, < 2ec97dc90df40c50e509809dc9a198638a7e18b6; >= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, < 4b4340bf04ce9a52061f15000ecedd126abc093c; >= c8585c6fcaf2011de54c359…
Fixed in: Linux 385b49a1f34b26f62e3834c773560b120825b6f8, Linux 2ec97dc90df40c50e509809dc9a198638a7e18b6, Linux 4b4340bf04ce9a52061f15000ecedd126abc093c, Linux 00d873c17e29cc32d90ca852b82685f1673acaa5

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

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

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

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

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

Linux \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 385b49a1f34b26f62e3834c773560b120825b6f8; \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 2ec97dc90df40c50e509809dc9a198638a7e18b6; \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 4b4340bf04ce9a52061f15000ecedd126abc093c; \>= c8585c6fcaf2011de54c3592e80a634a2b9e1a7f, \< 00d873c17e29cc32d90ca852b82685f1673acaa5; Linux 4.7.

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

Yes. Fixed in Linux 385b49a1f34b26f62e3834c773560b120825b6f8, Linux 2ec97dc90df40c50e509809dc9a198638a7e18b6, Linux 4b4340bf04ce9a52061f15000ecedd126abc093c, Linux 00d873c17e29cc32d90ca852b82685f1673acaa5. Upgrade Linux to 00d873c17e29cc32d90ca852b82685f1673acaa5 or later.

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

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/2ec97dc90df40c50e509809dc9a198638a7e18b6>
- patch: <https://git.kernel.org/stable/c/4b4340bf04ce9a52061f15000ecedd126abc093c>
- patch: <https://git.kernel.org/stable/c/00d873c17e29cc32d90ca852b82685f1673acaa5>
- other: <https://git.kernel.org/stable/c/385b49a1f34b26f62e3834c773560b120825b6f8>

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

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