# CVE-2025-38359: s390/mm: Fix in\_atomic() handling in do\_secure\_storage\_access()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-07-25T12:47:30.441Z
- **Modified:** 2026-11-05T21:18:28.863Z

## Who should check

- Anyone running Linux \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 2990e937eaff741eda531f4190455ed7f3d5c348; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 9bcfbd58fc5a02777fed3e582f22503ef3289a43; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 7aee3e5163cade3f4cf1cc0710dfbadb47f1ba84; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< d2e317dfd2d1fe416c77315d17c5d57dbe374915; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 11709abccf93b08adde95ef313c300b0d4bc28f1
- Anyone running Linux 5.7

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

## Affected and fixed versions

- Linux: \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 2990e937eaff741eda531f4190455ed7f3d5c348; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 9bcfbd58fc5a02777fed3e582f22503ef3289a43; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 7aee3e5163cade3f4cf1cc0710dfbadb47f1ba84; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< d2e317dfd2d1fe416c77315d17c5d57dbe374915; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 11709abccf93b08adde95ef313c300b0d4bc28f1 (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- Upgrade Linux to 11709abccf93b08adde95ef313c300b0d4bc28f1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38359. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38359.md
Affected: Linux >= 084ea4d611a3d00ee3930400b262240e10895900, < 2990e937eaff741eda531f4190455ed7f3d5c348; >= 084ea4d611a3d00ee3930400b262240e10895900, < 9bcfbd58fc5a02777fed3e582f22503ef3289a43; >= 084ea4d611a3d00ee3930400b262240e10895900, < 7aee3e5163cade3f4cf1cc0710dfbadb47f1ba84; >= 084ea4d611a3d00ee393040…
Fixed in: Linux 2990e937eaff741eda531f4190455ed7f3d5c348, Linux 9bcfbd58fc5a02777fed3e582f22503ef3289a43, Linux 7aee3e5163cade3f4cf1cc0710dfbadb47f1ba84, Linux 11709abccf93b08adde95ef313c300b0d4bc28f1

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38359 being exploited?

There is no confirmed exploitation: CVE-2025-38359 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38359?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38359?

Linux \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 2990e937eaff741eda531f4190455ed7f3d5c348; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 9bcfbd58fc5a02777fed3e582f22503ef3289a43; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 7aee3e5163cade3f4cf1cc0710dfbadb47f1ba84; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< d2e317dfd2d1fe416c77315d17c5d57dbe374915; \>= 084ea4d611a3d00ee3930400b262240e10895900, \< 11709abccf93b08adde95ef313c300b0d4bc28f1; Linux 5.7.

### Is there a fix for CVE-2025-38359?

Yes. Fixed in Linux 2990e937eaff741eda531f4190455ed7f3d5c348, Linux 9bcfbd58fc5a02777fed3e582f22503ef3289a43, Linux 7aee3e5163cade3f4cf1cc0710dfbadb47f1ba84, Linux 11709abccf93b08adde95ef313c300b0d4bc28f1. Upgrade Linux to 11709abccf93b08adde95ef313c300b0d4bc28f1 or later.

### How do I check if I'm affected by CVE-2025-38359?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d2e317dfd2d1fe416c77315d17c5d57dbe374915>
- patch: <https://git.kernel.org/stable/c/11709abccf93b08adde95ef313c300b0d4bc28f1>
- other: <https://git.kernel.org/stable/c/2990e937eaff741eda531f4190455ed7f3d5c348>
- other: <https://git.kernel.org/stable/c/9bcfbd58fc5a02777fed3e582f22503ef3289a43>
- other: <https://git.kernel.org/stable/c/7aee3e5163cade3f4cf1cc0710dfbadb47f1ba84>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38359>

HTML: <https://flawdb.com/CVE-2025-38359> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38359>
