{"id":"CVE-2026-98842","state":"PUBLISHED","title":"module: fix lost error code from codetag_load_module()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmodule: fix lost error code from codetag_load_module()\n\nIf codetag_load_module() fails, err is not set to reflect the failure\nand load_module() returns 0 after the module has been torn down.\n\nAlso, if the module is a livepatch, mod->klp_info allocated by\ncopy_module_elf() leaks on this error path.  Free it via a new\nlivepatch_cleanup label.","publishedAt":"2026-10-18T15:50:19.217Z","updatedAt":"2026-10-19T09:26:34.441Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"044d2aee6c575231ed4a24fb3d119bad0937488b","status":"affected","lessThan":"258310d59a82ea4854bfd9138682bbaac1153b19","versionType":"git"},{"version":"044d2aee6c575231ed4a24fb3d119bad0937488b","status":"affected","lessThan":"bfc721eef5c13704efe6864c7da2ad4b0d75f60a","versionType":"git"},{"version":"044d2aee6c575231ed4a24fb3d119bad0937488b","status":"affected","lessThan":"c79cf15eb35a4c703bf18f8c33c47e80dd660f8e","versionType":"git"},{"version":"b6bbbb8ef48dde09c0dbd77121fa0f09b0237fec","status":"affected","versionType":"git"},{"version":"6.15.4","status":"affected","lessThan":"6.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/module/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.56","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.10","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/module/main.c"]}],"references":["https://git.kernel.org/stable/c/258310d59a82ea4854bfd9138682bbaac1153b19","https://git.kernel.org/stable/c/bfc721eef5c13704efe6864c7da2ad4b0d75f60a","https://git.kernel.org/stable/c/c79cf15eb35a4c703bf18f8c33c47e80dd660f8e"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98842.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98842","state":"PUBLISHED","datePublished":"2026-10-18T15:50:19.217Z","dateUpdated":"2026-10-19T09:26:34.441Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.373Z"},"containers":{"cna":{"title":"module: fix lost error code from codetag_load_module()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmodule: fix lost error code from codetag_load_module()\n\nIf codetag_load_module() fails, err is not set to reflect the failure\nand load_module() returns 0 after the module has been torn down.\n\nAlso, if the module is a livepatch, mod->klp_info allocated by\ncopy_module_elf() leaks on this error path.  Free it via a new\nlivepatch_cleanup label."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"044d2aee6c575231ed4a24fb3d119bad0937488b","status":"affected","lessThan":"258310d59a82ea4854bfd9138682bbaac1153b19","versionType":"git"},{"version":"044d2aee6c575231ed4a24fb3d119bad0937488b","status":"affected","lessThan":"bfc721eef5c13704efe6864c7da2ad4b0d75f60a","versionType":"git"},{"version":"044d2aee6c575231ed4a24fb3d119bad0937488b","status":"affected","lessThan":"c79cf15eb35a4c703bf18f8c33c47e80dd660f8e","versionType":"git"},{"version":"b6bbbb8ef48dde09c0dbd77121fa0f09b0237fec","status":"affected","versionType":"git"},{"version":"6.15.4","status":"affected","lessThan":"6.16","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/module/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.16","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.16","versionType":"semver"},{"version":"6.18.56","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.10","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/module/main.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/258310d59a82ea4854bfd9138682bbaac1153b19"},{"url":"https://git.kernel.org/stable/c/bfc721eef5c13704efe6864c7da2ad4b0d75f60a"},{"url":"https://git.kernel.org/stable/c/c79cf15eb35a4c703bf18f8c33c47e80dd660f8e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:26:34.441Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"6.18.56"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.2.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.16","versionEndExcluding":"7.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}