Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2026-74404

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 to < 830c1f3e71989448652973375ef5e39b6ede47a3affected
  • 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 to < c5c79d92da0f9a09f48be5e2aabed2d6d1a96294affected
  • 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 to < af7341616b742ad2c374a90998bd650a035f694daffected
  • 1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2 to < 1b864b6cb213bbd7b406e9b2e98c962077f300dfaffected

Linux Linux

Default version status: affected

  • 6.9affected
  • 0 to < 6.9unaffected
  • 6.12.97 to ≤ 6.12.*unaffected
  • 6.18.40 to ≤ 6.18.*unaffected
  • 7.1.5 to ≤ 7.1.*unaffected
  • 7.2 to ≤ *unaffected

References