Kernel data disclosure and crash via ioctl overflow
Published Jul 9, 2025 · Updated Aug 5, 2026
Integer overflow in the Linux s390 pkey ioctl allows local users to disclose kernel heap data or crash the system with a crafted APQN count. The _copy_apqns_from_user() path multiplies the user-controlled nr_apqns count before memdup_user(), allowing wraparound to allocate a buffer smaller than the count later traversed. Reachability requires an s390 system with CONFIG_PKEY and /dev/pkey access; an unprivileged local process can trigger an out-of-bounds read, kernel panic, or CPU stall.
Summary
What happened
Integer overflow in the Linux s390 pkey ioctl allows local users to disclose kernel heap data or crash the system with a crafted APQN count. The _copy_apqns_from_user() path multiplies the user-controlled nr_apqns count before memdup_user(), allowing wraparound to allocate a buffer smaller than the count later traversed. Reachability requires an s390 system with CONFIG_PKEY and /dev/pkey access; an unprivileged local process can trigger an out-of-bounds read, kernel panic, or CPU stall.
The record
- CVE
- CVE-2025-38257
- Published
- Jul 9, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-190, T1106
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 9, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.4
- Affected versionversion=f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d <73483ca7e07a5e39bdf612eec9d3d293e8bef649
- Affected versionversion=f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d <7360ee47599af91a1d5f4e74d635d9408a54e489
- Affected versionversion=f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d <88f3869649edbc4a13f6c2877091f81cd5a50f05
- Affected versionversion=f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d <ad1bdd24a02d5a8d119af8e4cd50933780a6d29f
- Affected versionversion=f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d <f855b119e62b004a5044ed565f2a2b368c4d3f16
- Affected versionversion=f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d <faa1ab4a23c42e34dc000ef4977b751d94d5148c
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo