Skip to contentSkip to conversation

CVE-2026-80640: cxl/fwctl: 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/fwctl: Fix __fortify_panic

Fix a runtime assertion in cxlctl_get_supported_features(). Fortify complains that it is potentially overflowing the entries array per __counted_by_le(num_entries). Quiet the false positive by initializing @num_entries earlier.

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

 WARNING: lib/string_helpers.c:1036 at __fortify_report+0x4d/0xa0, CPU#7: fwctl/1398
 RIP: 0010:__fortify_report+0x50/0xa0
 Call Trace:
  __fortify_panic+0xd/0xf
  cxlctl_get_supported_features.cold+0x23/0x35 [cxl_core]

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

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

	Issue introduced in 6.15 with commit 4d1c09cef2c244bd19467c016a3e56ba28ecc59d and fixed in 6.18.40 with commit b8d15e85596ad8993d42e0703a9741961a2f03eb
	Issue introduced in 6.15 with commit 4d1c09cef2c244bd19467c016a3e56ba28ecc59d and fixed in 7.1.5 with commit 18c67ecc5dafe14055edcea53f36f4e31df1816b
	Issue introduced in 6.15 with commit 4d1c09cef2c244bd19467c016a3e56ba28ecc59d and fixed in 7.2 with commit 6c9d2e87df40d606f1c85143e9acb1ecff463d5e

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-80640

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:
drivers/cxl/core/features.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/b8d15e85596ad8993d42e0703a9741961a2f03eb
	https://git.kernel.org/stable/c/18c67ecc5dafe14055edcea53f36f4e31df1816b
	https://git.kernel.org/stable/c/6c9d2e87df40d606f1c85143e9acb1ecff463d5e