Bug 2347912 (CVE-2022-49064)

Summary: CVE-2022-49064 kernel: cachefiles: unmark inode in use in error path
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, vkumar
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 in the Linux kernel's cachefiles subsystem can lead to resource leakage due to improper handling of inodes during error conditions. Specifically, if an error occurs in functions like cachefiles_open_file() or cachefiles_create_tmpfile(), the associated inode may not be correctly unmarked as "in use." This oversight can result in the system erroneously reporting "Inode already in use" when attempting to access the same inode again, potentially hindering legitimate operations and affecting system availability.
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:11:09 UTC
In the Linux kernel, the following vulnerability has been resolved:

cachefiles: unmark inode in use in error path

Unmark inode in use if error encountered. If the in-use flag leakage
occurs in cachefiles_open_file(), Cachefiles will complain "Inode
already in use" when later another cookie with the same index key is
looked up.

If the in-use flag leakage occurs in cachefiles_create_tmpfile(), though
the "Inode already in use" warning won't be triggered, fix the leakage
anyway.

Comment 1 Avinash Hanwate 2025-02-26 12:59:08 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022654-CVE-2022-49064-3c74@gregkh/T

Comment 4 Avinash Hanwate 2025-02-26 17:12:07 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022654-CVE-2022-49064-3c74@gregkh/T