CVE-2022-49770 ceph: avoid putting the realm twice when decoding snaps fails

Critical 9.8 Published Updated

A double free in the Ceph filesystem code can lead to use-after-free, causing system crashes or potential code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-49770?

CVE-2022-49770 is a critical use after free vulnerability in Linux kernel, published on 1 May 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-416

Which versions are affected by CVE-2022-49770?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49770?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-49770 being exploited?

There is no known exploitation of CVE-2022-49770 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49770, GHSA-vc2j-428r-9px5, UBUNTU-CVE-2022-49770.

Is CVE-2022-49770 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free