Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-53537

published high CVSS 3.1 · 7.8

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

Published
04 Oct 2025, 15:16:48 UTC
Updated
05 Aug 2026, 09:14:41 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0b20fcec8651569935a10afe03fedc0b812d044e to < b2f423fda64fb49213aa0ed5056079cf295a5df2 · 0b20fcec8651569935a10afe03fedc0b812d044e to < 9a7f63283af6befc0f91d549f4f6917dff7479a9 · 0b20fcec8651569935a10afe03fedc0b812d044e to < 7d058f0ab161437369ad6e45a4b67c2886e71373 · 0b20fcec8651569935a10afe03fedc0b812d044e to < 97ec6f1788cc6bee3f8c89cb908e1a2a1cd859bb · 0b20fcec8651569935a10afe03fedc0b812d044e to < af4ce124d7bd74cb839bbdaccffbb416771a56b5 · 0b20fcec8651569935a10afe03fedc0b812d044e to < 5cdb422c839134273866208dad5360835ddb9794 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.5 (affected) · 0 to < 5.5 (unaffected · semver) · 5.10.180 through 5.10.* (unaffected · semver) · 5.15.111 through 5.15.* (unaffected · semver) · 6.1.28 through 6.1.* (unaffected · semver) · 6.2.15 through 6.2.* (unaffected · semver) · 6.3.2 through 6.3.* (unaffected · semver) · 6.4 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerable code is the f2fs data writeback path, reached through ordinary local filesystem activity (write/fsync/msync on an f2fs mount, plus the kernel flusher and reclaim threads); no network protocol data is involved. AC:L - Once the filesystem is in the cp_error state, the defect is essentially deterministic rather than a race — the stale bio_entry left behind by f2fs_inplace_write_data()'s drop_bio path is picked up by the very next unguarded f2fs_submit_merged_ipu_write() call, which is how a stock xfstest (generic/019) reproduces it; the attacker fully controls the dirty-page/IPU workload on both sides of the cross-thread variant by spawning concurrent writers with small fsync batches. PR:L - Any unprivileged local user or Android app with write access to an f2fs mount can drive the IPU writeback path; there is no capability check anywhere between write()/fsync() and f2fs_submit_merged_ipu_write(). UI:N - The flush is performed by the kernel's own writeback/reclaim kworkers and by the attacker's own file writes; no victim action is required. S:U - The corrupted struct bio, page-writeback state, and sbi page counters all live within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The bio is submitted and completed twice and its refcount driven to zero while other contexts still hold the pointer, giving a use-after-free on a bioset slab object whose bi_private/bi_end_io/bi_io_vec are dereferenced afterwards — a freed-object read primitive that leaks kernel data once the slot is reclaimed by attacker-sprayed content. I:H - Re-submitting a freed/completed bio makes the block layer act on attacker-groomable heap contents (bi_end_io is called as a function pointer, bio_vec entries are DMA'd to disk), and the cross-context steal lets add_ipu_page()/bio_add_page() write into a bio after it was freed — a controllable write and control-flow hijack primitive. A:H - The confirmed immediate effect is a kernel BUG_ON panic in folio_end_writeback() (mm/filemap.c:1619) from double end_page_writeback(); the duplicated dec_page_count() also underflows the writeback counters, which hangs sync/umount waiters forever.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0b20fcec8651569935a10afe03fedc0b812d044e to < b2f423fda64fb49213aa0ed5056079cf295a5df2 (affected · git)0b20fcec8651569935a10afe03fedc0b812d044e to < 9a7f63283af6befc0f91d549f4f6917dff7479a9 (affected · git)0b20fcec8651569935a10afe03fedc0b812d044e to < 7d058f0ab161437369ad6e45a4b67c2886e71373 (affected · git)0b20fcec8651569935a10afe03fedc0b812d044e to < 97ec6f1788cc6bee3f8c89cb908e1a2a1cd859bb (affected · git)0b20fcec8651569935a10afe03fedc0b812d044e to < af4ce124d7bd74cb839bbdaccffbb416771a56b5 (affected · git)0b20fcec8651569935a10afe03fedc0b812d044e to < 5cdb422c839134273866208dad5360835ddb9794 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.5 (affected)0 to < 5.5 (unaffected · semver)5.10.180 through 5.10.* (unaffected · semver)5.15.111 through 5.15.* (unaffected · semver)6.1.28 through 6.1.* (unaffected · semver)6.2.15 through 6.2.* (unaffected · semver)6.3.2 through 6.3.* (unaffected · semver)6.4 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
0b9ed9b7f90eeeb00a0f7a527f509b57ada01c333addc0c2094c1076daa16997
Ingested
23 Sep 2026, 08:14:56 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected