{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "044d2aee6c575231ed4a24fb3d119bad0937488b"
            },
            {
              "fixed": "258310d59a82ea4854bfd9138682bbaac1153b19"
            },
            {
              "fixed": "bfc721eef5c13704efe6864c7da2ad4b0d75f60a"
            },
            {
              "fixed": "c79cf15eb35a4c703bf18f8c33c47e80dd660f8e"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "6.15.4"
            },
            {
              "fixed": "6.16"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "b6bbbb8ef48dde09c0dbd77121fa0f09b0237fec"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.16.0"
            },
            {
              "fixed": "6.18.56"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.2.10"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98842.json"
  },
  "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.",
  "id": "CVE-2026-98842",
  "modified": "2026-10-20T02:30:36.807170747Z",
  "published": "2026-10-18T15:50:19.217Z",
  "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"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "module: fix lost error code from codetag_load_module()"
}