What’s Vulnerable › Vulnerabilities

CVE-2025-37995: module: ensure that kobject_put() is safe for module type kobjects

Description

In the Linux kernel, the following vulnerability has been resolved: module: ensure that kobject_put() is safe for module type kobjects In 'lookup_or_create_module_kobject()', an internal kobject is created using 'module_ktype'. So call to 'kobject_put()' on error handling path causes an attempt to use an uninitialized completion pointer in 'module_kobject_release()'. In this scenario, we just want to release kobject without an extra synchronization required for a regular module unloading process, so adding an extra check whether 'complete()' is actually required makes 'kobject_put()' safe.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.238, 5.15.183, 5.4.294, 6.1.139. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-37995 or the next vulnerability affects your stack