CVE-2025-38257
Description
A flaw was found in the Linux kernel's s390/pkey component. A local user could exploit an integer overflow vulnerability in the memdup_user() size calculation when handling apqn target list entries. This overflow can cause the allocated memory size to be out of sync with the described size, leading to unpredictable system behavior and potentially a denial of service (DoS).
Statement
A moderate severity flaw was found in the Linux kernel's s390/pkey (protected key) support on the s390x architecture. A local user could supply a number of APQN target list entries through an ioctl such that the size calculation used for memdup_user() overflows, leaving the allocated memory smaller than the size value describing it. This mismatch can lead to unpredictable kernel behavior, potentially resulting in a denial of service. Red Hat rated this flaw moderate (CVSS 6.7) because exploitation requires a local user with high privileges, whereas NIST scored it 7.8 (important) assuming low privileges. The vulnerable code is present in the Red Hat Enterprise Linux 9 kernel and kernel-rt packages and the Red Hat Enterprise Linux 10 kernel package, and the fix for these releases is currently deferred, leaving a residual risk that a sufficiently privileged local user on an affected s390x system could trigger this behavior. Red Hat Enterprise Linux 6, 7, and 8, and Red Hat In-Vehicle OS are not affected because the vulnerable code is not present in those products.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 6.7 | 7.8 | 7.3 |
| Attack Vector | Local | Local | Local |
| Attack Complexity | Low | Low | Low |
| Privileges Required | High | Low | Low |
| User Interaction | None | None | None |
| Scope | Unchanged | Unchanged | Unchanged |
| Confidentiality | High | High | High |
| Integrity Impact | High | High | Low |
| Availability Impact | High | High | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.