CVE-2021-47467
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
22/05/2024
Last modified:
02/04/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
kunit: fix reference count leak in kfree_at_end<br />
<br />
The reference counting issue happens in the normal path of<br />
kfree_at_end(). When kunit_alloc_and_get_resource() is invoked, the<br />
function forgets to handle the returned resource object, whose refcount<br />
increased inside, causing a refcount leak.<br />
<br />
Fix this issue by calling kunit_alloc_resource() instead of<br />
kunit_alloc_and_get_resource().<br />
<br />
Fixed the following when applying:<br />
Shuah Khan <br />
<br />
CHECK: Alignment should match open parenthesis<br />
+ kunit_alloc_resource(test, NULL, kfree_res_free, GFP_KERNEL,<br />
(void *)to_free);
Impact
Base Score 3.x
5.30
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.14 (including) | 5.14.15 (excluding) |
| cpe:2.3:o:linux:linux_kernel:5.15:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.15:rc5:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



