{"id":"CVE-2026-64304","aliases":["CVE-2026-64304"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: qat - validate RSA CRT component lengths","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - validate RSA CRT component lengths\n\nThe generic RSA key parser (rsa_helper.c) bounds each CRT component (p,\nq, dp, dq, qinv) by the modulus size n_sz, but qat_rsa_setkey_crt()\nallocates half-size DMA buffers (key_sz / 2) and right-aligns each\ncomponent with:\n\n    memcpy(dst + half_key_sz - len, src, len)\n\nWhen a CRT component is larger than half_key_sz the subtraction\nunderflows and memcpy writes past the DMA buffer, causing memory\ncorruption.\n\nAdd a len > half_key_sz check next to the existing !len check for each\nof the five CRT components so the driver falls back to the non-CRT path\ninstead of writing out of bounds.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: qat - validate RSA CRT component lengths\n\nThe generic RSA key parser (rsa_helper.c) bounds each CRT component (p,\nq, dp, dq, qinv) by the modulus size n_sz, but qat_rsa_setkey_crt()\nallocates half-size DMA buffers (key_sz / 2) and right-aligns each\ncomponent with:\n\n    memcpy(dst + half_key_sz - len, src, len)\n\nWhen a CRT component is larger than half_key_sz the subtraction\nunderflows and memcpy writes past the DMA buffer, causing memory\ncorruption.\n\nAdd a len > half_key_sz check next to the existing !len check for each\nof the five CRT components so the driver falls back to the non-CRT path\ninstead of writing out of bounds.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncrypto: qat - validar las longitudes de los componentes RSA CRT\n\nEl analizador genérico de claves RSA (rsa_helper.c) limita cada componente CRT (p, q, dp, dq, qinv) por el tamaño del módulo n_sz, pero qat_rsa_setkey_crt() asigna búferes DMA de tamaño medio (key_sz / 2) y alinea a la derecha cada componente con:\n\n    memcpy(dst + half_key_sz - len, src, len)\n\nCuando un componente CRT es mayor que half_key_sz, la resta subdesborda y memcpy escribe más allá del búfer DMA, causando corrupción de memoria.\n\nAñadir una comprobación len > half_key_sz junto a la comprobación !len existente para cada uno de los cinco componentes CRT para que el controlador recurra a la ruta no-CRT en lugar de escribir fuera de los límites.","source":"nvd"}],"published":"2026-07-25T08:49:38.873Z","modified":"2026-10-24T13:10:00.147Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"879f77e9071f029e1c9bd5a75814ecf51370f846","fixed":"6d99c5fadd2df488103f64d6475b63ba6852202b","status":"affected"},{"type":"git","introduced":"879f77e9071f029e1c9bd5a75814ecf51370f846","fixed":"c34369473bfe92a0b46ec78d6358e30341c7f481","status":"affected"},{"type":"git","introduced":"879f77e9071f029e1c9bd5a75814ecf51370f846","fixed":"1002719d13072a5e4be1e993aa61dffb4a604e82","status":"affected"},{"type":"git","introduced":"879f77e9071f029e1c9bd5a75814ecf51370f846","fixed":"500319830d76911c120dc0b9605f8c16d7702844","status":"affected"},{"type":"git","introduced":"879f77e9071f029e1c9bd5a75814ecf51370f846","fixed":"3d61a214fdcda41f1ebfabbb483404032a7b4d91","status":"affected"},{"type":"git","introduced":"879f77e9071f029e1c9bd5a75814ecf51370f846","fixed":"6fb62b767f3e27661e8f8d2f7b85f4e098fcdb1a","status":"affected"},{"type":"git","introduced":"879f77e9071f029e1c9bd5a75814ecf51370f846","fixed":"ce42224487c504aee4b7ff3a7342e7b4d7e28cc9","status":"affected"},{"type":"git","introduced":"879f77e9071f029e1c9bd5a75814ecf51370f846","fixed":"b3ac78756588059729b9195fcc9f4b37d54057a5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"5.10.261","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.212","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.178","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.145","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.96","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.39","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.4","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.8","fixed":"5.10.261"},{"status":"affected","introduced":"5.11","fixed":"5.15.212"},{"status":"affected","introduced":"5.16","fixed":"6.1.178"},{"status":"affected","introduced":"6.2","fixed":"6.6.145"},{"status":"affected","introduced":"6.7","fixed":"6.12.96"},{"status":"affected","introduced":"6.13","fixed":"6.18.39"},{"status":"affected","introduced":"6.19","fixed":"7.1.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6d99c5fadd2df488103f64d6475b63ba6852202b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c34369473bfe92a0b46ec78d6358e30341c7f481","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1002719d13072a5e4be1e993aa61dffb4a604e82","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/500319830d76911c120dc0b9605f8c16d7702844","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3d61a214fdcda41f1ebfabbb483404032a7b4d91","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6fb62b767f3e27661e8f8d2f7b85f4e098fcdb1a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ce42224487c504aee4b7ff3a7342e7b4d7e28cc9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b3ac78756588059729b9195fcc9f4b37d54057a5","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:38:47.574Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64304","url":"https://www.cve.org/CVERecord?id=CVE-2026-64304","licence":"CVE Terms of Use","modified":"2026-10-19T20:38:22.981Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64304","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64304","licence":"Public domain","modified":"2026-10-24T13:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:30.059Z","epss":{"score":0.00176,"percentile":0.04156,"date":"2026-11-30T12:00:22.000Z"}}