{"id":"CVE-2024-42158","aliases":["CVE-2024-42158"],"related":[],"kind":"vulnerability","state":"published","title":"s390/pkey: Use kfree_sensitive() to fix Coccinelle warnings","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/pkey: Use kfree_sensitive() to fix Coccinelle warnings\n\nReplace memzero_explicit() and kfree() with kfree_sensitive() to fix\nwarnings reported by Coccinelle:\n\nWARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1506)\nWARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1643)\nWARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1770)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ns390/pkey: Use kfree_sensitive() to fix Coccinelle warnings\n\nReplace memzero_explicit() and kfree() with kfree_sensitive() to fix\nwarnings reported by Coccinelle:\n\nWARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1506)\nWARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1643)\nWARNING opportunity for kfree_sensitive/kvfree_sensitive (line 1770)","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: s390/pkey: use kfree_SENSITIVE() para corregir las advertencias de Coccinelle. Reemplace memzero_explicit() y kfree() con kfree_SENSITIVE() para corregir las advertencias reportadas por Coccinelle: Oportunidad de ADVERTENCIA para kfree_SENSITIVE/KVFree_SENSITIVE ( línea 1506) Oportunidad de ADVERTENCIA para kfree_SENSITIVE/KVFree_SENSITIVE (línea 1643) Oportunidad de ADVERTENCIA para kfree_SENSITIVE/KVFree_SENSITIVE (línea 1770)","source":"nvd"}],"published":"2024-07-30T07:47:00.343Z","modified":"2026-10-30T13:17:32.527Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.1,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.1,"rating":"MEDIUM"}],"cwes":["CWE-669"],"affected":[{"ranges":[{"type":"git","introduced":"e80d4af0a320972aac58e2004d0ba4e44ef4c5c7","fixed":"f2e43af834fcc652b324384f14b561cf610742d4","status":"affected"},{"type":"git","introduced":"e80d4af0a320972aac58e2004d0ba4e44ef4c5c7","fixed":"62151a0acde90823bdfa991d598c85cf4b1d387d","status":"affected"},{"type":"git","introduced":"e80d4af0a320972aac58e2004d0ba4e44ef4c5c7","fixed":"22e6824622e8a8889df0f8fc4ed5aea0e702a694","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.11","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.9.9","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.11","fixed":"6.9.9"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/f2e43af834fcc652b324384f14b561cf610742d4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/62151a0acde90823bdfa991d598c85cf4b1d387d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22e6824622e8a8889df0f8fc4ed5aea0e702a694","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:15:02.030Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42158","url":"https://www.cve.org/CVERecord?id=CVE-2024-42158","licence":"CVE Terms of Use","modified":"2026-10-30T12:18:57.021Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42158","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42158","licence":"Public domain","modified":"2026-10-30T13:17:32.527Z"}],"updatedAt":"2026-11-25T22:58:43.422Z","epss":{"score":0.00215,"percentile":0.12609,"date":"2026-12-01T12:00:22.000Z"}}