CVE-2022-49107

ceph: fix memory leak in ceph_readdir when note_last_dentry returns error

State
Published
Severity
5.5 Medium
Published
Feb 26, 2025
Updated
Aug 12, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

Affected Products

ProductVersions
LinuxLinux
  • 2817b000b02c5f0c05af67c01fb2684e1381d6ef to before f4429786129648a8f4bb1e5faa143c4478cc5c4aAffected
  • 2817b000b02c5f0c05af67c01fb2684e1381d6ef to before 2fe82d3254029ef9ec4e7be890125d5ef4f537deAffected
  • 2817b000b02c5f0c05af67c01fb2684e1381d6ef to before e792575b902a3939ca482491ee9fb3a236f99640Affected
  • 2817b000b02c5f0c05af67c01fb2684e1381d6ef to before 7f740ede35132d3d5d19747cad56a511d21bb156Affected
  • 2817b000b02c5f0c05af67c01fb2684e1381d6ef to before f639d9867eea647005dc824e0e24f39ffc50d4e4Affected
LinuxLinux
  • 2.6.34Affected
  • before 2.6.34Not affected
  • 5.10.111 through 5.10.*Not affected
  • 5.15.34 through 5.15.*Not affected
  • 5.16.20 through 5.16.*Not affected
  • 5.17.3 through 5.17.*Not affected
  • 5.18 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.