Advisory Published
Updated

CVE-2021-47467: kunit: fix reference count leak in kfree_at_end

First published: Wed May 22 2024(Updated: )

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);

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel
Linux Kernel>=5.14<5.14.15
Linux Kernel=5.15-rc1
Linux Kernel=5.15-rc2
Linux Kernel=5.15-rc3
Linux Kernel=5.15-rc4
Linux Kernel=5.15-rc5

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-47467?

    CVE-2021-47467 has been classified as a medium severity vulnerability.

  • How do I fix CVE-2021-47467?

    To fix CVE-2021-47467, update to a patched version of the Linux kernel that addresses this vulnerability.

  • What software is affected by CVE-2021-47467?

    CVE-2021-47467 affects specific versions of the Linux kernel.

  • What is the nature of the vulnerability in CVE-2021-47467?

    CVE-2021-47467 is a reference counting issue that can lead to memory management problems.

  • Is there a workaround for CVE-2021-47467?

    There is no specific workaround for CVE-2021-47467; upgrading the kernel is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203