{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "26d1164be37f1145a96af15f294122876d8e5c77"
            },
            {
              "fixed": "7bece4f231578ea5214c27026f383681bee57d4c"
            },
            {
              "fixed": "c77c0001457161d8ff4f9b457bbfe841ebb38cc2"
            },
            {
              "fixed": "8d2dd81b8591953e6defb28f5bd914feeaf2761b"
            },
            {
              "fixed": "27adcebae626ba3c0a7cc9b6491ff78346517acb"
            },
            {
              "fixed": "a6ecef48786cd4e21854ff431cb2a1432240c0c3"
            },
            {
              "fixed": "c1dedf447161ab4942c25b1e099e1986fe49791a"
            },
            {
              "fixed": "3937b14049f4117c152a4b0e86fb39a3737489bf"
            },
            {
              "fixed": "37d550172c2d3cdb3a5ace3e6cb0625967d86349"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.17.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-139757.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: asymmetric_keys - fix OOB read in pefile_parse_binary\n\npefile_parse_binary() reads the size field of the certificate table's\ndata-directory entry, which sits at fixed index 4 of the PE optional\nheader's data directory:\n\n\tctx-\u003ecerts_size = ddir-\u003ecerts.size;\n\nbut nothing ensures index 4 is present. n_data_dirents (the untrusted\nNumberOfRvaAndSizes) is only upper-bounded against header_size and may be\n0, and header_size need only satisfy cursor \u003c header_size \u003c datalen. A\ncrafted PE with n_data_dirents = 0 and a tiny header_size therefore causes\nthe ddir-\u003ecerts.size read to land past the end of the image (CWE-125). The\nchkaddr() that bounds the certificate blob runs only after this read.\n\nverify_pefile_signature() is reached from kexec_file_load() (the\nlockdown/secure-boot enforced PE-image signature path), and the image is\nparsed before its signature is checked. The trigger needs CAP_SYS_BOOT and\nthe access is out-of-bounds read only (no write).\n\nRequire the certificate table's data-directory entry (index 4) to be\npresent; the existing upper-bound check then keeps ddir-\u003ecerts within\n[cursor, header_size).",
  "id": "CVE-2026-139757",
  "modified": "2026-12-01T20:45:19.869270241Z",
  "published": "2026-11-30T13:37:41.720Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/27adcebae626ba3c0a7cc9b6491ff78346517acb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/37d550172c2d3cdb3a5ace3e6cb0625967d86349"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3937b14049f4117c152a4b0e86fb39a3737489bf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7bece4f231578ea5214c27026f383681bee57d4c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8d2dd81b8591953e6defb28f5bd914feeaf2761b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a6ecef48786cd4e21854ff431cb2a1432240c0c3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c1dedf447161ab4942c25b1e099e1986fe49791a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c77c0001457161d8ff4f9b457bbfe841ebb38cc2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139757.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139757"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "crypto: asymmetric_keys - fix OOB read in pefile_parse_binary"
}