# CVE-2026-63816: f2fs: atomic: fix UAF issue on f2fs_inode_info.atomic_inode

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-07-19T12:02:15.907Z
- Modified: 2026-11-10T20:43:44.910Z
- Weaknesses: CWE-416
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 3db1de0e582c358dd013f3703cd55b5fe4076436 before 7d3ae21783e5914c1761ac7d63f882d3d70800e9; from 3db1de0e582c358dd013f3703cd55b5fe4076436 before 56038756aae68312df00d4aa1d97e51ef3aca725; from 3db1de0e582c358dd013f3703cd55b5fe4076436 before a499f77c06050a28c897bdbd86cd2f0721ae0743; from 3db1de0e582c358dd013f3703cd55b5fe4076436 before a805fec35c201c59643ddcde713bce4051c8ee27; from 3db1de0e582c358dd013f3703cd55b5fe4076436 before e0288584baa5dc41df4a829a023c4c1b33fe53d7; 6db52f1944417c2601182a591a704e2f119c5215; from 5.18.18 before 5.19; 5.19 (not affected: before 5.19; from 6.6.145 up to 6.6.*; from 6.12.96 up to 6.12.*; from 6.18.39 up to 6.18.*; from 7.1.3 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 5.18.18 before 6.6.145; from 6.7 before 6.12.96; from 6.13 before 6.18.39; from 6.19 before 7.1.3

## References

- <https://git.kernel.org/stable/c/7d3ae21783e5914c1761ac7d63f882d3d70800e9> (patch)
- <https://git.kernel.org/stable/c/56038756aae68312df00d4aa1d97e51ef3aca725> (patch)
- <https://git.kernel.org/stable/c/a499f77c06050a28c897bdbd86cd2f0721ae0743> (patch)
- <https://git.kernel.org/stable/c/a805fec35c201c59643ddcde713bce4051c8ee27> (patch)
- <https://git.kernel.org/stable/c/e0288584baa5dc41df4a829a023c4c1b33fe53d7> (patch)

## Sources

- CVE List: [CVE-2026-63816](https://www.cve.org/CVERecord?id=CVE-2026-63816), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-63816](https://nvd.nist.gov/vuln/detail/CVE-2026-63816), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2026-63816 · Whole record: https://cve.day/CVE-2026-63816.json · Rebuilt by cve.day 2026-11-25T22:59:28.733Z
