{"id":"CVE-2024-36975","aliases":["CVE-2024-36975"],"related":[],"kind":"vulnerability","state":"published","title":"KEYS: trusted: Do not use WARN when encode fails","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: LLAVES: confiable: no usar WARN cuando falla la codificación Cuando falla asn1_encode_sequence(), WARN no es la solución correcta. 1. asn1_encode_sequence() no es una función interna (ubicada en lib/asn1_encode.c). 2. Se conoce la ubicación, lo que hace que el seguimiento de la pila sea inútil. 3. Se produce un bloqueo si se configura pánico_on_warn. También es digno de mención que el uso de WARN no está documentado y debe evitarse a menos que exista una justificación cuidadosamente considerada para su uso. Reemplace WARN con pr_err e imprima el valor de retorno, que es solo información útil.","source":"nvd"}],"published":"2024-06-18T19:20:24.553Z","modified":"2026-06-17T07:37:31.523Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f2219745250f388edacabe6cca73654131c67d0a","fixed":"96f650995c70237b061b497c66755e32908f8972","status":"affected"},{"type":"git","introduced":"f2219745250f388edacabe6cca73654131c67d0a","fixed":"681935009fec3fc22af97ee312d4a24ccf3cf087","status":"affected"},{"type":"git","introduced":"f2219745250f388edacabe6cca73654131c67d0a","fixed":"1c652e1e10676f942149052d9329b8bf2703529a","status":"affected"},{"type":"git","introduced":"f2219745250f388edacabe6cca73654131c67d0a","fixed":"d32c6e09f7c4bec3ebc4941323f0aa6366bc1487","status":"affected"},{"type":"git","introduced":"f2219745250f388edacabe6cca73654131c67d0a","fixed":"ff91cc12faf798f573dab2abc976c1d5b1862fea","status":"affected"},{"type":"git","introduced":"f2219745250f388edacabe6cca73654131c67d0a","fixed":"050bf3c793a07f96bd1e2fd62e1447f731ed733b","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.13","status":"unaffected"},{"type":"semver","introduced":"5.15.160","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.92","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.32","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.11","lastAffected":"6.8.*","status":"unaffected"},{"type":"semver","introduced":"6.9.2","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.13","fixed":"5.15.160"},{"status":"affected","introduced":"5.16","fixed":"6.1.92"},{"status":"affected","introduced":"6.2","fixed":"6.6.32"},{"status":"affected","introduced":"6.7","fixed":"6.8.11"},{"status":"affected","introduced":"6.9","fixed":"6.9.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/96f650995c70237b061b497c66755e32908f8972","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/681935009fec3fc22af97ee312d4a24ccf3cf087","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1c652e1e10676f942149052d9329b8bf2703529a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d32c6e09f7c4bec3ebc4941323f0aa6366bc1487","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ff91cc12faf798f573dab2abc976c1d5b1862fea","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/050bf3c793a07f96bd1e2fd62e1447f731ed733b","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:15:22.914Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-36975","url":"https://www.cve.org/CVERecord?id=CVE-2024-36975","licence":"CVE Terms of Use","modified":"2026-05-11T20:18:13.947Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-36975","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36975","licence":"Public domain","modified":"2026-06-17T07:37:31.523Z"}],"updatedAt":"2026-11-25T22:58:41.985Z","epss":{"score":0.0021,"percentile":0.11916,"date":"2026-12-01T12:00:22.000Z"}}