CVE-2024-42098 json
crypto: ecdh - explicitly zeroize private_key
published 2024-07-29 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-39930
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 11%
- public exploits
- 0
- none known
Summary
In the Linux kernel, the following vulnerability has been resolved:
crypto: ecdh - explicitly zeroize private_key
private_key is overwritten with the key parameter passed in by the caller (if present), or alternatively a newly generated private key. However, it is possible that the caller provides a key (or the newly generated key) which is shorter than the previous key. In that scenario, some key material from the previous key would not be overwritten. The easiest solution is to explicitly zeroize the entire private_key array first.
Note that this patch slightly changes the behavior of this function: previously, if the ecc_gen_privkey failed, the old private_key would remain. Now, the private_key is always zeroized. This behavior is consistent with the case where params.key is set and ecc_is_key_valid fails.
Patch / fix
- Linux Linux 5.15.162, 6.1.97, 6.6.37, 6.9.8, 6.10
- linux Debian 12 6.1.98-1
- linux Debian 14, Debian 13 6.9.8-1
debian advisories DEBIAN-CVE-2024-42098
- linux Ubuntu 22.04 LTS 5.15.0-121.131
- linux Ubuntu 24.04 LTS 6.8.0-48.48
- linux-aws Ubuntu 22.04 LTS 5.15.0-1069.75
- linux-aws Ubuntu 24.04 LTS 6.8.0-1018.20
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1068.76
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1017.19
- linux-gke Ubuntu 22.04 LTS 5.15.0-1066.72
- linux-gke Ubuntu 24.04 LTS 6.8.0-1013.17
ubuntu advisories UBUNTU-CVE-2024-42098
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.115.1
- kernel-source-rt SLE Micro 5.4, SLE Micro 5.3 5.14.21-150400.15.115.1
- kernel-64kb SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS, SLE High Performance Computing 15 SP4-ESPOS 5.14.21-150400.24.158.1
- kernel-syms SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +3 more 5.14.21-150400.24.158.1
- kernel-source SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +3 more 5.14.21-150400.24.158.1
- kernel-default SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Micro 5.4 +7 more 5.14.21-150400.24.158.1
- kernel-zfcpdump SLES 15 SP4-LTSS, Manager Server 4.3 5.14.21-150400.24.158.1
- kernel-obs-build SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 5.14.21-150400.24.158.1
suse advisories SUSE-SU-2025:1183-1SUSE-SU-2025:1027-1SUSE-SU-2025:20047-1SUSE-SU-2025:20044-1SUSE-SU-2025:0035-1SUSE-SU-2024:4367-1
- git.kernel.org/stable/c/39173b04abda87872b43c331468a4a14f8f05ce8 commit
- git.kernel.org/stable/c/fd7ef325911eba1b7191b83cb580463242f2090d commit
- git.kernel.org/stable/c/80575b252ab0358b7e93895b2a510beb3cb3f975 commit
- git.kernel.org/stable/c/d96187eb8e59b572a8e6a68b6a9837a867ea29df commit
- git.kernel.org/stable/c/73e5984e540a76a2ee1868b91590c922da8c24c9 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-42098 updated cvss 4.1
kernel: crypto: ecdh - explicitly zeroize private_key
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.21% chance of exploitation in the next 30 days, higher than 11% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
-
git.kernel.org
/stable/c/39173b04abda87872b43c331468a4a14f8f05ce8
patch
-
git.kernel.org
/stable/c/fd7ef325911eba1b7191b83cb580463242f2090d
patch
-
git.kernel.org
/stable/c/80575b252ab0358b7e93895b2a510beb3cb3f975
patch
-
git.kernel.org
/stable/c/d96187eb8e59b572a8e6a68b6a9837a867ea29df
patch
-
git.kernel.org
/stable/c/73e5984e540a76a2ee1868b91590c922da8c24c9
patch
- lists.debian.org /debian-lts-announce/2025/01/msg00001.html
Sources
- CVE List CVE-2024-42098
- NVD CVE-2024-42098
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.