Reference page — cumulative record through Wednesday, August 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.
Linux Linux — s390/pkey: Prevent overflow in size calculation for memdup_user()
AV AC PR UI S C I A CVSS EPSS %ile KEV
L L L N U H H H 7.8 .0015 4.9 —
AFFECTED
Product Versions Fixed
Linux f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d – —
Linux 5.4 – 5.15.187
TIMELINE
Apr 16 Reserved by Linux
Jul 9 Published (CNA: Linux)
Jul 30 RESCORED — CVE-2025-38257 (Linux). CVSS 7.3 → 7.8 (NVD).
Description
In the Linux kernel, the following vulnerability has been resolved:
s390/pkey: Prevent overflow in size calculation for memdup_user()
Number of apqn target list entries contained in 'nr_apqns' variable is
determined by userspace via an ioctl call so the result of the product in
calculation of size passed to memdup_user() may overflow.
In this case the actual size of the allocated area and the value
describing it won't be in sync leading to various types of unpredictable
behaviour later.
Use a proper memdup_array_user() helper which returns an error if an
overflow is detected. Note that it is different from when nr_apqns is
initially zero - that case is considered valid and should be handled in
subsequent pkey_handler implementations.
Found by Linux Verification Center (linuxtesting.org).
Lifecycle
Complete event history — 3 events, chronological
| Date | Event | Detail |
| April 16, 2025 | Reserved | Reserved by Linux |
| July 9, 2025 | Published | Published (CNA: Linux) |
| July 30, 2026 | RESCORED | RESCORED — CVE-2025-38257 (Linux). CVSS 7.3 → 7.8 (NVD). |
Affected
Affected products and packages — 2 rows
| Vendor | Product / Package | Ecosystem | Version introduced | Fixed |
| Linux | Linux | — | f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d | — |
| Linux | Linux | — | 5.4 | 5.15.187 |
About this page
This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2025-38257 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Wednesday, August 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.