CVE-2025-38359: s390/mm: Fix in_atomic() handling in do_secure_storage_access()

Published Jul 25, 2025
·
Updated

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

s390/mm: Fix inatomic() handling in dosecurestorageaccess()

Kernel user spaces accesses to not exported pages in atomic context incorrectly try to resolve the page fault. With debug options enabled call traces like this can be seen:

BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1523 inatomic(): 1, irqsdisabled(): 0, nonblock: 0, pid: 419074, name: qemu-system-s39 preemptcount: 1, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<00000383ea47cfa2>] copypagefromiteratomic+0xa2/0x8a0 CPU: 12 UID: 0 PID: 419074 Comm: qemu-system-s39 Tainted: G W 6.16.0-20250531.rc0.git0.69b3a602feac.63.fc42.s390x+debug #1 PREEMPT Tainted: [W]=WARN Hardware name: IBM 3931 A01 703 (LPAR) Call Trace: [<00000383e990d282>] dumpstacklvl+0xa2/0xe8 [<00000383e99bf152>] mightresched+0x292/0x2d0 [<00000383eaa7c374>] downread+0x34/0x2d0 [<00000383e99432f8>] dosecurestorageaccess+0x108/0x360 [<00000383eaa724b0>] dopgmcheck+0x130/0x220 [<00000383eaa842e4>] pgmcheckhandler+0x114/0x160 [<00000383ea47d028>] copypagefromiteratomic+0x128/0x8a0 ([<00000383ea47d016>] copypagefromiteratomic+0x116/0x8a0) [<00000383e9c45eae>] genericperformwrite+0x16e/0x310 [<00000383e9eb87f4>] ext4bufferedwriteiter+0x84/0x160 [<00000383e9da0de4>] vfswrite+0x1c4/0x460 [<00000383e9da123c>] ksyswrite+0x7c/0x100 [<00000383eaa7284e>] dosyscall+0x15e/0x280 [<00000383eaa8417e>] systemcall+0x6e/0x90 INFO: lockdep is turned off.

It is not allowed to take the mmaplock while in atomic context. Therefore handle such a secure storage access fault as if the accessed page is not mapped: the uaccess function will return -EFAULT, and the caller has to deal with this. Usually this means that the access is retried in process context, which allows to resolve the page fault (or in this case export the page).

Affected Software

8 affected components
Linux Kernel
Linux Linux kernel<6.15.5
Microsoft azl3 kernel 6.6.104.2-4
Microsoft azl3 kernel 6.6.96.2-2
Microsoft azl3 kernel 6.6.96.2-1
Microsoft azl3 kernel 6.6.112.1-2
Microsoft azl3 kernel 6.6.117.1-1
Microsoft azl3 kernel 6.6.119.3-1

Event History

Jul 25, 2025
CVE Published
via MITRE·12:47 PM
Data Sourced
via MITRE·12:47 PM
Description
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 3, 2025
Data Sourced
via Microsoft·10:35 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38359?

CVE-2025-38359 is classified with a medium severity due to its potential impact on kernel user space access.

2

How do I fix CVE-2025-38359?

To address CVE-2025-38359, update the Linux kernel to the latest stable version that has the vulnerability patched.

3

What systems are impacted by CVE-2025-38359?

CVE-2025-38359 affects the Linux kernel, specifically in contexts where kernel user space accesses to unexported pages occur.

4

Is CVE-2025-38359 exploitable?

Yes, CVE-2025-38359 can potentially be exploited if kernel user space accesses are improperly handled in atomic contexts.

5

What does in_atomic() handling refer to in CVE-2025-38359?

In CVE-2025-38359, in_atomic() handling refers to the management of atomic context during secure storage access operations in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203