CVE-2021-47467

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-47467
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-47467.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-47467
Downstream
Related
Published
2024-05-22T07:15:11Z
Modified
2025-08-09T20:01:26Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

kunit: fix reference count leak in kfreeatend

The reference counting issue happens in the normal path of kfreeatend(). When kunitallocandgetresource() is invoked, the function forgets to handle the returned resource object, whose refcount increased inside, causing a refcount leak.

Fix this issue by calling kunitallocresource() instead of kunitallocandgetresource().

Fixed the following when applying: Shuah Khan skhan@linuxfoundation.org

CHECK: Alignment should match open parenthesis + kunitallocresource(test, NULL, kfreeresfree, GFPKERNEL, (void *)tofree);

References

Affected packages