CVE-2022-49770: ceph: avoid putting the realm twice when decoding snaps fails
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.
Security readout for executives and security teams
Plain-English summary
A Linux Ceph filesystem flaw can mishandle memory when snapshot information fails to decode. The same object may be released twice, potentially causing crashes, kernel failures, or use-after-free behavior. The supplied CVSS rating is 9.8, but exposure depends on using the affected kernel Ceph functionality.
Executive priority
Treat as urgent for environments using kernel-based Ceph, especially production storage clients. Rapidly establish actual Ceph usage and vendor patch status before assuming fleet-wide exposure. Systems without this functionality are less likely to be affected based on the described code path.
Technical view
During failed Ceph snapshot decoding, first_realm and realm may reference the same snaprealm. Cleanup can then decrement or release that object twice, producing a use-after-free, BUG_ON, or other unpredictable kernel behavior. Six Linux stable-tree commits are cited as fixes.
Likely exposure
Prioritize Linux systems using kernel Ceph filesystem functionality, particularly snapshot handling. The bundle marks several kernel versions from 4.0 through 6.1 as affected, but its version data is ambiguous; confirm exact vulnerable and fixed builds with the kernel or distribution vendor.
Exploitation context
CISA KEV status is false, and the supplied sources provide no evidence of active exploitation or a public exploit. Although the supplied CVSS vector describes network-reachable, unauthenticated impact, the bundle does not establish practical attack prerequisites or reliable remote exploitation.
Researcher notes
The failure occurs in cleanup after snapshot decoding errors, where aliasing between first_realm and realm can cause a double put. The sources identify possible use-after-free and BUG_ON outcomes but do not document reproducibility, attacker-controlled inputs, exploitation reliability, or observed attacks.
Mitigation direction
Install a supported vendor kernel containing the CVE-2022-49770 Ceph fix.
Reboot affected systems into the updated kernel and confirm the running version.
Prioritize Ceph clients processing snapshots or untrusted Ceph metadata.
If immediate patching is impossible, consult vendor guidance for supported exposure-reduction measures.
Validation and detection
Inventory running kernel versions across systems using Ceph filesystem functionality.
Confirm whether the kernel Ceph client and snapshot features are actively used.
Map vendor kernel builds to the cited stable-tree fixes or vendor advisories.
After updating, verify systems booted into the remediated kernel.
Review kernel logs for Ceph-related use-after-free, BUG_ON, or unexplained crashes.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2022-49770 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
7Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.