{"id":"CVE-2026-139706","aliases":["CVE-2026-139706"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: rsassa-pkcs1 - reject undersized keys when signing","summary":"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->size > ctx->key_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->size > ctx->key_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.","source":"cvelist"}],"published":"2026-11-30T13:37:13.374Z","modified":"2026-12-01T06:17:47.630Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6","fixed":"6b3a96beef8097450fefe645cfb2c6163ad52041","status":"affected"},{"type":"git","introduced":"3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6","fixed":"ec2a9b7252fce1d140445d24ac4557ba34bea244","status":"affected"},{"type":"git","introduced":"3d5b1ecdea6fb94f8c61554fcb2ba776a2d3d0e6","fixed":"4cf50332b5384ea13f6f896d5cf84e05b5b6484a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.5","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6b3a96beef8097450fefe645cfb2c6163ad52041","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec2a9b7252fce1d140445d24ac4557ba34bea244","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4cf50332b5384ea13f6f896d5cf84e05b5b6484a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139706","url":"https://www.cve.org/CVERecord?id=CVE-2026-139706","licence":"CVE Terms of Use","modified":"2026-12-01T05:43:05.668Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139706","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139706","licence":"Public domain","modified":"2026-12-01T06:17:47.630Z"}],"updatedAt":"2026-12-01T06:32:24.637Z","epss":{"score":0.00211,"percentile":0.12134,"date":"2026-12-01T12:00:22.000Z"}}