CVE-2022-48859
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-48859 is a vulnerability in the Linux kernel's Marvell Prestera driver. The issue was discovered in the presteraswitchsetbasemacaddr function where there was a missing ofnode_put() call, leading to a reference count leak. The vulnerability was disclosed on July 16, 2024, affecting the Marvell Prestera family ASIC devices driver in the Linux kernel (Kernel Git).

Technical details

The vulnerability stems from a missing reference count decrement in the presteraswitchsetbasemacaddr function. Specifically, the node pointer returned by offindcompatiblenode() had its reference count incremented, but the corresponding ofnodeput() call was missing, resulting in a reference count leak. This issue was introduced in commit 501ef3066c89 which added the driver for Prestera family ASIC devices (Kernel Git).

Impact

The vulnerability results in a kernel memory leak due to the missing reference count decrement. While the impact is relatively minor, it could potentially lead to resource exhaustion over time if the affected code path is repeatedly executed (Debian Tracker).

Mitigation and workarounds

The vulnerability has been fixed by adding the missing ofnodeput(np) call in the presteraswitchsetbasemac_addr function. The fix has been incorporated into various Linux kernel versions, including the 5.15 series and later. Users should update their kernel to a patched version (Kernel Git).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management