Bug 2347849 (CVE-2022-49107)

Summary: CVE-2022-49107 kernel: ceph: fix memory leak in ceph_readdir when note_last_dentry returns error
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: dfreiber, drow, jburrell, rhel-process-autobot, vkumar, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Ceph file system driver within the Linux kernel. A local user can cause a Denial of Service (DoS) by triggering repeated directory read operations that encounter specific error conditions. When recording directory entries fails during reading, the driver fails to release allocated memory. Over time, this memory leak can exhaust available system memory and degrade system performance.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-02-26 03:08:54 UTC
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.

Comment 1 Avinash Hanwate 2025-02-26 19:04:03 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022601-CVE-2022-49107-03bc@gregkh/T