# CVE-2022-49107: ceph: fix memory leak in ceph_readdir when note_last_dentry returns error

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2025-02-26T01:54:54.493Z
- Modified: 2026-08-13T00:17:27.750Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

ceph: fix memory leak in ceph_readdir when note_last_dentry returns error

Reset the last_readdir at the same time, and add a comment explaining
why we don't free last_readdir when dir_emit returns false.

(As written by CVE List.)

## Affected

- Linux Linux: from 2817b000b02c5f0c05af67c01fb2684e1381d6ef before f4429786129648a8f4bb1e5faa143c4478cc5c4a; from 2817b000b02c5f0c05af67c01fb2684e1381d6ef before 2fe82d3254029ef9ec4e7be890125d5ef4f537de; from 2817b000b02c5f0c05af67c01fb2684e1381d6ef before e792575b902a3939ca482491ee9fb3a236f99640; from 2817b000b02c5f0c05af67c01fb2684e1381d6ef before 7f740ede35132d3d5d19747cad56a511d21bb156; from 2817b000b02c5f0c05af67c01fb2684e1381d6ef before f639d9867eea647005dc824e0e24f39ffc50d4e4; 2.6.34 (not affected: before 2.6.34; from 5.10.111 up to 5.10.*; 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: before 5.10.111; from 5.11 before 5.15.34; from 5.16 before 5.16.20; from 5.17 before 5.17.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/f4429786129648a8f4bb1e5faa143c4478cc5c4a> (patch)
- <https://git.kernel.org/stable/c/2fe82d3254029ef9ec4e7be890125d5ef4f537de> (patch)
- <https://git.kernel.org/stable/c/e792575b902a3939ca482491ee9fb3a236f99640> (patch)
- <https://git.kernel.org/stable/c/7f740ede35132d3d5d19747cad56a511d21bb156> (patch)
- <https://git.kernel.org/stable/c/f639d9867eea647005dc824e0e24f39ffc50d4e4> (patch)

## Sources

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

---

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