# CVE-2024-42157: s390/pkey: Wipe sensitive data on failure

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

- **Severity:** MEDIUM 4.1
- **CVSS:** 4.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **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.30% (percentile 15, 2026-11-26)
- **Published:** 2024-07-30T07:46:59.362Z
- **Modified:** 2026-06-17T07:48:57.033Z

## Who should check

- Anyone running Linux \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 6e2e374403bf73140d0efc9541cb1b3bea55ac02; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< b5eb9176ebd4697bc248bf8d145e66d782cf5250; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 93c034c4314bc4c4450a3869cd5da298502346ad; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 4889f117755b2f18c23045a0f57977f3ec130581; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< c51795885c801b6b7e976717e0d6d45b1e5be0f0; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 90a01aefb84b09ccb6024d75d85bb8f620bd3487; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< c44a2151e5d21c66b070a056c26471f30719b575; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 1d8c270de5eb74245d72325d285894a577a945d9
- Anyone running Linux 4.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

s390/pkey: Wipe sensitive data on failure

Wipe sensitive data from stack also if the copy\_to\_user() fails.

## Affected and fixed versions

- Linux: \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 6e2e374403bf73140d0efc9541cb1b3bea55ac02; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< b5eb9176ebd4697bc248bf8d145e66d782cf5250; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 93c034c4314bc4c4450a3869cd5da298502346ad; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 4889f117755b2f18c23045a0f57977f3ec130581; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< c51795885c801b6b7e976717e0d6d45b1e5be0f0; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 90a01aefb84b09ccb6024d75d85bb8f620bd3487; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< c44a2151e5d21c66b070a056c26471f30719b575; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 1d8c270de5eb74245d72325d285894a577a945d9 (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

- Upgrade Linux to 1d8c270de5eb74245d72325d285894a577a945d9 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-42157.md
Affected: Linux >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 6e2e374403bf73140d0efc9541cb1b3bea55ac02; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < b5eb9176ebd4697bc248bf8d145e66d782cf5250; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 93c034c4314bc4c4450a3869cd5da298502346ad; >= e80d4af0a320972aac58e20…
Fixed in: Linux 6e2e374403bf73140d0efc9541cb1b3bea55ac02, Linux 93c034c4314bc4c4450a3869cd5da298502346ad, Linux 4889f117755b2f18c23045a0f57977f3ec130581, Linux 90a01aefb84b09ccb6024d75d85bb8f620bd3487, Linux 1d8c270de5eb74245d72325d285894a577a945d9

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-2024-42157 being exploited?

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

### How serious is CVE-2024-42157?

Medium: CVSS 4.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-42157?

Linux \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 6e2e374403bf73140d0efc9541cb1b3bea55ac02; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< b5eb9176ebd4697bc248bf8d145e66d782cf5250; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 93c034c4314bc4c4450a3869cd5da298502346ad; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 4889f117755b2f18c23045a0f57977f3ec130581; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< c51795885c801b6b7e976717e0d6d45b1e5be0f0; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 90a01aefb84b09ccb6024d75d85bb8f620bd3487; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< c44a2151e5d21c66b070a056c26471f30719b575; \>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, \< 1d8c270de5eb74245d72325d285894a577a945d9; Linux 4.11.

### Is there a fix for CVE-2024-42157?

Yes. Fixed in Linux 6e2e374403bf73140d0efc9541cb1b3bea55ac02, Linux 93c034c4314bc4c4450a3869cd5da298502346ad, Linux 4889f117755b2f18c23045a0f57977f3ec130581, Linux 90a01aefb84b09ccb6024d75d85bb8f620bd3487, Linux 1d8c270de5eb74245d72325d285894a577a945d9. Upgrade Linux to 1d8c270de5eb74245d72325d285894a577a945d9 or later.

### How do I check if I'm affected by CVE-2024-42157?

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/6e2e374403bf73140d0efc9541cb1b3bea55ac02>
- patch: <https://git.kernel.org/stable/c/b5eb9176ebd4697bc248bf8d145e66d782cf5250>
- patch: <https://git.kernel.org/stable/c/93c034c4314bc4c4450a3869cd5da298502346ad>
- patch: <https://git.kernel.org/stable/c/4889f117755b2f18c23045a0f57977f3ec130581>
- patch: <https://git.kernel.org/stable/c/c51795885c801b6b7e976717e0d6d45b1e5be0f0>
- patch: <https://git.kernel.org/stable/c/90a01aefb84b09ccb6024d75d85bb8f620bd3487>
- patch: <https://git.kernel.org/stable/c/c44a2151e5d21c66b070a056c26471f30719b575>
- patch: <https://git.kernel.org/stable/c/1d8c270de5eb74245d72325d285894a577a945d9>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## 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-2024-42157>

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