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

f2fs: atomic: fix UAF issue on f2fs_inode_info.atomic_inode

- ioctl(F2FS_IOC_GARBAGE_COLLECT_RANGE) - shrink
- f2fs_gc
- gc_data_segment
- ra_data_block(cow_inode)
- mapping = F2FS_I(inode)->atomic_inode->i_mapping
: f2fs_is_cow_file(cow_inode) is true
- f2fs_evict_inode(atomic_inode)
- clear_inode_flag(fi->cow_inode, FI_COW_FILE)
- F2FS_I(fi->cow_inode)->atomic_inode = NULL
...
- truncate_inode_pages_final(atomic_inode)
- f2fs_grab_cache_folio(mapping)
: create folio in atomic_inode->mapping
- clear_inode(atomic_inode)
- BUG_ON(atomic_inode->i_data.nrpages)

We need to add a reference on fi->atomic_inode before using its mapping
field during garbage collection, otherwise, it will cause UAF issue.
Published: 2026-07-19
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a use‑after‑free occurring in the f2fs garbage‑collection path. During the F2FS_IOC_GARBAGE_COLLECT_RANGE ioctl, the garbage‐collection code may drop a reference to an atomic inode without ensuring the inode still exists before accessing its mapping. When the atomic inode has been freed, the kernel dereferences a stale pointer, triggering a memory corruption that can crash the system or lead to escalation of privileges if additional weaknesses are present.

Affected Systems

All Linux kernel releases that include f2fs filesystem support and implement the atomic inode path described in the commit history are affected. This applies to any distribution that ships an unpatched kernel with f2fs enabled, regardless of the specific kernel version. Users must verify whether their kernel has incorporated the commit that adds a reference check on f2fs_inode_info.atomic_inode before accessing its mapping during garbage collection.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity, while the EPSS score of less than 1% suggests a low current probability of exploitation. The vulnerability is not listed in the CISA KEV catalog, implying no widespread exploitation has been confirmed. The likely attack vector is local or privileged; an attacker must run code that can invoke the garbage‑collection ioctl on a f2fs file and influence the lifecycle of the atomic inode. Successful exploitation could cause kernel memory corruption, lead to crashes, or provide a foothold to privilege escalation if combined with other kernel weaknesses.

Generated by OpenCVE AI on August 1, 2026 at 08:02 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the commit adding a reference check on f2fs_inode_info.atomic_inode before its mapping is accessed during garbage collection, fixing the CWE‑825 Resource Leak condition. The patch can be applied from the provided Git reference (56038756aae68312df00d4aa1d97e51ef3aca725).
  • If a kernel upgrade is not immediately possible, block unprivileged or unauthenticated processes from issuing the F2FS_IOC_GARBAGE_COLLECT_RANGE ioctl on files they own by tightening file‑system permission checks or disabling the copy‑on‑write feature on sensitive mounts, mitigating the risk until a patch can be deployed.
  • Monitor system logs for kernel panics or abnormal garbage‑collection activity that may indicate exploitation, and consider migrating critical workloads to a filesystem without this flaw, such as ext4, until the kernel can be updated.

Generated by OpenCVE AI on August 1, 2026 at 08:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
Debian DSA Debian DSA DSA-6393-1 linux security update
History

Fri, 24 Jul 2026 18:30:00 +0000


Tue, 21 Jul 2026 00:15:00 +0000


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sun, 19 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: f2fs: atomic: fix UAF issue on f2fs_inode_info.atomic_inode - ioctl(F2FS_IOC_GARBAGE_COLLECT_RANGE) - shrink - f2fs_gc - gc_data_segment - ra_data_block(cow_inode) - mapping = F2FS_I(inode)->atomic_inode->i_mapping : f2fs_is_cow_file(cow_inode) is true - f2fs_evict_inode(atomic_inode) - clear_inode_flag(fi->cow_inode, FI_COW_FILE) - F2FS_I(fi->cow_inode)->atomic_inode = NULL ... - truncate_inode_pages_final(atomic_inode) - f2fs_grab_cache_folio(mapping) : create folio in atomic_inode->mapping - clear_inode(atomic_inode) - BUG_ON(atomic_inode->i_data.nrpages) We need to add a reference on fi->atomic_inode before using its mapping field during garbage collection, otherwise, it will cause UAF issue.
Title f2fs: atomic: fix UAF issue on f2fs_inode_info.atomic_inode
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:36:02.551Z

Reserved: 2026-07-19T07:54:57.014Z

Link: CVE-2026-63816

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity :

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-63816 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T08:15:03Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference