CVE-2025-38359: s390/mm: Fix in_atomic() handling in do_secure_storage_access()
Vulnerability summary
CVE-2025-38359 is a medium (CVSS 5.5) Improper Locking vulnerability in linux. EPSS estimates a 0.17% chance of exploitation in the next 30 days, higher than 6.3% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 21 · Related 22Timeline
- 25-07-2025PublishedVulnerability first disclosed.
- 30-10-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: s390/mm: Fix in_atomic() handling in do_secure_storage_access() 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 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 419074, name: qemu-system-s39 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<00000383ea47cfa2>] copy_page_from_iter_atomic+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>] dump_stack_lvl+0xa2/0xe8 [<00000383e99bf152>] __might_resched+0x292/0x2d0 [<00000383eaa7c374>] down_read+0x34/0x2d0 [<00000383e99432f8>] do_secure_storage_access+0x108/0x360 [<00000383eaa724b0>] __do_pgm_check+0x130/0x220 [<00000383eaa842e4>] pgm_check_handler+0x114/0x160 [<00000383ea47d028>] copy_page_from_iter_atomic+0x128/0x8a0 ([<00000383ea47d016>] copy_page_from_iter_atomic+0x116/0x8a0) [<00000383e9c45eae>] generic_perform_write+0x16e/0x310 [<00000383e9eb87f4>] ext4_buffered_write_iter+0x84/0x160 [<00000383e9da0de4>] vfs_write+0x1c4/0x460 [<00000383e9da123c>] ksys_write+0x7c/0x100 [<00000383eaa7284e>] __do_syscall+0x15e/0x280 [<00000383eaa8417e>] system_call+0x6e/0x90 INFO: lockdep is turned off. It is not allowed to take the mmap_lock 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).
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.17%
Chance of exploitation in the next 30 days
Percentile
6%
Versus all other CVEs
30-day change
Increase +0.06 pp
From 0.11% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu149 products
- linuxAll versions (No fix recorded)
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded)
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Chainguard5 products
- linux-aws-6.12< 6.12.78-r0 | < 6.12.76-r0 | < 6.12.67-r0 | < 6.12.63-r0 | < 6.12.68-r0 | < 6.12.74-r0 | < 6.12.62-r0 | < 6.12.69-r0 | < 6.12.65-r2 | < 6.12.72-r0 | < 6.12.68-r1 | < 6.12.77-r0 | < 6.12.71-r0 | < 6.12.72-r1 | < 6.12.77-r1 | < 6.12.74-r1 | < 6.12.66-r0 | < 6.12.65-r1 | < 6.12.62-r2 | < 6.12.65-r0 | < 6.12.70-r0 | < 6.12.62-r1 | < 6.12.77-r2 | < 6.12.57-r2 | < 6.12.60-r4 | < 6.12.80-r0
- linux-azure-6.12< 6.12.77-r2 | < 6.12.68-r0 | < 6.12.78-r0 | < 6.12.77-r0 | < 6.12.76-r0 | < 6.12.77-r1 | < 6.12.70-r0 | < 6.12.65-r4 | < 6.12.60-r4 | < 6.12.74-r0 | < 6.12.62-r0 | < 6.12.62-r1 | < 6.12.65-r3 | < 6.12.74-r1 | < 6.12.72-r0 | < 6.12.63-r0 | < 6.12.65-r2 | < 6.12.60-r3 | < 6.12.67-r0 | < 6.12.57-r2 | < 6.12.71-r0 | < 6.12.65-r1 | < 6.12.80-r0 | < 6.12.69-r0 | < 6.12.62-r2 | < 6.12.66-r0
- linux-gcp-6.12< 6.12.68-r0 | < 6.12.65-r0 | < 6.12.69-r0 | < 6.12.60-r3 | < 6.12.80-r0 | < 6.12.65-r2 | < 6.12.71-r0 | < 6.12.65-r1 | < 6.12.77-r2 | < 6.12.67-r0 | < 6.12.74-r1 | < 6.12.68-r1 | < 6.12.60-r4 | < 6.12.72-r0 | < 6.12.62-r0 | < 6.12.66-r0 | < 6.12.63-r0 | < 6.12.78-r0 | < 6.12.76-r0 | < 6.12.77-r0 | < 6.12.62-r1 | < 6.12.70-r0 | < 6.12.77-r1 | < 6.12.62-r2 | < 6.12.57-r2 | < 6.12.74-r0
- linux-qemu-6.12< 6.12.69-r0 | < 6.12.72-r0 | < 6.12.74-r0 | < 6.12.66-r0 | < 6.12.80-r0 | < 6.12.78-r0 | < 6.12.77-r0 | < 6.12.67-r0 | < 6.12.74-r1 | < 6.12.77-r2 | < 6.12.77-r1 | < 6.12.71-r0 | < 6.12.76-r0 | < 6.12.70-r0 | < 6.12.68-r0 | < 6.12.65-r2 | < 6.12.65-r1
- linux-vmware-6.12< 6.12.66-r0 | < 6.12.74-r1 | < 6.12.65-r1 | < 6.12.69-r0 | < 6.12.74-r0 | < 6.12.67-r0 | < 6.12.76-r0 | < 6.12.77-r2 | < 6.12.65-r2 | < 6.12.80-r0 | < 6.12.68-r0 | < 6.12.68-r1 | < 6.12.71-r0 | < 6.12.70-r0 | < 6.12.77-r0 | < 6.12.78-r0 | < 6.12.77-r1 | < 6.12.72-r0
Linux2 products
- linux≥ 084ea4d611a3d00ee3930400b262240e10895900, < 2990e937eaff741eda531f4190455ed7f3d5c348 | ≥ 084ea4d611a3d00ee3930400b262240e10895900, < 9bcfbd58fc5a02777fed3e582f22503ef3289a43 | ≥ 084ea4d611a3d00ee3930400b262240e10895900, < 7aee3e5163cade3f4cf1cc0710dfbadb47f1ba84 | ≥ 084ea4d611a3d00ee3930400b262240e10895900, < d2e317dfd2d1fe416c77315d17c5d57dbe374915 | ≥ 084ea4d611a3d00ee3930400b262240e10895900, < 11709abccf93b08adde95ef313c300b0d4bc28f1 | 5.7
- linux_kernel< 6.15.5
Debian1 product
- linuxAll versions (No fix recorded) | < 6.12.115-2 | < 6.16.3-1
4 vendors · 157 products