CVE-2022-50753
f2fs: fix to do sanity check on summary info
Check your servers for CVE-2022-50753
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50753 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b292dcab068e141d8a820b77cbcc88d98c610eb4, before c99860f9a75079f339ed7670425b1ac58f26e2ff affected from b292dcab068e141d8a820b77cbcc88d98c610eb4, before 4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e affected from b292dcab068e141d8a820b77cbcc88d98c610eb4, before 73687c53919f49dff3852155621dab7a35c52854 affected from b292dcab068e141d8a820b77cbcc88d98c610eb4, before e168f819bfa42459b14f479e55ebd550bcc78899 affected from b292dcab068e141d8a820b77cbcc88d98c610eb4, before 0922ad64ccefa3e483e84355942b86e13c8fea68 affected from b292dcab068e141d8a820b77cbcc88d98c610eb4, before c6ad7fd16657ebd34a87a97d9588195aae87597d
Other versions: unaffected
|
| Linux |
affected 3.11 unaffected before 3.11 unaffected from 5.4.220 up to and including 5.4.* unaffected from 5.10.150 up to and including 5.10.* unaffected from 5.15.75 up to and including 5.15.* unaffected from 5.19.17 up to and including 5.19.* unaffected from 6.0.3 up to and including 6.0.* unaffected 6.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50753 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50753
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50753
trivy image --scanners vuln IMAGE | grep CVE-2022-50753
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/c99860f9a75079f339ed7670425b1ac58f26e2ff git.kernel.org
- https://git.kernel.org/stable/c/4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e git.kernel.org
- https://git.kernel.org/stable/c/73687c53919f49dff3852155621dab7a35c52854 git.kernel.org
- https://git.kernel.org/stable/c/e168f819bfa42459b14f479e55ebd550bcc78899 git.kernel.org
- https://git.kernel.org/stable/c/0922ad64ccefa3e483e84355942b86e13c8fea68 git.kernel.org
- https://git.kernel.org/stable/c/c6ad7fd16657ebd34a87a97d9588195aae87597d git.kernel.org
Source: the record CVE-2022-50753 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse