Skip to contentSkip to conversation

CVE-2026-98387: s390/crypto: Fix skcipher_walk return code handling in aes_s390

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 14

lore
Share & tools
lore
#0 lore raw

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

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

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

s390/crypto: Fix skcipher_walk return code handling in aes_s390

The return codes from skcipher_walk_virt() were not properly checked before entering the processing loops in ecb_aes_crypt() and ctr_aes_crypt(). If skcipher_walk_virt() fails, the walk structure may be in an undefined state, and attempting to process data could lead to incorrect behavior or accessing uninitialized memory.

Add proper return code checking to ensure correct handling of the walk initialization and walk advance and eventually return to the caller with that return code.

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

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

	Issue introduced in 5.5 with commit 7988fb2c03c8cf9936f851ab19a6d21b3c3411c0 and fixed in 6.12.111 with commit 89b58645646d1dac34162cc2597f42266bfbf930
	Issue introduced in 5.5 with commit 7988fb2c03c8cf9936f851ab19a6d21b3c3411c0 and fixed in 6.18.53 with commit 35c3f97569306050e818fa18e17fa97c358f0f28
	Issue introduced in 5.5 with commit 7988fb2c03c8cf9936f851ab19a6d21b3c3411c0 and fixed in 7.2.7 with commit aea3e1588f08e381a7a57b2bf1a60cc2347904cd
	Issue introduced in 5.5 with commit 7988fb2c03c8cf9936f851ab19a6d21b3c3411c0 and fixed in 7.3-rc3 with commit 15fa028589c3a2545f0bff355eff06d5844196bf

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

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/s390/crypto/aes_s390.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/89b58645646d1dac34162cc2597f42266bfbf930
	https://git.kernel.org/stable/c/35c3f97569306050e818fa18e17fa97c358f0f28
	https://git.kernel.org/stable/c/aea3e1588f08e381a7a57b2bf1a60cc2347904cd
	https://git.kernel.org/stable/c/15fa028589c3a2545f0bff355eff06d5844196bf