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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 7% of CVEs (2026-11-30)
- Published: 2026-10-14T13:25:51.513Z
- Modified: 2026-11-23T08:17:25.907Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 7988fb2c03c8cf9936f851ab19a6d21b3c3411c0 before c9351478eab196a1e6ab0c3835a8bcafcebd0326; from 7988fb2c03c8cf9936f851ab19a6d21b3c3411c0 before fb59ef72bebd93de44e9eb28831f91f16acc0338; from 7988fb2c03c8cf9936f851ab19a6d21b3c3411c0 before 89b58645646d1dac34162cc2597f42266bfbf930; from 7988fb2c03c8cf9936f851ab19a6d21b3c3411c0 before 35c3f97569306050e818fa18e17fa97c358f0f28; from 7988fb2c03c8cf9936f851ab19a6d21b3c3411c0 before aea3e1588f08e381a7a57b2bf1a60cc2347904cd; from 7988fb2c03c8cf9936f851ab19a6d21b3c3411c0 before 15fa028589c3a2545f0bff355eff06d5844196bf; 5.5 (not affected: before 5.5; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/c9351478eab196a1e6ab0c3835a8bcafcebd0326>
- <https://git.kernel.org/stable/c/fb59ef72bebd93de44e9eb28831f91f16acc0338>
- <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>

## Sources

- CVE List: [CVE-2026-98387](https://www.cve.org/CVERecord?id=CVE-2026-98387), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-98387](https://nvd.nist.gov/vuln/detail/CVE-2026-98387), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-98387 · Whole record: https://cve.day/CVE-2026-98387.json · Rebuilt by cve.day 2026-11-25T22:59:44.631Z
