Skip to contentSkip to conversation

CVE-2026-80639: cxl/test: Fix __fortify_panic

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

cxl/test: Fix __fortify_panic

Fix a runtime assertion in setup_xor_mapping(). Fortify complains that it is potentially overflowing the xormaps array per __counted_by(nr_maps). Quiet the false positive by initializing @nr_maps earlier.

memcpy: detected buffer overflow: 32 byte write of buffer size 0

 WARNING: lib/string_helpers.c:1036 at __fortify_report+0x4d/0xa0, CPU#8: modprobe/2728
 Call Trace:
  __fortify_panic+0xd/0xf
  setup_xor_mapping+0x6c/0xa0 [cxl_translate]

[ dj: Fixed up @nr_entries to @nr_maps in commit log. ]

The Linux kernel CVE team has assigned CVE-2026-80639 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.19 with commit 06377c54a133621d61fa76cdcea85077c5b958f4 and fixed in 7.1.5 with commit 8c4f27a7f364eab514d2fa55c11f39d505122f1b
	Issue introduced in 6.19 with commit 06377c54a133621d61fa76cdcea85077c5b958f4 and fixed in 7.2 with commit 08326b92c7a414a73b5b308d1daf0e91e0134dfc

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-80639

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
tools/testing/cxl/test/cxl_translate.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/8c4f27a7f364eab514d2fa55c11f39d505122f1b
	https://git.kernel.org/stable/c/08326b92c7a414a73b5b308d1daf0e91e0134dfc