CVE-2026-74404

crypto: ccp - Fix snp_filter_reserved_mem_regions() off-by-one

Published Aug 15, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

crypto: ccp - Fix snp_filter_reserved_mem_regions() off-by-one

Sashiko notes:

> regarding the bounds check in snp_filter_reserved_mem_regions()
> called via walk_iomem_res_desc(): does the check
> if ((range_list->num_elements * 16 + 8) > PAGE_SIZE)
> allow an off-by-one heap buffer overflow?
>
> If range_list->num_elements is 255, 255 * 16 + 8 = 4088, which is <= 4096.
> Writing range->base (8 bytes) fills 4088-4095, but writing range->page_count
> (4 bytes) would write to 4096-4099, overflowing the kzalloc-allocated
> PAGE_SIZE buffer.

Fix this by accounting for the entry about to be written to, in addition to
the entries that are already allocated.

Analysis

AI-generated

Technical impact

A bounds‑checking error in the Linux kernel’s snp_filter_reserved_mem_regions() function allows an off‑by‑one heap buffer overflow when a specially crafted range list with 255 elements is processed. The overflow occurs because the check does not account for the incoming entry, allowing data beyond the allocated PAGE_SIZE buffer to be written. An attacker with the ability to supply such data to the crypto CCP module could corrupt kernel memory or gain arbitrary code execution, effectively elevating privileges to kernel level. The flaw is a classic heap‑based buffer overflow and is therefore an exploitable vulnerability that can compromise system confidentiality, integrity, and availability.

Affected Systems

The vulnerability impacts all Linux kernels that include the crypto CCP component. No specific version numbers are listed in the data, so it may affect multiple releases until a patch is applied. This includes standard distributions that ship the upstream kernel.

Risk and Exploitability

The CVSS score is 7.8, indicating high severity. The EPSS score of 0.00186 indicates a very low but non‑zero probability of exploitation in the general population, though the flaw remains valuable for targeted attacks. The vulnerability is not listed in the CISA KEV catalog, which does not reduce the risk of a targeted exploitation. Given that the flaw resides in a low‑level component, an attacker would likely need to inject crafted data into the CCP module, which may be limited to privileged or privileged‑escalated users, but the potential impact remains severe.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the fix for snp_filter_reserved_mem_regions(). The official fix has already been committed to stable branches; install the latest kernel update available from your distribution.
  • If an update is not immediately available, disable or restrict the CCP crypto module. This can be done by setting CONFIG_CRYPTO_CCP=y in the kernel config and ensuring the module is not loaded unless required, or by using boot‑time kernel module disabling options such as modprobe.d overrides.
  • Apply kernel hardening measures such as enabling KASLR, enforcing SELinux or AppArmor confinement, and restricting write access to /dev/mem or related interfaces. These mitigations reduce the window of exploitation even if the overflow is present.

Generated by OpenCVE AI on August 17, 2026 at 12:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-119
CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: crypto: ccp - Fix snp_filter_reserved_mem_regions() off-by-one Sashiko notes: > regarding the bounds check in snp_filter_reserved_mem_regions() > called via walk_iomem_res_desc(): does the check > if ((range_list->num_elements * 16 + 8) > PAGE_SIZE) > allow an off-by-one heap buffer overflow? > > If range_list->num_elements is 255, 255 * 16 + 8 = 4088, which is <= 4096. > Writing range->base (8 bytes) fills 4088-4095, but writing range->page_count > (4 bytes) would write to 4096-4099, overflowing the kzalloc-allocated > PAGE_SIZE buffer. Fix this by accounting for the entry about to be written to, in addition to the entries that are already allocated.
Title crypto: ccp - Fix snp_filter_reserved_mem_regions() off-by-one
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 16, 2026, 7:05 PM
Reserved
Aug 15, 2026, 5:44 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Oct 16, 2026, 8:17 PM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM