Bug 2298197 (CVE-2022-48856)

Summary: CVE-2022-48856 kernel: gianfar: ethtool: Fix refcount leak in gfar_get_ts_info
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel 4.19.235, kernel 5.4.185, kernel 5.10.106, kernel 5.15.29, kernel 5.16.15, kernel 5.17 Doc Type: If docs needed, set a value
Doc Text:
A refcount leak flaw was found in the function gfar_get_ts_info in the Linux kernel's gianfar Ethernet driver. This issue occurs due to the of_find_compatible_node() function incrementing the reference count of a device tree node pointer.
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 2024-07-16 13:25:41 UTC
In the Linux kernel, the following vulnerability has been resolved:

gianfar: ethtool: Fix refcount leak in gfar_get_ts_info

The of_find_compatible_node() function returns a node pointer with
refcount incremented, We should use of_node_put() on it when done
Add the missing of_node_put() to release the refcount.