{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6"
            },
            {
              "fixed": "6b3a96beef8097450fefe645cfb2c6163ad52041"
            },
            {
              "fixed": "ec2a9b7252fce1d140445d24ac4557ba34bea244"
            },
            {
              "fixed": "4cf50332b5384ea13f6f896d5cf84e05b5b6484a"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.5.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-139706.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: rsassa-pkcs1 - reject undersized keys when signing\n\nrsassa_pkcs1_sign() subtracts 11 from the unsigned key size before\nchecking that the key is large enough for PKCS#1 v1.5 padding:\n\n\tif (slen + hash_prefix-\u003esize \u003e ctx-\u003ekey_size - 11)\n\t\treturn -EOVERFLOW;\n\nIf the RSA modulus is shorter than 11 bytes, the subtraction wraps.\nWith a one-byte key and hash=none, the padding memset() writes past\nthe output buffer.\n\nKASAN reports:\n\n    BUG: KASAN: slab-out-of-bounds in rsassa_pkcs1_sign+0x1ad/0x3b0\n    Write of size 4294967294 at addr ...\n    The buggy address is located 0 bytes to the right of\n     allocated 1-byte region [...]\n\nReject keys shorter than the minimum encoded message size.",
  "id": "CVE-2026-139706",
  "modified": "2026-12-01T06:45:56.632623812Z",
  "published": "2026-11-30T13:37:13.374Z",
  "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/4cf50332b5384ea13f6f896d5cf84e05b5b6484a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6b3a96beef8097450fefe645cfb2c6163ad52041"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ec2a9b7252fce1d140445d24ac4557ba34bea244"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139706.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139706"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "crypto: rsassa-pkcs1 - reject undersized keys when signing"
}