{"id":"CVE-2024-36975","published":"2024-06-18T19:20:24Z","modified":"2026-05-11T20:18:13Z","title":"KEYS: trusted: Do not use WARN when encode fails","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nKEYS: trusted: Do not use WARN when encode fails\n\nWhen asn1_encode_sequence() fails, WARN is not the correct solution.\n\n1. asn1_encode_sequence() is not an internal function (located\n   in lib/asn1_encode.c).\n2. Location is known, which makes the stack trace useless.\n3. Results a crash if panic_on_warn is set.\n\nIt is also noteworthy that the use of WARN is undocumented, and it\nshould be avoided unless there is a carefully considered rationale to\nuse it.\n\nReplace WARN with pr_err, and print the return value instead, which is\nonly useful piece of information.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0021,"percentile":0.11469,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/96f650995c70237b061b497c66755e32908f8972","tags":[]},{"url":"https://git.kernel.org/stable/c/681935009fec3fc22af97ee312d4a24ccf3cf087","tags":[]},{"url":"https://git.kernel.org/stable/c/1c652e1e10676f942149052d9329b8bf2703529a","tags":[]},{"url":"https://git.kernel.org/stable/c/d32c6e09f7c4bec3ebc4941323f0aa6366bc1487","tags":[]},{"url":"https://git.kernel.org/stable/c/ff91cc12faf798f573dab2abc976c1d5b1862fea","tags":[]},{"url":"https://git.kernel.org/stable/c/050bf3c793a07f96bd1e2fd62e1447f731ed733b","tags":[]}],"priority":{"score":2.3,"factors":[{"name":"EPSS percentile","points":2.29}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= f2219745250f388edacabe6cca73654131c67d0a, < 96f650995c70237b061b497c66755e32908f8972",">= f2219745250f388edacabe6cca73654131c67d0a, < 681935009fec3fc22af97ee312d4a24ccf3cf087",">= f2219745250f388edacabe6cca73654131c67d0a, < 1c652e1e10676f942149052d9329b8bf2703529a",">= f2219745250f388edacabe6cca73654131c67d0a, < d32c6e09f7c4bec3ebc4941323f0aa6366bc1487",">= f2219745250f388edacabe6cca73654131c67d0a, < ff91cc12faf798f573dab2abc976c1d5b1862fea",">= f2219745250f388edacabe6cca73654131c67d0a, < 050bf3c793a07f96bd1e2fd62e1447f731ed733b"]},{"vendor":"Linux","product":"Linux","versions":["5.13"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:15:22.914846Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-36325","exploited":false,"provenance":"source"}}