# CVE-2023-53537: f2fs: fix to avoid use-after-free for cached IPU bio

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-10-04T15:16:48.006Z
- **Modified:** 2026-08-05T09:14:41.501Z

## Who should check

- Anyone running Linux \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< b2f423fda64fb49213aa0ed5056079cf295a5df2; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 9a7f63283af6befc0f91d549f4f6917dff7479a9; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 7d058f0ab161437369ad6e45a4b67c2886e71373; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 97ec6f1788cc6bee3f8c89cb908e1a2a1cd859bb; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< af4ce124d7bd74cb839bbdaccffbb416771a56b5; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 5cdb422c839134273866208dad5360835ddb9794
- Anyone running Linux 5.5

## Description

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

f2fs: fix to avoid use-after-free for cached IPU bio

xfstest generic/019 reports a bug:

kernel BUG at mm/filemap.c:1619!
RIP: 0010:folio\_end\_writeback+0x8a/0x90
Call Trace:
 end\_page\_writeback+0x1c/0x60
 f2fs\_write\_end\_io+0x199/0x420
 bio\_endio+0x104/0x180
 submit\_bio\_noacct+0xa5/0x510
 submit\_bio+0x48/0x80
 f2fs\_submit\_write\_bio+0x35/0x300
 f2fs\_submit\_merged\_ipu\_write+0x2a0/0x2b0
 f2fs\_write\_single\_data\_page+0x838/0x8b0
 f2fs\_write\_cache\_pages+0x379/0xa30
 f2fs\_write\_data\_pages+0x30c/0x340
 do\_writepages+0xd8/0x1b0
 \_\_writeback\_single\_inode+0x44/0x370
 writeback\_sb\_inodes+0x233/0x4d0
 \_\_writeback\_inodes\_wb+0x56/0xf0
 wb\_writeback+0x1dd/0x2d0
 wb\_workfn+0x367/0x4a0
 process\_one\_work+0x21d/0x430
 worker\_thread+0x4e/0x3c0
 kthread+0x103/0x130
 ret\_from\_fork+0x2c/0x50

The root cause is: after cp\_error is set, f2fs\_submit\_merged\_ipu\_write()
in f2fs\_write\_single\_data\_page() tries to flush IPU bio in cache, however
f2fs\_submit\_merged\_ipu\_write() missed to check validity of @bio parameter,
result in submitting random cached bio which belong to other IO context,
then it will cause use-after-free issue, fix it by adding additional
validity check.

## Affected and fixed versions

- Linux: \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< b2f423fda64fb49213aa0ed5056079cf295a5df2; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 9a7f63283af6befc0f91d549f4f6917dff7479a9; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 7d058f0ab161437369ad6e45a4b67c2886e71373; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 97ec6f1788cc6bee3f8c89cb908e1a2a1cd859bb; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< af4ce124d7bd74cb839bbdaccffbb416771a56b5; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 5cdb422c839134273866208dad5360835ddb9794 (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- Upgrade Linux to 5cdb422c839134273866208dad5360835ddb9794 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-53537. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53537.md
Affected: Linux >= 0b20fcec8651569935a10afe03fedc0b812d044e, < b2f423fda64fb49213aa0ed5056079cf295a5df2; >= 0b20fcec8651569935a10afe03fedc0b812d044e, < 9a7f63283af6befc0f91d549f4f6917dff7479a9; >= 0b20fcec8651569935a10afe03fedc0b812d044e, < 7d058f0ab161437369ad6e45a4b67c2886e71373; >= 0b20fcec8651569935a10af…
Fixed in: Linux 9a7f63283af6befc0f91d549f4f6917dff7479a9, Linux 7d058f0ab161437369ad6e45a4b67c2886e71373, Linux 97ec6f1788cc6bee3f8c89cb908e1a2a1cd859bb, Linux 5cdb422c839134273866208dad5360835ddb9794

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< b2f423fda64fb49213aa0ed5056079cf295a5df2; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 9a7f63283af6befc0f91d549f4f6917dff7479a9; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 7d058f0ab161437369ad6e45a4b67c2886e71373; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 97ec6f1788cc6bee3f8c89cb908e1a2a1cd859bb; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< af4ce124d7bd74cb839bbdaccffbb416771a56b5; \>= 0b20fcec8651569935a10afe03fedc0b812d044e, \< 5cdb422c839134273866208dad5360835ddb9794; Linux 5.5.

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

Yes. Fixed in Linux 9a7f63283af6befc0f91d549f4f6917dff7479a9, Linux 7d058f0ab161437369ad6e45a4b67c2886e71373, Linux 97ec6f1788cc6bee3f8c89cb908e1a2a1cd859bb, Linux 5cdb422c839134273866208dad5360835ddb9794. Upgrade Linux to 5cdb422c839134273866208dad5360835ddb9794 or later.

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

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/b2f423fda64fb49213aa0ed5056079cf295a5df2>
- patch: <https://git.kernel.org/stable/c/9a7f63283af6befc0f91d549f4f6917dff7479a9>
- patch: <https://git.kernel.org/stable/c/7d058f0ab161437369ad6e45a4b67c2886e71373>
- patch: <https://git.kernel.org/stable/c/97ec6f1788cc6bee3f8c89cb908e1a2a1cd859bb>
- patch: <https://git.kernel.org/stable/c/af4ce124d7bd74cb839bbdaccffbb416771a56b5>
- patch: <https://git.kernel.org/stable/c/5cdb422c839134273866208dad5360835ddb9794>

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

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