{"id":"CVE-2026-98842","summary":"module: fix lost error code from codetag_load_module()","details":"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-\u003eklp_info allocated by\ncopy_module_elf() leaks on this error path.  Free it via a new\nlivepatch_cleanup label.","modified":"2026-10-20T02:30:36.807170747Z","published":"2026-10-18T15:50:19.217Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98842.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/258310d59a82ea4854bfd9138682bbaac1153b19"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bfc721eef5c13704efe6864c7da2ad4b0d75f60a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c79cf15eb35a4c703bf18f8c33c47e80dd660f8e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98842.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98842"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"044d2aee6c575231ed4a24fb3d119bad0937488b"},{"fixed":"258310d59a82ea4854bfd9138682bbaac1153b19"},{"fixed":"bfc721eef5c13704efe6864c7da2ad4b0d75f60a"},{"fixed":"c79cf15eb35a4c703bf18f8c33c47e80dd660f8e"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6.15.4"},{"fixed":"6.16"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b6bbbb8ef48dde09c0dbd77121fa0f09b0237fec"}]}],"versions":["v6.15.11","v6.15.10","v6.15.9","v6.15.8","v6.15.7","v6.15.6","v6.15.5","v6.15.4"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98842.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.16.0"},{"fixed":"6.18.56"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98842.json"}}],"schema_version":"1.9.0"}