CVE-2022-50313
erofs: fix order >= MAX_ORDER warning due to crafted negative i_size
Check your servers for CVE-2022-50313
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-50313 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:
erofs: fix order >= MAX_ORDER warning due to crafted negative i_size
As syzbot reported [1], the root cause is that i_size field is a signed type, and negative i_size is also less than EROFS_BLKSIZ. As a consequence, it's handled as fast symlink unexpectedly.
Let's fall back to the generic path to deal with such unusual i_size.
[1] https://lore.kernel.org/r/000000000000ac8efa05e7feaa1f@google.com
Exploitation
EPSS 0.17%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.16% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 431339ba90423a038914c6032bfd71f0ba7ef2f2, before 17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f affected from 431339ba90423a038914c6032bfd71f0ba7ef2f2, before 0ab621fcdff1a58ff4de51a8590fa92a0ecd34be affected from 431339ba90423a038914c6032bfd71f0ba7ef2f2, before acc2f40b980c61a9178b72cdedd150b829064997 affected from 431339ba90423a038914c6032bfd71f0ba7ef2f2, before b6c8330f5b0f22149957a2e4977fd0f01a9db7cd affected from 431339ba90423a038914c6032bfd71f0ba7ef2f2, before 6235fb899b25fd287d5e42635ff82196395708cc affected from 431339ba90423a038914c6032bfd71f0ba7ef2f2, before 1dd73601a1cba37a0ed5f89a8662c90191df5873
Other versions: unaffected
|
| Linux |
affected 4.19 unaffected before 4.19 unaffected from 5.4.289 up to and including 5.4.* unaffected from 5.10.233 up to and including 5.10.* unaffected from 5.15.82 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-50313 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50313
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-50313
trivy image --scanners vuln IMAGE | grep CVE-2022-50313
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/17a0cdbd7b0cf0fc0d7ca4187a67f8f1c18c291f git.kernel.org
- https://git.kernel.org/stable/c/0ab621fcdff1a58ff4de51a8590fa92a0ecd34be git.kernel.org
- https://git.kernel.org/stable/c/acc2f40b980c61a9178b72cdedd150b829064997 git.kernel.org
- https://git.kernel.org/stable/c/b6c8330f5b0f22149957a2e4977fd0f01a9db7cd git.kernel.org
- https://git.kernel.org/stable/c/6235fb899b25fd287d5e42635ff82196395708cc git.kernel.org
- https://git.kernel.org/stable/c/1dd73601a1cba37a0ed5f89a8662c90191df5873 git.kernel.org
Source: the record CVE-2022-50313 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