CVE-2022-50753
published high CVSS 3.1 · 7.8f2fs: fix to do sanity check on summary info
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb292dcab068e141d8a820b77cbcc88d98c610eb4 to < c99860f9a75079f339ed7670425b1ac58f26e2ff · b292dcab068e141d8a820b77cbcc88d98c610eb4 to < 4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e · b292dcab068e141d8a820b77cbcc88d98c610eb4 to < 73687c53919f49dff3852155621dab7a35c52854 · b292dcab068e141d8a820b77cbcc88d98c610eb4 to < e168f819bfa42459b14f479e55ebd550bcc78899 · b292dcab068e141d8a820b77cbcc88d98c610eb4 to < 0922ad64ccefa3e483e84355942b86e13c8fea68 · b292dcab068e141d8a820b77cbcc88d98c610eb4 to < c6ad7fd16657ebd34a87a97d9588195aae87597d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.11 (affected) · 0 to < 3.11 (unaffected · semver) · 5.4.220 through 5.4.* (unaffected · semver) · 5.10.150 through 5.10.* (unaffected · semver) · 5.15.75 through 5.15.* (unaffected · semver) · 5.19.17 through 5.19.* (unaffected · semver) · 6.0.3 through 6.0.* (unaffected · semver) · 6.1 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 do sanity check on summary info As Wenqing Liu reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=216456 BUG: KASAN: use-after-free in recover_data+0x63ae/0x6ae0 [f2fs] Read of size 4 at addr ffff8881464dcd80 by task mount/1013 CPU: 3 PID: 1013 Comm: mount Tainted: G W 6.0.0-rc4 #1 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014 Call Trace: dump_stack_lvl+0x45/0x5e print_report.cold+0xf3/0x68d kasan_report+0xa8/0x130 recover_data+0x63ae/0x6ae0 [f2fs] f2fs_recover_fsync_data+0x120d/0x1fc0 [f2fs] f2fs_fill_super+0x4665/0x61e0 [f2fs] mount_bdev+0x2cf/0x3b0 legacy_get_tree+0xed/0x1d0 vfs_get_tree+0x81/0x2b0 path_mount+0x47e/0x19d0 do_mount+0xce/0xf0 __x64_sys_mount+0x12c/0x1a0 do_syscall_64+0x38/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd The root cause is: in fuzzed image, SSA table is corrupted: ofs_in_node is larger than ADDRS_PER_PAGE(), result in out-of-range access on 4k-size page. - recover_data - do_recover_data - check_index_in_prev_nodes - f2fs_data_blkaddr This patch adds sanity check on summary info in recovery and GC flow in where the flows rely on them. After patch: [ 29.310883] F2FS-fs (loop0): Inconsistent ofs_in_node:65286 in summary, ino:0, nid:6, max:1018
Related advisories
Vendor advisories explicitly linked to this CVE.
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:N/UI:R/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable path is reached only by mounting a crafted f2fs image locally (mount → f2fs_fill_super → f2fs_recover_fsync_data → recover_data → check_index_in_prev_nodes, and GC's is_alive); there is no network or adjacent-protocol entry point. AC:L - The attacker fully controls the on-disk SSA summary ofs_in_node field, and a value such as 65286 (>= ADDRS_PER_PAGE) deterministically triggers the out-of-range access on every mount with no race or uncontrollable memory layout required. PR:N - Authoring and delivering the malicious f2fs image requires no privileges on the target; mount privilege belongs to the victim or an automounter (Android vold, udisks2), matching the established crafted-image scoring pattern for f2fs. UI:R - f2fs lacks FS_USERNS_MOUNT so mounting needs CAP_SYS_ADMIN in the initial user namespace; exploitation therefore requires a victim (or automount daemon acting on inserted media) to mount the crafted image. S:U - The out-of-bounds page access and resulting memory corruption remain within the host kernel's security authority; this is not a VM escape, IOMMU bypass, or other cross-boundary impact. C:H - data_blkaddr/f2fs_data_blkaddr indexes addr_array[base+ofs_in_node] with an attacker-chosen u16 past the 4K node page (KASAN use-after-free/OOB read of size 4), enabling arbitrary adjacent kernel memory disclosure. I:H - When the OOB-read blkaddr matches, truncate_out calls f2fs_truncate_data_blocks_range → f2fs_set_data_blkaddr which writes NULL_ADDR at the unvalidated offset, yielding an out-of-bounds write/UAF primitive treated as high integrity impact. A:H - The same OOB/UAF access causes a kernel oops or panic (as in the original KASAN report on mount), fully denying availability and remaining repeatable on each mount of the crafted image.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b292dcab068e141d8a820b77cbcc88d98c610eb4 to < c99860f9a75079f339ed7670425b1ac58f26e2ff (affected · git)b292dcab068e141d8a820b77cbcc88d98c610eb4 to < 4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e (affected · git)b292dcab068e141d8a820b77cbcc88d98c610eb4 to < 73687c53919f49dff3852155621dab7a35c52854 (affected · git)b292dcab068e141d8a820b77cbcc88d98c610eb4 to < e168f819bfa42459b14f479e55ebd550bcc78899 (affected · git)b292dcab068e141d8a820b77cbcc88d98c610eb4 to < 0922ad64ccefa3e483e84355942b86e13c8fea68 (affected · git)b292dcab068e141d8a820b77cbcc88d98c610eb4 to < c6ad7fd16657ebd34a87a97d9588195aae87597d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.11 (affected)0 to < 3.11 (unaffected · semver)5.4.220 through 5.4.* (unaffected · semver)5.10.150 through 5.10.* (unaffected · semver)5.15.75 through 5.15.* (unaffected · semver)5.19.17 through 5.19.* (unaffected · semver)6.0.3 through 6.0.* (unaffected · semver)6.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
6- https://git.kernel.org/stable/c/0922ad64ccefa3e483e84355942b86e13c8fea68
- https://git.kernel.org/stable/c/4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e
- https://git.kernel.org/stable/c/73687c53919f49dff3852155621dab7a35c52854
- https://git.kernel.org/stable/c/c6ad7fd16657ebd34a87a97d9588195aae87597d
- https://git.kernel.org/stable/c/c99860f9a75079f339ed7670425b1ac58f26e2ff
- https://git.kernel.org/stable/c/e168f819bfa42459b14f479e55ebd550bcc78899
Provider assertions
1Linux · cna
f2fs: fix to do sanity check on summary info
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 31cbd0d41d09d1efc0e502d1a1b3d3cb0a645113bb9957b07a4b230a77004486
- Ingested
- 23 Sep 2026, 08:04:58 UTC
- Source record
- Official CVE record