CVE-2022-49770
ceph: avoid putting the realm twice when decoding snaps fails
Check your servers for CVE-2022-49770
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-49770 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:
ceph: avoid putting the realm twice when decoding snaps fails
When decoding the snaps fails it maybe leaving the 'first_realm' and 'realm' pointing to the same snaprealm memory. And then it'll put it twice and could cause random use-after-free, BUG_ON, etc issues.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- 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.58%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 49.1% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85, before 274e4c79a3a2a24fba7cfe0e41113f1138785c37 affected from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85, before cb7495fe957526555782ce0723f79ce92a6db22e affected from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85, before 044bc6d3c2c0e9090b0841e7b723875756534b45 affected from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85, before 2f6e2de3a5289004650118b61f138fe7c28e1905 affected from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85, before fd879c83e87735ab8f00ef7755752cf0cbae24b2 affected from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85, before 51884d153f7ec85e18d607b2467820a90e0f4359
Other versions: unaffected
|
| Linux |
affected 4.0 unaffected before 4.0 unaffected from 4.19.268 up to and including 4.19.* unaffected from 5.4.226 up to and including 5.4.* unaffected from 5.10.157 up to and including 5.10.* unaffected from 5.15.81 up to and including 5.15.* unaffected from 6.0.10 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-49770 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49770
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-49770
trivy image --scanners vuln IMAGE | grep CVE-2022-49770
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/274e4c79a3a2a24fba7cfe0e41113f1138785c37 git.kernel.org
- https://git.kernel.org/stable/c/cb7495fe957526555782ce0723f79ce92a6db22e git.kernel.org
- https://git.kernel.org/stable/c/044bc6d3c2c0e9090b0841e7b723875756534b45 git.kernel.org
- https://git.kernel.org/stable/c/2f6e2de3a5289004650118b61f138fe7c28e1905 git.kernel.org
- https://git.kernel.org/stable/c/fd879c83e87735ab8f00ef7755752cf0cbae24b2 git.kernel.org
- https://git.kernel.org/stable/c/51884d153f7ec85e18d607b2467820a90e0f4359 git.kernel.org
Source: the record CVE-2022-49770 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