{"id":"CVE-2026-63816","published":"2026-07-19T12:02:15Z","modified":"2026-08-17T04:51:23Z","title":"f2fs: atomic: fix UAF issue on f2fs_inode_info.atomic_inode","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: atomic: fix UAF issue on f2fs_inode_info.atomic_inode\n\n- ioctl(F2FS_IOC_GARBAGE_COLLECT_RANGE)\t\t- shrink\n - f2fs_gc\n  - gc_data_segment\n   - ra_data_block(cow_inode)\n    - mapping = F2FS_I(inode)->atomic_inode->i_mapping\n    : f2fs_is_cow_file(cow_inode) is true\n\t\t\t\t\t\t - f2fs_evict_inode(atomic_inode)\n\t\t\t\t\t\t  - clear_inode_flag(fi->cow_inode, FI_COW_FILE)\n\t\t\t\t\t\t  - F2FS_I(fi->cow_inode)->atomic_inode = NULL\n\t\t\t\t\t\t  ...\n\t\t\t\t\t\t  - truncate_inode_pages_final(atomic_inode)\n    - f2fs_grab_cache_folio(mapping)\n    : create folio in atomic_inode->mapping\n\t\t\t\t\t\t  - clear_inode(atomic_inode)\n\t\t\t\t\t\t   - BUG_ON(atomic_inode->i_data.nrpages)\n\nWe need to add a reference on fi->atomic_inode before using its mapping\nfield during garbage collection, otherwise, it will cause UAF issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00175,"percentile":0.04103,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/7d3ae21783e5914c1761ac7d63f882d3d70800e9","tags":[]},{"url":"https://git.kernel.org/stable/c/56038756aae68312df00d4aa1d97e51ef3aca725","tags":[]},{"url":"https://git.kernel.org/stable/c/a499f77c06050a28c897bdbd86cd2f0721ae0743","tags":[]},{"url":"https://git.kernel.org/stable/c/a805fec35c201c59643ddcde713bce4051c8ee27","tags":[]},{"url":"https://git.kernel.org/stable/c/e0288584baa5dc41df4a829a023c4c1b33fe53d7","tags":[]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":0.82},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 3db1de0e582c358dd013f3703cd55b5fe4076436, < 7d3ae21783e5914c1761ac7d63f882d3d70800e9",">= 3db1de0e582c358dd013f3703cd55b5fe4076436, < 56038756aae68312df00d4aa1d97e51ef3aca725",">= 3db1de0e582c358dd013f3703cd55b5fe4076436, < a499f77c06050a28c897bdbd86cd2f0721ae0743",">= 3db1de0e582c358dd013f3703cd55b5fe4076436, < a805fec35c201c59643ddcde713bce4051c8ee27",">= 3db1de0e582c358dd013f3703cd55b5fe4076436, < e0288584baa5dc41df4a829a023c4c1b33fe53d7","6db52f1944417c2601182a591a704e2f119c5215",">= 5.18.18, < 5.19"]},{"vendor":"Linux","product":"Linux","versions":["5.19"]}],"euvd":{"id":"EUVD-2026-45482","exploited":false,"provenance":"source"}}