# s390/pkey: Prevent overflow in size calculation for memdup_user()

CVE record · `CVE-2025-38257`

- **Identifiers:** `CVE-2025-38257`
- **State:** Confirmed
- **Severity:** CVSS 7.3 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 9 Jul 2025
- **Updated:** 15 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 9 Jul 2025, 10:42 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d to before ad1bdd24a02d5a8d119af8e4cd50933780a6d29f` (git)
  - affected: `f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d to before faa1ab4a23c42e34dc000ef4977b751d94d5148c` (git)
  - affected: `f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d to before 88f3869649edbc4a13f6c2877091f81cd5a50f05` (git)
  - affected: `f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d to before f855b119e62b004a5044ed565f2a2b368c4d3f16` (git)
  - affected: `f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d to before 73483ca7e07a5e39bdf612eec9d3d293e8bef649` (git)
  - affected: `f2bbc96e7cfad3891b7bf9bd3e566b9b7ab4553d to before 7360ee47599af91a1d5f4e74d635d9408a54e489` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `5.4`
  - unaffected: `before 5.4` (semver)
  - unaffected: `5.15.187 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.143 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.96 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.36 to 6.12.*, inclusive` (semver)
  - unaffected: `6.15.5 to 6.15.*, inclusive` (semver)
  - unaffected: `6.16 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.3 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0018, the 7th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 9 Jul 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2025-38257](https://www.cve.org/CVERecord?id=CVE-2025-38257)
- [NVD: CVE-2025-38257](https://nvd.nist.gov/vuln/detail/CVE-2025-38257)

### References from the CNA

- <https://git.kernel.org/stable/c/ad1bdd24a02d5a8d119af8e4cd50933780a6d29f>
- <https://git.kernel.org/stable/c/faa1ab4a23c42e34dc000ef4977b751d94d5148c>
- <https://git.kernel.org/stable/c/88f3869649edbc4a13f6c2877091f81cd5a50f05>
- <https://git.kernel.org/stable/c/f855b119e62b004a5044ed565f2a2b368c4d3f16>
- <https://git.kernel.org/stable/c/73483ca7e07a5e39bdf612eec9d3d293e8bef649>
- <https://git.kernel.org/stable/c/7360ee47599af91a1d5f4e74d635d9408a54e489>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-38257>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-38257/>. Everything for agents: <https://agentprime.io/llms.txt>.
