# CVE-2026-98842: module: fix lost error code from codetag_load_module()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-18T15:50:19.217Z
- Modified: 2026-10-19T10:19:48.303Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 044d2aee6c575231ed4a24fb3d119bad0937488b before 258310d59a82ea4854bfd9138682bbaac1153b19; from 044d2aee6c575231ed4a24fb3d119bad0937488b before bfc721eef5c13704efe6864c7da2ad4b0d75f60a; from 044d2aee6c575231ed4a24fb3d119bad0937488b before c79cf15eb35a4c703bf18f8c33c47e80dd660f8e; b6bbbb8ef48dde09c0dbd77121fa0f09b0237fec; from 6.15.4 before 6.16; 6.16 (not affected: before 6.16; from 6.18.56 up to 6.18.*; from 7.2.10 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/258310d59a82ea4854bfd9138682bbaac1153b19>
- <https://git.kernel.org/stable/c/bfc721eef5c13704efe6864c7da2ad4b0d75f60a>
- <https://git.kernel.org/stable/c/c79cf15eb35a4c703bf18f8c33c47e80dd660f8e>

## Sources

- CVE List: [CVE-2026-98842](https://www.cve.org/CVERecord?id=CVE-2026-98842), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98842](https://nvd.nist.gov/vuln/detail/CVE-2026-98842), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98842 · Whole record: https://cve.day/CVE-2026-98842.json · Rebuilt by cve.day 2026-11-25T22:59:45.323Z
