{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "94c3aac567a9ddb9e868a7fae3c927c08b51b7c6"
            },
            {
              "fixed": "86d5ca8cd79fec82865b9b32a06f0c28e19062cf"
            },
            {
              "fixed": "3d1660732042d4c2ae7795255141185372bce6e2"
            },
            {
              "fixed": "afacba62cd4a6d5fbf1a2b44a8e201e6bc69401e"
            },
            {
              "fixed": "3343fc0c5d3e6df67f7d09b5bb59982db03a5c1d"
            },
            {
              "fixed": "9f867274b208d0830232f01ac26ef5a92f4ec0e4"
            },
            {
              "fixed": "6d76d153afa3ac90701a23f5715bdb3648be2f7b"
            },
            {
              "fixed": "0f33ef07be4121c87df3d5b2fa05609d743a4570"
            },
            {
              "fixed": "ceb24c7052cc4649e3b52a51a7cca7dfe4896cec"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.10.0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139337.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nima: reject a kexec buffer whose declared size exceeds the buffer\n\nima_restore_measurement_list() parses the measurement list persisted across\nkexec.  It computes the parse end directly from the blob:\n\n\tbufendp = buf + khdr-\u003ebuffer_size;\n\nkhdr-\u003ebuffer_size is a u64 read straight from the persisted buffer.  The\nonly length checks in the function are size \u003e= sizeof(*khdr), version == 1\nand count -- none relates buffer_size to size, the actual buffer size the\ncaller (ima_load_kexec_buffer()) obtained from the ima-kexec-buffer region.\nima_parse_buf() bounds every field read to bufendp, so a blob whose\ninternal buffer_size exceeds the real size makes the parse loop read past\nthe end of the buffer (CWE-125).\n\nThe buffer's memory range is validated against addressable RAM by\ncommit cbf9c4b9617b (\"of: check previous kernel's ima-kexec-buffer\nagainst memory bounds\") and commit c5489d04337b (\"x86/kexec: add a\nsanity check on previous kernel's ima kexec buffer\"), but the blob's\nown declared size is never clamped to it.  Reject a buffer_size larger\nthan size before the loop.\n\nThis is on the boot-time kexec-restore path (__init) and the buffer comes\nfrom the previous kernel, so triggering it requires control of the\npersisted buffer; it is an out-of-bounds read only.",
  "id": "CVE-2026-139337",
  "modified": "2026-11-30T14:45:39.760007763Z",
  "published": "2026-11-30T13:33:49.769Z",
  "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/0f33ef07be4121c87df3d5b2fa05609d743a4570"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3343fc0c5d3e6df67f7d09b5bb59982db03a5c1d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3d1660732042d4c2ae7795255141185372bce6e2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6d76d153afa3ac90701a23f5715bdb3648be2f7b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/86d5ca8cd79fec82865b9b32a06f0c28e19062cf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9f867274b208d0830232f01ac26ef5a92f4ec0e4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/afacba62cd4a6d5fbf1a2b44a8e201e6bc69401e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ceb24c7052cc4649e3b52a51a7cca7dfe4896cec"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139337.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139337"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "ima: reject a kexec buffer whose declared size exceeds the buffer"
}