Bug 1228007 (CVE-2022-48859)

Summary: VUL-0: CVE-2022-48859: kernel: net: marvell: prestera: Add missing of_node_put() in prestera_switch_set_base_mac_addr
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: gianluca.gabrielli, miroslav.franc
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/414277/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-48859:5.5:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-07-17 08:09:02 UTC
In the Linux kernel, the following vulnerability has been resolved:

net: marvell: prestera: Add missing of_node_put() in prestera_switch_set_base_mac_addr

This node pointer is returned by of_find_compatible_node() with
refcount incremented. Calling of_node_put() to aovid the refcount leak.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-48859
https://www.cve.org/CVERecord?id=CVE-2022-48859
https://git.kernel.org/stable/c/4cc66bf17220ff9631f9fa99b02a872e0ad5a08b
https://git.kernel.org/stable/c/b7c2fd1d126329340639adfb8dd2938fe4b65df7
https://git.kernel.org/stable/c/c9ffa3e2bc451816ce0295e40063514fabf2bd36
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2022/CVE-2022-48859.mbox
https://bugzilla.redhat.com/show_bug.cgi?id=2298203