
Cloud Vulnerability DB
A community-led vulnerabilities database
A use-after-free vulnerability was discovered in the Linux kernel's binder implementation (CVE-2022-49939). The vulnerability occurs when a transaction of type BINDERTYPEWEAKHANDLE fails to increment the reference for a node, leading to a race condition between the target proc release and binderdeferred_release() (NVD, Wiz).
The vulnerability manifests when a transaction fails to increment the reference for a node in BINDERTYPEWEAKHANDLE transactions. While the target proc normally releases the failed reference upon close, a race condition occurs if the target is dying in parallel with binderdeferredrelease(). This can result in the target releasing all references prematurely, leaving the cleanup of the new failed reference unhandled. When the transaction ends and the target proc is released, ref->proc becomes a dangling pointer. The issue is triggered when ref->node is closed and attempts to take spinlock(&ref->proc->inner_lock), leading to a use-after-free bug (Wiz).
The vulnerability can lead to a use-after-free condition in the Linux kernel, potentially allowing attackers to execute arbitrary code or cause system crashes. The issue specifically affects the kernel's binder implementation, which is a core component for inter-process communication (Wiz).
The fix involves cleaning up the failed reference immediately instead of relying on the target to do so. This prevents the race condition that leads to the use-after-free vulnerability. The patch has been integrated into various Linux kernel versions (Wiz).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."