# CVE-2022-49109: ceph: fix inode reference leakage in ceph_get_snapdir()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.28%, higher than 14% of CVEs (2026-11-30)
- Published: 2025-02-26T01:54:55.508Z
- Modified: 2026-08-13T00:17:27.930Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ceph: fix inode reference leakage in ceph_get_snapdir()

The ceph_get_inode() will search for or insert a new inode into the
hash for the given vino, and return a reference to it. If new is
non-NULL, its reference is consumed.

We should release the reference when in error handing cases.

(As written by CVE List.)

## Affected

- Linux Linux: from 3e10a15ffc8d77f05e655d14fd48c0b790dede35 before 3ae7163598c611a8892698e0c056fe794e52b44b; from 3e10a15ffc8d77f05e655d14fd48c0b790dede35 before 9cd21981dedfb4fe9f344529e4be35727cb10940; from 3e10a15ffc8d77f05e655d14fd48c0b790dede35 before b2d9bb3f06abddefdfa740b0a604575b6797e1bf; from 3e10a15ffc8d77f05e655d14fd48c0b790dede35 before 322794d3355c33adcc4feace0045d85a8e4ed813; 5.13 (not affected: before 5.13; from 5.15.34 up to 5.15.*; from 5.16.20 up to 5.16.*; from 5.17.3 up to 5.17.*; from 5.18 up to *)
- linux linux_kernel: from 2.6.35 before 5.15.34; from 5.16 before 5.16.20; from 5.17 before 5.17.3; 2.6.34

## References

- <https://git.kernel.org/stable/c/3ae7163598c611a8892698e0c056fe794e52b44b> (patch)
- <https://git.kernel.org/stable/c/9cd21981dedfb4fe9f344529e4be35727cb10940> (patch)
- <https://git.kernel.org/stable/c/b2d9bb3f06abddefdfa740b0a604575b6797e1bf> (patch)
- <https://git.kernel.org/stable/c/322794d3355c33adcc4feace0045d85a8e4ed813> (patch)

## Sources

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

---

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