CVE-2026-74404

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

State
Published
Severity
7.8 High
Published
Aug 15, 2026
Updated
Oct 16, 2026
Reserved
Aug 15, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 to before 830c1f3e71989448652973375ef5e39b6ede47a3Affected
  • 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 to before c5c79d92da0f9a09f48be5e2aabed2d6d1a96294Affected
  • 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 to before af7341616b742ad2c374a90998bd650a035f694dAffected
  • 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 to before 1b864b6cb213bbd7b406e9b2e98c962077f300dfAffected
LinuxLinux
  • 6.9Affected
  • before 6.9Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.