CVE-2024-36975
kernel: KEYS: trusted: Do not use WARN when encode fails
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · June 18, 2024
Updated · October 30, 2026
Description
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.
- asn1_encode_sequence() is not an internal function (located in lib/asn1_encode.c).
- Location is known, which makes the stack trace useless.
- 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.
Statement
This vulnerability is rated as Moderate impact because an authenticated local user can trigger an unnecessary kernel warning condition within the trusted keys subsystem, which only escalates to a denial of service if the system is explicitly configured to panic on warnings. On default Red Hat Enterprise Linux installations, the panic-on-warn diagnostic behavior is disabled, meaning the triggering condition generates a kernel log entry rather than interrupting system availability. Because exploitation requires local access, does not bypass authentication, and cannot compromise data confidentiality or integrity, the overall risk to enterprise deployments remains limited.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-99 · Improper Control of Resource Identifiers ('Resource Injection')