module: fix lost error code from codetag_load_module()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
6.16
|
In the Linux kernel, the following vulnerability has been resolved:
module: fix lost error code from codetag_load_module()
If codetag_load_module() fails, err is not set to reflect the failure and load_module() returns 0 after the module has been torn down.
Also, if the module is a livepatch, mod->klp_info allocated by copy_module_elf() leaks on this error path. Free it via a new livepatch_cleanup label.
From the CVE record · Linux
When codetag_load_module() fails, the Linux kernel module loader can tear down the module but return success. On that error path, a livepatch module can also leak allocated memory. The input does not specify an attacker action or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels should check for this issue; affected versions are not specified.