Description
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.
Published: 2026-10-18
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Silent failure during module load and memory leak in livepatch modules
Action: Patch Kernel
AI Analysis

Impact

The Linux kernel contains a flaw in the function codetag_load_module() that may fail without propagating its error code. When this occurs, load_module() incorrectly returns 0, implying the module was loaded successfully even after being torn down. Additionally, when a livepatch module is being loaded, the structure allocated by copy_module_elf() leaks because the error path does not perform the intended cleanup. This is a CWE‑393 improper error handling flaw that can mislead administrators and waste memory over time.

Affected Systems

All Linux kernel builds that include the codetag_load_module() function are affected. This includes kernel releases prior to the commit that introduced the error‑handling fix and the livepatch cleanup label. Based on the vendor list, it can be inferred that any Linux distribution packaging such a kernel may be impacted, but the CVE data does not enumerate specific distributions.

Risk and Exploitability

The CVSS score is 4.4 and the EPSS score is less than 1 %. It is inferred that a local user with the ability to load kernel modules via insmod or modprobe could trigger the fault, as the error path is executed during module loading. The lack of public exploitation evidence and the low EPSS score suggest that this vulnerability is not a high‑risk target for remote attackers, although the silent failure and memory leak present operational concerns for administrators.

Generated by OpenCVE AI on October 24, 2026 at 06:05 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the codetag_load_module() error‑handling fix and the livepatch cleanup label.
  • Enforce signed‑module loading to restrict module installation to trusted code, limiting the opportunity for a malicious module to trigger the fault.
  • If livepatching must remain active and a patched kernel is not yet available, disable livepatching temporarily (e.g., set klp.patch.enable=0) to prevent the klp_info memory leak.

Generated by OpenCVE AI on October 24, 2026 at 06:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 24 Oct 2026 03:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401
CWE-754

Sat, 24 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-393
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sun, 18 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401
CWE-754

Sun, 18 Oct 2026 16:00:00 +0000

Type Values Removed Values Added
Description 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.
Title module: fix lost error code from codetag_load_module()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:26:34.441Z

Reserved: 2026-09-25T10:25:14.373Z

Link: CVE-2026-98842

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:38.527

Modified: 2026-10-19T10:19:48.303

Link: CVE-2026-98842

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-18T00:00:00Z

Links: CVE-2026-98842 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-24T06:15:14Z

Weaknesses
  • CWE-393

    Return of Wrong Status Code