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

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 53% of CVEs (2026-11-30)
- Published: 2025-05-01T14:09:08.173Z
- Modified: 2026-08-15T13:17:28.167Z
- Weaknesses: CWE-416
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85 before 274e4c79a3a2a24fba7cfe0e41113f1138785c37; from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85 before cb7495fe957526555782ce0723f79ce92a6db22e; from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85 before 044bc6d3c2c0e9090b0841e7b723875756534b45; from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85 before 2f6e2de3a5289004650118b61f138fe7c28e1905; from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85 before fd879c83e87735ab8f00ef7755752cf0cbae24b2; from 982d6011bc30a26e8a3d546e0e7fc7db2c255d85 before 51884d153f7ec85e18d607b2467820a90e0f4359; 4.0 (not affected: before 4.0; from 4.19.268 up to 4.19.*; from 5.4.226 up to 5.4.*; from 5.10.157 up to 5.10.*; from 5.15.81 up to 5.15.*; from 6.0.10 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 2.6.35 before 4.19.268; from 4.20 before 5.4.226; from 5.5 before 5.10.157; from 5.11 before 5.15.81; from 5.16 before 6.0.10; 2.6.34; 6.1

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/274e4c79a3a2a24fba7cfe0e41113f1138785c37> (patch)
- <https://git.kernel.org/stable/c/cb7495fe957526555782ce0723f79ce92a6db22e> (patch)
- <https://git.kernel.org/stable/c/044bc6d3c2c0e9090b0841e7b723875756534b45> (patch)
- <https://git.kernel.org/stable/c/2f6e2de3a5289004650118b61f138fe7c28e1905> (patch)
- <https://git.kernel.org/stable/c/fd879c83e87735ab8f00ef7755752cf0cbae24b2> (patch)
- <https://git.kernel.org/stable/c/51884d153f7ec85e18d607b2467820a90e0f4359> (patch)

## Sources

- CVE List: [CVE-2022-49770](https://www.cve.org/CVERecord?id=CVE-2022-49770), CVE Terms of Use, modified 2026-08-15
- NVD: [CVE-2022-49770](https://nvd.nist.gov/vuln/detail/CVE-2022-49770), Public domain, modified 2026-08-15

---

Page: https://cve.day/CVE-2022-49770 · Whole record: https://cve.day/CVE-2022-49770.json · Rebuilt by cve.day 2026-11-25T22:58:20.861Z
