CVE-2024-42158

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

State
Published
Severity
Not scored
Published
Jul 30, 2024
Updated
Oct 30, 2026
Reserved
Jul 29, 2024

Read the record on cve.org

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)

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • e80d4af0a320972aac58e2004d0ba4e44ef4c5c7 to before f2e43af834fcc652b324384f14b561cf610742d4Affected
  • e80d4af0a320972aac58e2004d0ba4e44ef4c5c7 to before 62151a0acde90823bdfa991d598c85cf4b1d387dAffected
  • e80d4af0a320972aac58e2004d0ba4e44ef4c5c7 to before 22e6824622e8a8889df0f8fc4ed5aea0e702a694Affected
LinuxLinux
  • 4.11Affected
  • before 4.11Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.9.9 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.