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-2021-47004

published high CVSS 3.1 · 7.1

f2fs: fix to avoid touching checkpointed data in get_victim()

Published
28 Feb 2024, 08:13:25 UTC
Updated
05 Aug 2026, 08:45:31 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux4354994f097d068a894aa1a0860da54571df3582 to < 105155a8146ddb54c119d8318964eef3859d109d · 4354994f097d068a894aa1a0860da54571df3582 to < 1e116f87825f01a6380286472196882746b16f63 · 4354994f097d068a894aa1a0860da54571df3582 to < 211372b2571520e394b56b431a0705586013b3ff · 4354994f097d068a894aa1a0860da54571df3582 to < 61461fc921b756ae16e64243f72af2bfc2e620db · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.20 (affected) · 0 to < 4.20 (unaffected · semver) · 5.10.38 through 5.10.* (unaffected · semver) · 5.11.22 through 5.11.* (unaffected · semver) · 5.12.5 through 5.12.* (unaffected · semver) · 5.13 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 touching checkpointed data in get_victim() In CP disabling mode, there are two issues when using LFS or SSR | AT_SSR mode to select victim: 1. LFS is set to find source section during GC, the victim should have no checkpointed data, since after GC, section could not be set free for reuse. Previously, we only check valid chpt blocks in current segment rather than section, fix it. 2. SSR | AT_SSR are set to find target segment for writes which can be fully filled by checkpointed and newly written blocks, we should never select such segment, otherwise it can cause panic or data corruption during allocation, potential case is described as below: a) target segment has 'n' (n < 512) ckpt valid blocks b) GC migrates 'n' valid blocks to other segment (segment is still in dirty list) c) GC migrates '512 - n' blocks to target segment (segment has 'n' cp_vblocks and '512 - n' vblocks) d) If GC selects target segment via {AT,}SSR allocator, however there is no free space in targe segment.

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.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Scenarios
en: AV:L - The bug is in f2fs GC/SSR victim selection and is reached via local filesystem operations (writes triggering f2fs_balance_fs/SSR allocation or the local GC path), not via network packet processing. AC:L - With checkpoint disabled, f2fs_need_SSR() always forces SSR and an attacker who can write can drive GC/allocation until a full dirty segment is selected; success does not depend on a race or other attacker-uncontrollable conditions. PR:L - Mounting with checkpoint=disable is an admin/deployment precondition, but once that mode is active any unprivileged user with write access triggers the vulnerable get_victim/SSR path through ordinary writes without CAP_SYS_ADMIN. UI:N - Exploitation requires only the attacker’s own writes on an already checkpoint-disabled f2fs mount; no separate victim interaction is required. S:U - Impact is confined to the local kernel/filesystem authority (panic and filesystem corruption); it does not cross a VM, IOMMU, or other security boundary. C:N - The failure is a logic/allocation bug that panics or corrupts filesystem metadata (summary/SIT/block placement); it does not provide an information-disclosure or arbitrary-read primitive. I:H - Selecting a full segment for SSR can corrupt on-disk data and metadata during allocation (wrong block reuse and summary/journal corruption), which the fix commit explicitly describes as data corruption. A:H - Allocation with next_blkoff >= blocks_per_seg hits f2fs_bug_on (BUG_ON under CONFIG_F2FS_CHECK_FS, otherwise WARN and continued broken state), causing kernel oops/panic or filesystem failure.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 4354994f097d068a894aa1a0860da54571df3582 to < 105155a8146ddb54c119d8318964eef3859d109d (affected · git)4354994f097d068a894aa1a0860da54571df3582 to < 1e116f87825f01a6380286472196882746b16f63 (affected · git)4354994f097d068a894aa1a0860da54571df3582 to < 211372b2571520e394b56b431a0705586013b3ff (affected · git)4354994f097d068a894aa1a0860da54571df3582 to < 61461fc921b756ae16e64243f72af2bfc2e620db (affected · git)Default: unaffected Linux · cna
Linux Linux 4.20 (affected)0 to < 4.20 (unaffected · semver)5.10.38 through 5.10.* (unaffected · semver)5.11.22 through 5.11.* (unaffected · semver)5.12.5 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

3

Linux · cna

f2fs: fix to avoid touching checkpointed data in get_victim()

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
a7aaca6bdf9e2079e307a0215af5706dd4a8719cde17f227ead07d88f1cdd96f
Ingested
23 Sep 2026, 07:57:04 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