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-53838

published high CVSS 3.1 · 7.8

f2fs: synchronize atomic write aborts

Published
09 Dec 2025, 01:29:54 UTC
Updated
05 Aug 2026, 09:16:21 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux3db1de0e582c358dd013f3703cd55b5fe4076436 to < 102b82708c1523b36d421cb8687746906069bc17 · 3db1de0e582c358dd013f3703cd55b5fe4076436 to < b7724360714642099cec907f54f42e55f5325453 · 3db1de0e582c358dd013f3703cd55b5fe4076436 to < a46bebd502fe1a3bd1d22f64cedd93e7e7702693 · 6db52f1944417c2601182a591a704e2f119c5215 · 5.18.18 to < 5.19 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.19 (affected) · 0 to < 5.19 (unaffected · semver) · 6.1.18 through 6.1.* (unaffected · semver) · 6.2.5 through 6.2.* (unaffected · semver) · 6.3 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: synchronize atomic write aborts To fix a race condition between atomic write aborts, I use the inode lock and make COW inode to be re-usable thoroughout the whole atomic file inode lifetime.

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 race is driven entirely through local syscalls — `ioctl(F2FS_IOC_START_ATOMIC_WRITE/ABORT_ATOMIC_WRITE)` and `close()` — on a file residing on a mounted f2fs filesystem. No network or physical access is involved. AC:L - The attacker owns both sides of the race: it issues the unlocked `->release` abort from its own `close()` in one thread while issuing the `inode_lock`-held abort ioctl from another, and can retry the loop indefinitely at no cost. The `inode_lock` provides no exclusion against the release path, so the window is wide and deterministic to hit. PR:L - `__f2fs_ioctl` gates the atomic-write ioctls only on `inode_owner_or_capable()`, which any unprivileged local user satisfies for a file they created on an f2fs mount (e.g. any Android app under /data). No capability, mount option, or crafted image is required. UI:N - The attacker performs every step itself — create file, start atomic write, race close against the abort ioctl. No victim action or cooperating process is needed; f2fs simply being mounted is an environmental default, not user interaction. S:U - The corruption stays within the kernel's own security authority — a freed `struct inode` in `f2fs_inode_cachep`. There is no VM, IOMMU, or sandbox boundary crossed. C:H - The double `iput()` frees the COW `struct inode` while another thread still dereferences it, and `prepare_atomic_write_begin()` continues reading through the dangling `fi->cow_inode`. Reclaiming the freed slot with attacker-groomed objects gives an arbitrary kernel read primitive and leaks the contents of adjacent inodes. I:H - The losing thread performs `clear_bit()` and a dirty-list insertion into freed memory plus a second `iput()`, producing a double-free and refcount underflow on an inode object that embeds `i_op`, `i_fop`, and `a_ops` function-pointer tables — a classic write/control-flow-hijack primitive, alongside on-disk metadata corruption from the double evict. A:H - Even unexploited, the race yields inode refcount underflow, slab double-free, list corruption, and NULL/wild-pointer dereference via `F2FS_I(NULL)->flags`, all of which oops or panic the kernel. The attacker can trigger it repeatedly from an unprivileged loop.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 3db1de0e582c358dd013f3703cd55b5fe4076436 to < 102b82708c1523b36d421cb8687746906069bc17 (affected · git)3db1de0e582c358dd013f3703cd55b5fe4076436 to < b7724360714642099cec907f54f42e55f5325453 (affected · git)3db1de0e582c358dd013f3703cd55b5fe4076436 to < a46bebd502fe1a3bd1d22f64cedd93e7e7702693 (affected · git)6db52f1944417c2601182a591a704e2f119c5215 (affected · git)5.18.18 to < 5.19 (affected · semver)Default: unaffected Linux · cna
Linux Linux 5.19 (affected)0 to < 5.19 (unaffected · semver)6.1.18 through 6.1.* (unaffected · semver)6.2.5 through 6.2.* (unaffected · semver)6.3 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

f2fs: synchronize atomic write aborts

Provenance

Schema
5.2
Searchable
yes
Content hash
5fe0efa9808b325c587402ac779027f576640e8c2f1398b1eeba0a10efad43e6
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