CVE-2024-36975 json
KEYS: trusted: Do not use WARN when encode fails
published 2024-06-18 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-36325
- 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:
KEYS: trusted: Do not use WARN when encode fails
When asn1_encode_sequence() fails, WARN is not the correct solution.
1. asn1_encode_sequence() is not an internal function (located in lib/asn1_encode.c). 2. Location is known, which makes the stack trace useless. 3. Results a crash if panic_on_warn is set.
It is also noteworthy that the use of WARN is undocumented, and it should be avoided unless there is a carefully considered rationale to use it.
Replace WARN with pr_err, and print the return value instead, which is only useful piece of information.
Patch / fix
- Linux Linux 5.15.160, 6.1.92, 6.6.32, 6.8.11, 6.9.2, 6.10
- linux Debian 12 6.1.94-1
- linux Debian 14, Debian 13 6.8.11-1
debian advisories DEBIAN-CVE-2024-36975
- linux Ubuntu 22.04 LTS 5.15.0-118.128
- linux Ubuntu 24.04 LTS 6.8.0-40.40
- linux-aws Ubuntu 22.04 LTS 5.15.0-1067.73
- linux-aws Ubuntu 24.04 LTS 6.8.0-1013.14
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1066.74
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1012.13
- linux-gke Ubuntu 22.04 LTS 5.15.0-1064.70
- linux-gke Ubuntu 24.04 LTS 6.8.0-1008.11
ubuntu advisories UBUNTU-CVE-2024-36975
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 Linux Micro 6.0 6.4.0-9.1
- kernel-source-rt Linux Micro 6.0 6.4.0-9.1
- kernel-source Linux Micro 6.0 6.4.0-18.1
- kernel-default Linux Micro 6.0 6.4.0-18.1
- kernel-kvmsmall Linux Micro 6.0 6.4.0-18.1
- kernel-default-base Linux Micro 6.0 6.4.0-17.1.1.51
- kernel-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
- kernel-syms-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
suse advisories SUSE-SU-2025:20028-1SUSE-SU-2025:20008-1SUSE-SU-2024:2973-1SUSE-SU-2024:2939-1SUSE-SU-2024:2896-1SUSE-SU-2024:2571-1
- git.kernel.org/stable/c/96f650995c70237b061b497c66755e32908f8972 commit
- git.kernel.org/stable/c/681935009fec3fc22af97ee312d4a24ccf3cf087 commit
- git.kernel.org/stable/c/1c652e1e10676f942149052d9329b8bf2703529a commit
- git.kernel.org/stable/c/d32c6e09f7c4bec3ebc4941323f0aa6366bc1487 commit
- git.kernel.org/stable/c/ff91cc12faf798f573dab2abc976c1d5b1862fea commit
- git.kernel.org/stable/c/050bf3c793a07f96bd1e2fd62e1447f731ed733b 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-36975 updated cvss 5.5
kernel: KEYS: trusted: Do not use WARN when encode fails
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 moreaffected: no fix available, no fix planned “Will not fix”
-
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 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 morenot affected: vulnerable code not present
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/96f650995c70237b061b497c66755e32908f8972
patch
-
git.kernel.org
/stable/c/681935009fec3fc22af97ee312d4a24ccf3cf087
patch
-
git.kernel.org
/stable/c/1c652e1e10676f942149052d9329b8bf2703529a
patch
-
git.kernel.org
/stable/c/d32c6e09f7c4bec3ebc4941323f0aa6366bc1487
patch
-
git.kernel.org
/stable/c/ff91cc12faf798f573dab2abc976c1d5b1862fea
patch
-
git.kernel.org
/stable/c/050bf3c793a07f96bd1e2fd62e1447f731ed733b
patch
Sources
- CVE List CVE-2024-36975
- NVD CVE-2024-36975
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.