Skip to contentSkip to conversation

CVE-2026-98248: arm64: percpu: Fix LSE operations on {8,16}-bit types

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 6

lore
Share & tools
lore
#0 lore raw

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

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

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

arm64: percpu: Fix LSE operations on {8,16}-bit types

The assembly for __percpu_##name##_case_##sz() and __percpu_##name##_return_case_##sz() doesn't use the 'sfx' macro argument to form the LSE instruction. Without 'sfx', a W register argument will imply a 32-bit memory location, and consequently {8,16}-bit ops will erroneously read and write 32 bits of memory when the LSE instruction is used.

Fix this by appending 'sfx' to 'op_lse' to LSE instruction. It is not necessary (and not valid) to append 'sfx' to 'op_llsc', as 'op_llsc' is a register-register operation which does not access memory (and does not take a size suffix).

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

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

	Issue introduced in 5.0 with commit 959bf2fd03b59fc107584c21425f3dc73c49f762 and fixed in 6.12.112 with commit d69ab4480e49bf925f4781afcc9f284affcb96b6
	Issue introduced in 5.0 with commit 959bf2fd03b59fc107584c21425f3dc73c49f762 and fixed in 6.18.54 with commit 390742871a723b52de9b92a94c0d1c85a2531e3e
	Issue introduced in 5.0 with commit 959bf2fd03b59fc107584c21425f3dc73c49f762 and fixed in 7.2.8 with commit 843ace1d0a39e9b1cfcbfb3856a7b0fbdd9cd003
	Issue introduced in 5.0 with commit 959bf2fd03b59fc107584c21425f3dc73c49f762 and fixed in 7.3-rc4 with commit 8cf2093f5372952a9ebc805c418d45df7112cd14

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

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:
arch/arm64/include/asm/percpu.h

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/d69ab4480e49bf925f4781afcc9f284affcb96b6
	https://git.kernel.org/stable/c/390742871a723b52de9b92a94c0d1c85a2531e3e
	https://git.kernel.org/stable/c/843ace1d0a39e9b1cfcbfb3856a7b0fbdd9cd003
	https://git.kernel.org/stable/c/8cf2093f5372952a9ebc805c418d45df7112cd14