CVE-2024-36975
KEYS: trusted: Do not use WARN when encode fails
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. 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.
INFO
Published Date :
June 18, 2024, 8:15 p.m.
Last Modified :
Oct. 1, 2025, 3:16 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the affected kernel packages.
- Run the appropriate update command for your system.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-36975.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-36975 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-36975
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-36975 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-36975 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Oct. 01, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.9 up to (excluding) 6.9.2 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.8.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.32 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.92 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.13 up to (excluding) 5.15.160 Added Reference Type CVE: https://git.kernel.org/stable/c/050bf3c793a07f96bd1e2fd62e1447f731ed733b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/050bf3c793a07f96bd1e2fd62e1447f731ed733b Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/1c652e1e10676f942149052d9329b8bf2703529a Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/1c652e1e10676f942149052d9329b8bf2703529a Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/681935009fec3fc22af97ee312d4a24ccf3cf087 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/681935009fec3fc22af97ee312d4a24ccf3cf087 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/96f650995c70237b061b497c66755e32908f8972 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/96f650995c70237b061b497c66755e32908f8972 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/d32c6e09f7c4bec3ebc4941323f0aa6366bc1487 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/d32c6e09f7c4bec3ebc4941323f0aa6366bc1487 Types: Patch Added Reference Type CVE: https://git.kernel.org/stable/c/ff91cc12faf798f573dab2abc976c1d5b1862fea Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/ff91cc12faf798f573dab2abc976c1d5b1862fea Types: Patch -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/050bf3c793a07f96bd1e2fd62e1447f731ed733b Added Reference https://git.kernel.org/stable/c/1c652e1e10676f942149052d9329b8bf2703529a Added Reference https://git.kernel.org/stable/c/681935009fec3fc22af97ee312d4a24ccf3cf087 Added Reference https://git.kernel.org/stable/c/96f650995c70237b061b497c66755e32908f8972 Added Reference https://git.kernel.org/stable/c/d32c6e09f7c4bec3ebc4941323f0aa6366bc1487 Added Reference https://git.kernel.org/stable/c/ff91cc12faf798f573dab2abc976c1d5b1862fea -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 18, 2024
Action Type Old Value New Value Added 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. 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. Added Reference kernel.org https://git.kernel.org/stable/c/96f650995c70237b061b497c66755e32908f8972 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/681935009fec3fc22af97ee312d4a24ccf3cf087 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/1c652e1e10676f942149052d9329b8bf2703529a [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/d32c6e09f7c4bec3ebc4941323f0aa6366bc1487 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/ff91cc12faf798f573dab2abc976c1d5b1862fea [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/050bf3c793a07f96bd1e2fd62e1447f731ed733b [No types assigned]