In the Linux kernel, the following vulnerability has been resolved:
kunit: fix reference count leak in kfree_at_end
The reference counting issue happens in the normal path of
kfree_at_end(). When kunit_alloc_and_get_resource() is invoked, the
function forgets to handle the returned resource object, whose refcount
increased inside, causing a refcount leak.
Fix this issue by calling kunit_alloc_resource() instead of
kunit_alloc_and_get_resource().
Fixed the following when applying:
Shuah Khan <skhan@linuxfoundation.org>
CHECK: Alignment should match open parenthesis
+ kunit_alloc_resource(test, NULL, kfree_res_free, GFP_KERNEL,
(void *)to_free);
Metrics
Affected Vendors & Products
References
History
Tue, 05 Nov 2024 16:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
cvssV3_1
|
cvssV3_1
|
Mon, 04 Nov 2024 12:15:00 +0000
Type | Values Removed | Values Added |
---|---|---|
Metrics |
ssvc
|
MITRE
Status: PUBLISHED
Assigner: Linux
Published: 2024-05-22T06:23:26.324Z
Updated: 2024-11-05T15:29:17.938Z
Reserved: 2024-05-22T06:20:56.198Z
Link: CVE-2021-47467
Vulnrichment
Updated: 2024-08-04T05:39:59.605Z
NVD
Status : Awaiting Analysis
Published: 2024-05-22T07:15:11.533
Modified: 2024-11-05T16:35:02.863
Link: CVE-2021-47467
Redhat