---
id: CVE-2026-64304
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  crypto: qat - validate RSA CRT component lengths

  The generic RSA key parser (rsa_helper.c) bounds each CRT component (p,
  q, dp, dq, qinv) by the modulus size n_sz, but…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  crypto: qat - validate RSA CRT component lengths

  The generic RSA key parser (rsa_helper.c) bounds each CRT component (p,
  q, dp, dq, qinv) by the modulus size n_sz, but…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
published: '2026-07-25'
updated: '2026-07-27'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-64304'
references:
  - url: 'https://git.kernel.org/stable/c/1002719d13072a5e4be1e993aa61dffb4a604e82'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/3d61a214fdcda41f1ebfabbb483404032a7b4d91'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/500319830d76911c120dc0b9605f8c16d7702844'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/6d99c5fadd2df488103f64d6475b63ba6852202b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/6fb62b767f3e27661e8f8d2f7b85f4e098fcdb1a'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b3ac78756588059729b9195fcc9f4b37d54057a5'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/c34369473bfe92a0b46ec78d6358e30341c7f481'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ce42224487c504aee4b7ff3a7342e7b4d7e28cc9'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-64304.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-64304'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2507119'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-64304'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-64304'
  - url: >-
      https://lore.kernel.org/linux-cve-announce/2026072507-CVE-2026-64304-7d9a@gregkh/T
  - url: 'https://access.redhat.com/errata/RHSA-2026:64767'
  - url: 'https://access.redhat.com/errata/RHSA-2026:61887'
  - url: 'https://access.redhat.com/errata/RHSA-2026:62568'
  - url: 'https://access.redhat.com/errata/RHSA-2026:63129'
  - url: 'https://access.redhat.com/errata/RHSA-2026:65712'
  - url: 'https://access.redhat.com/errata/RHSA-2026:67723'
  - url: 'https://access.redhat.com/errata/RHSA-2026:67721'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
epss: 0.00169
epssPercentile: 0.05425
ingestedAt: '2026-07-27T06:16:50.296Z'
vendor: Red Hat
product: Red Hat Enterprise Linux BaseOS (v. 10)
affected:
  - enterprise_linux 9
  - enterprise_linux_appstream_eus_v_10_0
  - enterprise_linux_appstream_v_10
  - enterprise_linux_appstream_eus_v_9_6
  - enterprise_linux_appstream_v_9
  - enterprise_linux_baseos_eus_v_10_0
  - enterprise_linux_baseos_v_10
  - enterprise_linux_baseos_eus_v_9_6
  - enterprise_linux_baseos_v_9
  - enterprise_linux_codeready_linux_builder_eus_v_10_0
  - enterprise_linux_codeready_linux_builder_v_10
  - codeready_linux_builder_eus_v_9_6
  - enterprise_linux_codeready_linux_builder_v_9
  - enterprise_linux_real_time_for_nfv_eus_v_10_0
  - enterprise_linux_real_time_for_nfv_v_10
  - enterprise_linux_real_time_for_nfv_eus_v_9_6
  - enterprise_linux_real_time_for_nfv_v_9
  - enterprise_linux_real_time_eus_v_10_0
  - enterprise_linux_real_time_v_10
  - enterprise_linux_real_time_eus_v_9_6
  - enterprise_linux_real_time_v_9
patched:
  - enterprise_linux_appstream_eus_v_10_0
  - enterprise_linux_appstream_v_10
  - enterprise_linux_appstream_eus_v_9_6
  - enterprise_linux_appstream_v_9
  - enterprise_linux_baseos_eus_v_10_0
  - enterprise_linux_baseos_v_10
  - enterprise_linux_baseos_eus_v_9_6
  - enterprise_linux_baseos_v_9
  - enterprise_linux_codeready_linux_builder_eus_v_10_0
  - enterprise_linux_codeready_linux_builder_v_10
  - codeready_linux_builder_eus_v_9_6
  - enterprise_linux_codeready_linux_builder_v_9
  - enterprise_linux_real_time_for_nfv_eus_v_10_0
  - enterprise_linux_real_time_for_nfv_v_10
  - enterprise_linux_real_time_for_nfv_eus_v_9_6
  - enterprise_linux_real_time_for_nfv_v_9
  - enterprise_linux_real_time_eus_v_10_0
  - enterprise_linux_real_time_v_10
  - enterprise_linux_real_time_eus_v_9_6
  - enterprise_linux_real_time_v_9
cwe:
  - CWE-787
scores:
  nvd: 7.8
  vendor: 7
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

crypto: qat - validate RSA CRT component lengths

The generic RSA key parser (rsa_helper.c) bounds each CRT component (p,
q, dp, dq, qinv) by the modulus size n_sz, but qat_rsa_setkey_crt()
allocates half-size DMA buffers (key_sz / 2) and right-aligns each
component with:

    memcpy(dst + half_key_sz - len, src, len)

When a CRT component is larger than half_key_sz the subtraction
underflows and memcpy writes past the DMA buffer, causing memory
corruption.

Add a len > half_key_sz check next to the existing !len check for each
of the five CRT components so the driver falls back to the non-CRT path
instead of writing out of bounds.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2026:64767** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream EUS (v. 10.0), Red Hat Enterprise Linux BaseOS EUS (v. 10.0), Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0), Red Hat Enterprise Linux Real Time for NFV EUS (v. 10.0), Red Hat Enterprise Linux Real Time EUS (v. 10.0) · released 2026-09-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:64767)
- **RHSA-2026:61887** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux BaseOS (v. 10), Red Hat Enterprise Linux CodeReady Linux Builder (v. 10), Red Hat Enterprise Linux Real Time for NFV (v. 10), Red Hat Enterprise Linux Real Time (v. 10) · released 2026-09-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:61887)
- **RHSA-2026:62568** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream EUS (v.9.6), Red Hat Enterprise Linux BaseOS EUS (v.9.6), Red Hat CodeReady Linux Builder EUS (v.9.6), Red Hat Enterprise Linux Real Time for NFV EUS (v.9.6), Red Hat Enterprise Linux Real Time EUS (v.9.6) · released 2026-09-02 · [advisory](https://access.redhat.com/errata/RHSA-2026:62568)
- **RHSA-2026:63129** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux BaseOS (v. 9), Red Hat Enterprise Linux CodeReady Linux Builder (v. 9), Red Hat Enterprise Linux Real Time for NFV (v. 9), Red Hat Enterprise Linux Real Time (v. 9) · released 2026-09-04 · [advisory](https://access.redhat.com/errata/RHSA-2026:63129)
- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 9 · updated 2026-09-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-64304.json)
- **RHSA-2026:65712** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream E4S (v.9.4), Red Hat Enterprise Linux BaseOS E4S (v.9.4), Red Hat Enterprise Linux Real Time for NFV E4S (v.9.4), Red Hat Enterprise Linux Real Time E4S (v.9.4) · released 2026-09-09 · [advisory](https://access.redhat.com/errata/RHSA-2026:65712)
- **RHSA-2026:67723** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream E4S (v.9.2), Red Hat Enterprise Linux BaseOS E4S (v.9.2) · released 2026-09-16 · [advisory](https://access.redhat.com/errata/RHSA-2026:67723)
- **RHSA-2026:67721** · Red Hat · fixed in: Red Hat Enterprise Linux Real Time for NFV E4S (v.9.2), Red Hat Enterprise Linux Real Time E4S (v.9.2) · released 2026-09-16 · [advisory](https://access.redhat.com/errata/RHSA-2026:67721)
