CVE-2024-42158

published 30 Jul 2024 · updated 30 Oct 2026

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

4.1MediumCVSS 4.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 22e6824622e8a8889df0f8fc4ed5aea0e702a694, Kernel 62151a0acde90823bdfa991d598c85cf4b1d387d and Kernel f2e43af834fcc652b324384f14b561cf610742d4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=4.11, >=e80d4af0a320972aac58e2004d0ba4e44ef4c5c7 <22e6824622e8a8889df0f8fc4ed5aea0e702a694, >=e80d4af0a320972aac58e2004d0ba4e44ef4c5c7 <62151a0acde90823bdfa991d598c85cf4b1d387d, >=e80d4af0a320972aac58e2004d0ba4e44ef4c5c7 <f2e43af834fcc652b324384f14b561cf610742d422e6824622e8a8889df0f8fc4ed5aea0e702a694, 62151a0acde90823bdfa991d598c85cf4b1d387d, f2e43af834fcc652b324384f14b561cf610742d4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-42158 severity on Zeptric[![CVE-2024-42158](https://zeptric.io/badge/cve/CVE-2024-42158.svg)](https://zeptric.io/cve/CVE-2024-42158)