Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-42158

MEDIUM 4.1EPSS 14%

s390/pkey: Use kfree_sensitive() to fix Coccinelle warnings

Mitigation

  • Upgrade Linux to 22e6824622e8a8889df0f8fc4ed5aea0e702a694 or later.

Who should check

  • Anyone running Linux >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < f2e43af834fcc652b324384f14b561cf610742d4; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 62151a0acde90823bdfa991d598c85cf4b1d387d; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 22e6824622e8a8889df0f8fc4ed5aea0e702a694
  • Anyone running Linux 4.11

Vulnerability facts

Affected
Linux >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < f2e43af834fcc652b324384f14b561cf610742d4; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 62151a0acde90823bdfa991d598c85cf4b1d387d; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 22e6824622e8a8889df0f8fc4ed5aea0e702a694; Linux 4.11
Fixed in
Linux 62151a0acde90823bdfa991d598c85cf4b1d387d, Linux 22e6824622e8a8889df0f8fc4ed5aea0e702a694
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
4.1 (v3.1, NVD)CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 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
EPSS
0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
CWE
CWE-669
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: s390/pkey: Use kfree_sensitive() to fix Coccinelle warnings Replace memzero_explicit() and kfree() with kfree_sensitive() to fix warnings reported by Coccinelle: WARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1506) WARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1643) WARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1770)

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < f2e43af834fcc652b324384f14b561cf610742d4; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 62151a0acde90823bdfa991d598c85cf4b1d387d; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 22e6824622e8a8889df0f8fc4ed5aea0e702a694—cvelist
Linux4.11—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2024-42158.md
Affected: Linux >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < f2e43af834fcc652b324384f14b561cf610742d4; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 62151a0acde90823bdfa991d598c85cf4b1d387d; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 22e6824622e8a8889df0f8fc4ed5aea0e702a694; Linux 4.11
Fixed in: Linux 62151a0acde90823bdfa991d598c85cf4b1d387d, Linux 22e6824622e8a8889df0f8fc4ed5aea0e702a694

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.

References

FAQ

Is CVE-2024-42158 being exploited?

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

How serious is CVE-2024-42158?

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-42158?

Linux >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < f2e43af834fcc652b324384f14b561cf610742d4; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 62151a0acde90823bdfa991d598c85cf4b1d387d; >= e80d4af0a320972aac58e2004d0ba4e44ef4c5c7, < 22e6824622e8a8889df0f8fc4ed5aea0e702a694; Linux 4.11.

Is there a fix for CVE-2024-42158?

Yes. Fixed in Linux 62151a0acde90823bdfa991d598c85cf4b1d387d, Linux 22e6824622e8a8889df0f8fc4ed5aea0e702a694. Upgrade Linux to 22e6824622e8a8889df0f8fc4ed5aea0e702a694 or later.

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

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.

Sponsors