CVE-2026-80639: cxl/test: Fix __fortify_panic
In the Linux kernel, the following vulnerability has been resolved:
cxl/test: Fix fortifypanic
Fix a runtime assertion in setupxormapping(). Fortify complains that it is potentially overflowing the xormaps array per countedby(nrmaps). Quiet the false positive by initializing @nrmaps earlier.
memcpy: detected buffer overflow: 32 byte write of buffer size 0 WARNING: lib/stringhelpers.c:1036 at fortifyreport+0x4d/0xa0, CPU#8: modprobe/2728 Call Trace: fortifypanic+0xd/0xf setupxormapping+0x6c/0xa0 [cxltranslate]
[ dj: Fixed up @nrentries to @nrmaps in commit log. ]
Event History
Frequently Asked Questions
How can I tell whether this condition has occurred on a system?
Kernel logs may show a Fortify buffer-overflow report stating "memcpy: detected buffer overflow: 32 byte write of buffer size 0." The reported call trace includes __fortify_panic and setup_xor_mapping in the cxl_translate module, and may occur while modprobe is running.